/* ============================================================
   VANIO UI — Componenti pagine (da mockup ufficiale)
   Header pulito · Hero foto · Widget prenotazione · Feature strip
   Profilo operatore · Mappa · Form auth/contatti · Responsive
   ============================================================ */

/* ---------- HEADER pulito ---------------------------------- */
.header-inner { max-width: 1320px; }
.nav-desktop .nav-lista { gap: 2px; }
.nav-desktop .nav-lista a {
  padding: 8px 12px; font-size: .92rem; font-weight: 500; color: var(--text-mid);
  border-radius: var(--radius-pill);
}
.nav-desktop .nav-lista a:hover,
.nav-desktop .nav-lista a.attivo { background: var(--teal-light); color: var(--teal-dark); }
.nav-azioni { gap: 8px; }

/* ---------- HERO con FOTO (home) --------------------------- */
.hero-foto {
  position: relative;
  margin: 0;
  padding: 0;
  min-height: auto;
}
.hero-foto-wrap {
  position: relative;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.hero-foto-img {
  position: absolute; inset: 0;
  background-image: url('../img/hero/hero-costiera.jpg');
  background-size: cover; background-position: center;
  z-index: 0;
}
.hero-foto-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(10,27,47,.82) 0%, rgba(10,27,47,.55) 42%, rgba(10,27,47,.05) 72%);
  z-index: 1;
}
.hero-foto .container { position: relative; z-index: 2; width: 100%; }
.hero-foto h1 {
  color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.1;
  margin-bottom: 16px; max-width: 620px;
}
.hero-foto h1 .accent { color: var(--teal); }
.hero-foto .hero-sub {
  color: rgba(255,255,255,.9); font-size: 1.0625rem; line-height: 1.6;
  max-width: 460px; margin-bottom: 8px;
}

/* ---------- WIDGET PRENOTAZIONE (overlap) ------------------ */
.widget-prenota2 {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  padding: 10px;
  max-width: 980px;
  margin: -54px auto 0;
  position: relative; z-index: 5;
}
.wp-tabs { display: flex; gap: 4px; padding: 6px 6px 0; }
.wp-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border: none; background: none; cursor: pointer;
  font-family: var(--font); font-weight: 600; font-size: .9rem; color: var(--text-mid);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.wp-tab.attivo { background: var(--teal-light); color: var(--teal-dark); }
.wp-tab svg, .wp-tab img { width: 18px; height: 18px; }
.wp-form {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1fr auto;
  gap: 10px; align-items: end;
  padding: 14px 8px 8px;
}
.wp-campo { display: flex; flex-direction: column; gap: 5px; }
.wp-campo label { font-size: .72rem; font-weight: 600; color: var(--text-mid); text-transform: none; }
.wp-campo .form-controllo { border-radius: var(--radius-md); padding: 11px 14px; font-size: .9rem; }
.wp-form .btn { height: 46px; }

/* ---------- FEATURE STRIP ---------------------------------- */
.feature-strip {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 22px 18px; margin-top: 26px;
}
.feature-item { display: flex; align-items: center; gap: 10px; }
.feature-item .fi-ico {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: var(--teal-light); color: var(--teal-dark);
  display: flex; align-items: center; justify-content: center;
}
.feature-item .fi-ico svg { width: 19px; height: 19px; }
.feature-item .fi-txt b { display: block; font-size: .82rem; color: var(--navy); line-height: 1.2; }
.feature-item .fi-txt span { font-size: .72rem; color: var(--text-light); }

/* ---------- SEZIONE: header con "Vedi tutti" --------------- */
.sez-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.sez-head h2 { font-size: 1.6rem; }
.sez-head .vedi-tutti { font-size: .9rem; font-weight: 600; color: var(--teal-dark); white-space: nowrap; }

/* ---------- CARD SERVIZIO (immagine + freccia) ------------- */
.card-srv {
  display: block; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden; text-decoration: none;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.card-srv:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-srv-img { width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--bg); }
.card-srv-body { padding: 16px 18px; position: relative; }
.card-srv-body h4 { font-size: 1.02rem; color: var(--navy); margin-bottom: 4px; }
.card-srv-body p { font-size: .82rem; color: var(--text-mid); line-height: 1.5; margin: 0; }
.card-srv-arrow {
  position: absolute; right: 16px; top: 16px; color: var(--teal); opacity: .85;
}

/* ============================================================
   PROFILO OPERATORE (Aziende NCC)
   ============================================================ */
.breadcrumb { font-size: .82rem; color: var(--text-light); margin-bottom: 18px; }
.breadcrumb a { color: var(--text-mid); }
.breadcrumb span { margin: 0 6px; }

.op-cover {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  display: grid; grid-template-columns: 1fr 0.9fr; min-height: 220px; background:#fff;
}
.op-cover-left {
  position: relative; padding: 28px 30px;
  display: flex; flex-direction: column; justify-content: center; gap: 12px;
  background: linear-gradient(120deg, #0A1B2F 0%, #15314F 100%);
  color: #fff;
}
.op-cover-right {
  background-image: url('../img/veicoli/mercedes-v-class.jpg');
  background-size: cover; background-position: center;
}
.op-head { display: flex; align-items: center; gap: 16px; }
.op-avatar {
  width: 76px; height: 76px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: var(--shadow-md); padding: 8px;
}
.op-avatar img { width: 100%; height: 100%; object-fit: contain; }
.op-head h1 { color: #fff; font-size: 1.9rem; margin: 0 0 6px; }
.op-badge-verif {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--teal); color: #fff; font-size: .76rem; font-weight: 700;
  padding: 5px 12px; border-radius: var(--radius-pill);
}
.op-meta { display: flex; gap: 20px; flex-wrap: wrap; font-size: .88rem; color: rgba(255,255,255,.85); }
.op-meta span { display: inline-flex; align-items: center; gap: 6px; }
.op-meta .stelle { color: var(--gold); font-weight: 700; }

/* Tab bar profilo */
.op-tabs {
  display: flex; gap: 4px; border-bottom: 1px solid var(--border);
  margin: 26px 0 24px; overflow-x: auto;
}
.op-tab {
  padding: 12px 18px; font-size: .9rem; font-weight: 600; color: var(--text-mid);
  border-bottom: 2px solid transparent; white-space: nowrap; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 7px;
}
.op-tab.attivo { color: var(--teal-dark); border-bottom-color: var(--teal); }
.op-tab:hover { color: var(--teal-dark); }

/* Stats row */
.op-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 24px 0; }
.op-stat { display: flex; align-items: center; gap: 12px; }
.op-stat .os-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--teal-light);
  color: var(--teal-dark); display: flex; align-items: center; justify-content: center; }
.op-stat b { display: block; font-size: 1.25rem; color: var(--navy); line-height: 1; }
.op-stat span { font-size: .78rem; color: var(--text-light); }

/* Sidebar preventivo */
.box-preventivo { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 22px; }
.box-preventivo h3 { font-size: 1.15rem; margin-bottom: 16px; }
.check-list { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-direction: column; gap: 12px; }
.check-list li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--text-dark); }
.check-list li .ck { width: 22px; height: 22px; border-radius: 50%; background: var(--teal-light);
  color: var(--teal-dark); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.box-side { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 22px; margin-top: 18px; }
.box-side h4 { font-size: 1rem; margin-bottom: 14px; }
.aree-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.aree-list li { display: flex; align-items: center; gap: 9px; font-size: .88rem; color: var(--text-mid); }
.aree-list li svg, .aree-list li img { width: 15px; height: 15px; color: var(--teal); }

/* ============================================================
   ESPLORA LA ZONA (mappa)
   ============================================================ */
.mappa-layout { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.mappa-sidebar { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 16px; }
.mappa-search { position: relative; margin-bottom: 14px; }
.mappa-search input { width: 100%; padding: 11px 14px 11px 38px; border: 1px solid var(--border);
  border-radius: var(--radius-pill); font-family: var(--font); font-size: .88rem; }
.mappa-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--text-light); }
.cat-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.cat-list a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: var(--radius-md);
  font-size: .9rem; color: var(--text-mid); text-decoration: none; }
.cat-list a:hover { background: var(--bg); }
.cat-list a.attivo { background: var(--teal-light); color: var(--teal-dark); font-weight: 600; }
.cat-list a .ci { width: 28px; height: 28px; border-radius: 8px; background: var(--bg);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cat-list a.attivo .ci { background: #fff; }
.cat-list a .ci svg, .cat-list a .ci img { width: 16px; height: 16px; }

.mappa-canvas {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  min-height: 560px;
  background: #bfe0e6 url('../img/hero/mappa-costiera.jpg') center/cover no-repeat;
}
.mappa-canvas .acqua { position:absolute; inset:0; background:
  linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,123,127,.06)); }
.mappa-pin { position: absolute; transform: translate(-50%,-100%); cursor: pointer; transition: transform .15s; }
.mappa-pin:hover { transform: translate(-50%,-105%) scale(1.08); z-index: 4; }
.mappa-pin img { height: 42px; filter: drop-shadow(0 4px 6px rgba(10,27,47,.3)); }
.mappa-detail {
  position: absolute; left: 18px; bottom: 18px; width: 300px; z-index: 5;
  background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mappa-detail img.cover { width: 100%; height: 110px; object-fit: cover; }
.mappa-detail .md-body { padding: 14px 16px; }
.mappa-detail .md-body h4 { font-size: 1rem; margin-bottom: 2px; }
.mappa-detail .md-tag { font-size: .72rem; color: var(--teal-dark); font-weight: 600; }
.mappa-detail .md-body p { font-size: .8rem; color: var(--text-mid); margin: 8px 0 12px; line-height: 1.45; }
.mappa-zoom { position: absolute; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 5; }
.mappa-zoom button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; box-shadow: var(--shadow-sm); cursor: pointer; font-size: 1.1rem; color: var(--navy); }

/* ============================================================
   AUTENTICAZIONE / REGISTRATI (split)
   ============================================================ */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.auth-promo h1 { font-size: 2.2rem; margin-bottom: 12px; }
.auth-promo .sub { color: var(--text-mid); font-size: 1.0625rem; margin-bottom: 24px; }
.auth-benefit { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 14px; }
.auth-benefit li { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: var(--text-dark); }
.auth-benefit li .ck { width: 30px; height: 30px; border-radius: 50%; background: var(--teal-light);
  color: var(--teal-dark); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.auth-promo-img { width: 100%; border-radius: var(--radius-lg); margin-top: 8px; box-shadow: var(--shadow-md); }
.auth-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 32px; }
.auth-card h2 { font-size: 1.4rem; margin-bottom: 22px; }
.auth-sep { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-light); font-size: .82rem; }
.auth-sep::before, .auth-sep::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.social-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-social { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: #fff;
  font-weight: 600; font-size: .88rem; color: var(--navy); cursor: pointer; text-decoration: none; }
.btn-social:hover { border-color: var(--teal); }
.btn-social img { width: 18px; height: 18px; }

/* ============================================================
   CONTATTI
   ============================================================ */
.contatti-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: start; }
.info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 10px; }
.info-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--radius-md); }
.info-row:hover { background: var(--bg); }
.info-row .ir-ico { width: 44px; height: 44px; border-radius: 50%; background: var(--teal-light);
  color: var(--teal-dark); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.info-row .ir-ico svg, .info-row .ir-ico img { width: 20px; height: 20px; }
.info-row .ir-txt b { display: block; font-size: .9rem; color: var(--navy); }
.info-row .ir-txt span { font-size: .85rem; color: var(--text-mid); }

/* ============================================================
   RESPONSIVE / MOBILE
   ============================================================ */
@media (max-width: 1024px) {
  .feature-strip { grid-template-columns: repeat(3, 1fr); row-gap: 18px; }
  .op-cover { grid-template-columns: 1fr; }
  .op-cover-right { min-height: 180px; }
  .op-stats { grid-template-columns: repeat(2, 1fr); }
  .mappa-layout { grid-template-columns: 1fr; }
  .mappa-sidebar { order: 2; }
}

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .btn-menu-mobile { display: inline-flex; }
  .wp-form { grid-template-columns: 1fr 1fr; }
  .wp-form .btn { grid-column: 1 / -1; }
  .auth-split { grid-template-columns: 1fr; gap: 24px; }
  .auth-promo { order: 2; }
  .auth-promo-img { display: none; }
  .contatti-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .hero-foto-wrap { min-height: 440px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .hero-foto-overlay { background: linear-gradient(180deg, rgba(10,27,47,.55) 0%, rgba(10,27,47,.78) 100%); }
  .hero-foto h1 { font-size: 2rem; }
  .widget-prenota2 { margin-top: -36px; padding: 8px; }
  .wp-form { grid-template-columns: 1fr; padding: 12px 6px; }
  .feature-strip { grid-template-columns: 1fr 1fr; padding: 18px 14px; }
  .sez-head h2 { font-size: 1.3rem; }
  .op-head { flex-direction: column; align-items: flex-start; }
  .op-head h1 { font-size: 1.5rem; }
  .op-stats { grid-template-columns: 1fr 1fr; }
  .mappa-detail { left: 10px; right: 10px; width: auto; }
  .auth-card { padding: 22px 18px; }
  .social-row { grid-template-columns: 1fr; }
}

/* Profilo operatore: griglia sidebar responsive */
@media (max-width: 1024px) {
  .op-page-grid { grid-template-columns: 1fr !important; }
}

/* ---------- HERO PAGINE INTERNE con foto HD ---------------- */
.hero-pagina { position: relative; overflow: hidden; }
.hero-pagina::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--ph-img, none);
  background-size: cover; background-position: center;
  opacity: .42; z-index: 0;
}
.hero-pagina > .container { position: relative; z-index: 1; }

/* ---------- MEGAMENU SERVIZI (desktop) -------------------- */
.nav-desktop .nav-lista li { position: relative; }
.nav-desktop .has-mega > a::after { content: " ▾"; font-size: .7em; opacity: .6; }
.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 10px; min-width: 460px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s; z-index: 2000;
}
.nav-desktop .has-mega:hover .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text-dark); font-weight: 500; font-size: .88rem;
}
.mega a:hover { background: var(--bg); color: var(--teal-dark); }
.mega a .mi { width: 34px; height: 34px; border-radius: 9px; background: var(--teal-light); color: var(--teal-dark);
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mega a .mi svg { width: 17px; height: 17px; }
.mega a b { display: block; line-height: 1.1; }
.mega a small { color: var(--text-light); font-weight: 400; font-size: .72rem; }
@media (max-width: 860px) { .mega { display: none !important; } }

/* ---------- LISTA OPERATORI (Aziende NCC) ----------------- */
.op-filtri { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.op-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.op-card {
  display: block; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-card);
  overflow: hidden; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.op-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.op-card-cover { position: relative; height: 140px; background-size: cover; background-position: center; }
.op-card-cover .verif { position: absolute; top: 10px; right: 10px;
  background: var(--teal); color: #fff; font-size: .68rem; font-weight: 700; padding: 4px 10px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; gap: 4px; }
.op-card-logo { position: absolute; left: 16px; bottom: -22px; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-md); padding: 7px; }
.op-card-logo img { width: 100%; height: 100%; object-fit: contain; }
.op-card-body { padding: 30px 18px 18px; }
.op-card-body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.op-card-meta { display: flex; gap: 14px; font-size: .8rem; color: var(--text-mid); margin-bottom: 10px; }
.op-card-meta .stelle { color: var(--gold); font-weight: 700; }
.op-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 1024px) { .op-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .op-grid { grid-template-columns: 1fr; } }

/* ---------- AREA UTENTE: layout responsive ---------------- */
@media (max-width: 860px) {
  .account-layout { flex-direction: column; }
  .account-layout .account-sidebar { width: 100% !important; }
}
