@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=IBM+Plex+Sans+Condensed:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root{
  --ink:#12232E;
  --ink-2:#0D1922;
  --paper:#EFEAE0;
  --paper-2:#E6DFCF;
  --blue:#1E4C7C;
  --blue-deep:#153A5F;
  --amber:#DE9A34;
  --green:#3F7A5C;
  --red:#B5533C;
  --line-dark:#2C4250;
  --line-light:#CBC2AC;
  --text-onpaper:#191F1C;
  --muted-onpaper:#5B5346;
  --text-onink:#EEE8DA;
  --muted-onink:#9FB0B7;
  --radius:3px;
}

*{box-sizing:border-box;}
html,body{margin:0; padding:0;}
body{
  font-family:'IBM Plex Sans', sans-serif;
  background:var(--paper);
  color:var(--text-onpaper);
  -webkit-font-smoothing:antialiased;
}
a{color:inherit; text-decoration:none;}
h1,h2,h3{font-family:'IBM Plex Sans Condensed', sans-serif; font-weight:700; margin:0; letter-spacing:-0.01em;}
.mono{font-family:'IBM Plex Mono', monospace;}

/* ---------- layout ---------- */
.wrap{max-width:1180px; margin:0 auto; padding:0 24px;}
.section{padding:64px 0;}
.section.tight{padding:40px 0;}

/* ---------- navbar ---------- */
.nav{
  background:var(--ink); color:var(--text-onink);
  border-bottom:1px solid var(--line-dark);
  position:sticky; top:0; z-index:50;
}
.nav .wrap{display:flex; align-items:center; justify-content:space-between; height:64px;}
.brand{font-family:'Archivo Black'; font-size:20px; letter-spacing:-0.02em; color:var(--text-onink);}
.brand span{color:var(--amber);}
.nav-links{display:flex; gap:28px; align-items:center; font-family:'IBM Plex Sans Condensed'; font-weight:500; font-size:15px;}
.nav-links a{color:var(--muted-onink); transition:color .15s;}
.nav-links a:hover{color:var(--text-onink);}
.nav-links a.cta{
  background:var(--amber); color:var(--ink-2); padding:8px 16px; border-radius:var(--radius); font-weight:600;
}

/* ---------- hero ---------- */
.hero{background:var(--ink); color:var(--text-onink); padding:56px 0 72px;}
.hero .eyebrow{font-family:'IBM Plex Mono'; font-size:12px; letter-spacing:.1em; color:var(--amber); text-transform:uppercase;}
.hero h1{font-size:46px; line-height:1.1; margin:16px 0 18px; max-width:640px;}
.hero p.lede{font-family:'IBM Plex Sans'; font-size:16px; line-height:1.6; color:var(--muted-onink); max-width:520px; margin-bottom:28px;}

.searchbar{
  display:flex; gap:0; max-width:560px; background:#fff; border-radius:var(--radius);
  overflow:hidden; box-shadow:0 12px 30px rgba(0,0,0,.35);
}
.searchbar input{
  flex:1; border:none; padding:16px 18px; font-size:16px; font-family:'IBM Plex Sans'; color:var(--text-onpaper); outline:none;
}
.searchbar button{
  border:none; background:var(--amber); color:var(--ink-2); font-family:'IBM Plex Sans Condensed'; font-weight:700;
  padding:0 26px; cursor:pointer; font-size:15px; letter-spacing:.02em;
}
.searchbar button:hover{background:#EAA946;}

.suggerimenti-box{
  position:absolute; top:calc(100% + 4px); left:0; right:0; max-width:560px;
  background:#fff; border-radius:var(--radius); box-shadow:0 12px 30px rgba(0,0,0,.25);
  overflow:hidden; z-index:20; display:none;
}
.suggerimento-item{
  padding:11px 18px; font-family:'IBM Plex Sans'; font-size:14px; color:var(--text-onpaper); cursor:pointer;
}
.suggerimento-item:hover, .suggerimento-item.active{background:var(--paper-2);}
.suggerimento-item b{color:var(--blue);}

.idea-box{margin-top:14px;}
.idea-toggle{
  font-family:'IBM Plex Mono'; font-size:12px; color:var(--amber); cursor:pointer; display:inline-block;
  border-bottom:1px dashed var(--amber);
}
.idea-toggle:hover{color:#EAA946;}
#idea-input{
  padding:10px 12px; border:none; border-radius:var(--radius); font-family:'IBM Plex Sans'; font-size:14px;
  flex:1; min-width:220px;
}
.idea-chip{
  font-family:'IBM Plex Sans Condensed'; font-weight:600; font-size:13px; background:#fff; color:var(--text-onpaper);
  padding:8px 14px; border-radius:20px; cursor:pointer; border:1px solid var(--line-dark);
}
.idea-chip:hover{background:var(--amber); color:var(--ink-2); border-color:var(--amber);}

.idea-quick-row{display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:10px;}
.idea-quick-label{font-family:'IBM Plex Mono'; font-size:11px; color:var(--muted-onink); width:64px;}
.idea-quick-chip{
  font-family:'IBM Plex Mono'; font-size:11px; background:rgba(255,255,255,.08); color:var(--text-onink);
  padding:5px 10px; border-radius:14px; cursor:pointer; border:1px solid var(--line-dark);
}
.idea-quick-chip:hover{background:var(--amber); color:var(--ink-2); border-color:var(--amber);}

.locate-row{margin-top:10px; font-family:'IBM Plex Mono'; font-size:12px; color:var(--muted-onink);}
.locate-row button{background:none; border:1px solid var(--line-dark); color:var(--muted-onink); padding:5px 10px; border-radius:var(--radius); cursor:pointer; font-family:'IBM Plex Mono'; font-size:11px;}
.locate-row button:hover{color:var(--text-onink); border-color:var(--amber);}

/* ---------- stat strip ---------- */
.statstrip{display:flex; gap:48px; margin-top:36px; flex-wrap:wrap;}
.stat-num{font-family:'Archivo Black'; font-size:30px; color:var(--text-onink);}
.stat-label{font-family:'IBM Plex Mono'; font-size:11px; color:var(--muted-onink); letter-spacing:.05em; margin-top:4px;}

/* ---------- results & map ---------- */
.results-map-grid{display:grid; grid-template-columns:1fr 1fr; gap:0; align-items:stretch;}
#map{height:520px; width:100%;}
.results-col{background:var(--paper); max-height:520px; overflow-y:auto;}
.result-item{
  display:flex; align-items:center; gap:14px; padding:14px 20px; border-bottom:1px solid var(--line-light); cursor:pointer;
  transition:background .1s;
}
.result-item:hover{background:var(--paper-2);}
.result-thumb{
  width:44px; height:44px; border-radius:var(--radius); object-fit:cover; flex-shrink:0; background:var(--paper-2);
  cursor:zoom-in;
}
.result-thumb-empty{
  background:var(--paper-2); border:1px solid var(--line-light);
  cursor:default;
}
.qty-input{
  width:44px; padding:8px 6px; border:1px solid var(--line-light); border-radius:var(--radius);
  font-family:'IBM Plex Mono'; font-size:13px; text-align:center; flex-shrink:0;
}

.lightbox-overlay{
  display:none; position:fixed; inset:0; background:rgba(18,35,46,.92); z-index:1002;
  align-items:center; justify-content:center; cursor:zoom-out;
}
.lightbox-img{
  max-width:90vw; max-height:88vh; border-radius:4px; box-shadow:0 20px 60px rgba(0,0,0,.5);
}
.lightbox-close{
  position:absolute; top:20px; right:28px; font-size:36px; color:#EEE8DA; cursor:pointer; line-height:1;
  font-family:'IBM Plex Sans', sans-serif;
}
.lightbox-nav{
  position:absolute; top:50%; transform:translateY(-50%); font-size:44px; color:#EEE8DA; cursor:pointer;
  padding:10px 18px; user-select:none; line-height:1; font-family:'IBM Plex Sans', sans-serif;
}
.lightbox-nav:hover{color:var(--amber);}
.lightbox-prev{left:10px;}
.lightbox-next{right:10px;}

.modal-overlay{
  display:none; position:fixed; inset:0; background:rgba(18,35,46,.75); z-index:1001;
  align-items:center; justify-content:center; padding:20px;
}
.modal-card{
  background:var(--paper); border-radius:6px; max-width:560px; width:100%; max-height:88vh; overflow-y:auto;
  padding:28px; position:relative; box-shadow:0 20px 60px rgba(0,0,0,.4);
}
.modal-close{
  position:absolute; top:14px; right:18px; font-size:28px; color:var(--muted-onpaper); cursor:pointer; line-height:1;
}
.modal-top{display:flex; gap:18px; margin-bottom:18px;}
.modal-thumb{
  width:96px; height:96px; border-radius:6px; object-fit:cover; flex-shrink:0; cursor:zoom-in; background:var(--paper-2);
}
.gallery-strip{display:flex; gap:6px; margin-top:8px; flex-wrap:wrap; max-width:96px;}
.gallery-thumb{
  width:28px; height:28px; object-fit:cover; border-radius:3px; cursor:pointer; border:1px solid var(--line-light);
}
.gallery-thumb:hover{border-color:var(--blue);}
.modal-title{font-family:'IBM Plex Sans Condensed'; font-weight:700; font-size:20px; color:var(--text-onpaper);}
.modal-sub{font-family:'IBM Plex Mono'; font-size:12px; color:var(--muted-onpaper); margin-top:4px;}
.modal-price{font-family:'IBM Plex Mono'; font-weight:600; font-size:18px; margin-top:8px; color:var(--text-onpaper);}
.modal-qty{font-family:'IBM Plex Sans'; font-size:13px; margin-top:6px; color:var(--muted-onpaper);}
.modal-rating{font-family:'IBM Plex Mono'; font-size:13px; margin-top:8px; color:var(--amber);}
.modal-buy-row{display:flex; gap:10px; margin-top:14px; align-items:center;}
.fav-btn{
  background:none; border:1px solid var(--line-light); border-radius:var(--radius); width:42px; height:42px;
  font-size:19px; color:var(--muted-onpaper); cursor:pointer; line-height:1;
}
.fav-btn.active{color:var(--red); border-color:var(--red);}
.fav-btn:hover{border-color:var(--red);}
.modal-description{
  font-family:'IBM Plex Sans'; font-size:14px; color:var(--text-onpaper); line-height:1.6;
  background:var(--paper-2); border-radius:4px; padding:12px 14px; margin-bottom:6px;
}

.offer-grid{display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:20px;}
.offer-card{
  display:flex; flex-direction:column;
  background:#fff; border:1px solid var(--line-light); border-radius:6px; overflow:hidden; position:relative;
}
.offer-img{width:100%; height:150px; object-fit:cover; display:block; background:var(--paper-2);}
.offer-img-empty{background:var(--paper-2);}
.offer-badge{
  position:absolute; top:10px; left:10px; background:var(--red); color:#fff;
  font-family:'IBM Plex Mono'; font-weight:600; font-size:13px; padding:4px 9px; border-radius:3px;
}
.offer-body{padding:14px; display:flex; flex-direction:column; flex:1;}
.offer-title{font-family:'IBM Plex Sans Condensed'; font-weight:600; font-size:15px; margin-bottom:4px;}
.offer-shop{font-family:'IBM Plex Mono'; font-size:11px; color:var(--muted-onpaper); margin-bottom:10px;}
.offer-prices{display:flex; align-items:baseline; gap:9px;}
.offer-original{font-family:'IBM Plex Mono'; font-size:13px; color:var(--muted-onpaper); text-decoration:line-through;}
.offer-current{font-family:'IBM Plex Mono'; font-weight:700; font-size:18px; color:var(--red);}

.pagination{display:flex; gap:6px; flex-wrap:wrap; margin-bottom:20px;}
.page-link{
  display:inline-block; min-width:30px; text-align:center; padding:6px 8px; border:1px solid var(--line-light);
  border-radius:3px; font-family:'IBM Plex Mono'; font-size:12px; color:var(--muted-onpaper);
}
.page-link:hover{border-color:var(--blue); color:var(--blue);}
.page-link.active{background:var(--blue); border-color:var(--blue); color:#fff;}

/* ---------- teaser AccàPro Business ---------- */
.pro-teaser{
  position:relative; overflow:hidden; background:var(--ink); border:1px solid #3A2F1A;
  border-radius:8px; padding:32px 28px;
}
.pro-teaser-chart{
  position:absolute; inset:0; display:flex; align-items:flex-end; gap:10px; padding:24px;
  filter:blur(6px); opacity:.35; pointer-events:none;
}
.pro-teaser-bar{flex:1; background:linear-gradient(180deg, var(--amber), var(--blue));}
.pro-teaser-fade{
  position:absolute; inset:0; background:linear-gradient(180deg, rgba(18,35,46,.55) 0%, var(--ink) 78%);
}
.pro-teaser-content{position:relative; z-index:1;}
.pro-badge{
  display:inline-flex; align-items:center; gap:6px; background:var(--amber); color:var(--ink-2);
  font-family:'IBM Plex Mono'; font-weight:600; font-size:11px; letter-spacing:.06em;
  padding:4px 10px; border-radius:20px; margin-bottom:14px;
}
.pro-title{font-family:'Archivo Black', 'IBM Plex Sans Condensed'; font-size:24px; color:#fff; margin-bottom:6px;}
.pro-sub{font-family:'IBM Plex Sans'; font-size:14px; color:var(--muted-onink); max-width:480px; margin-bottom:20px; line-height:1.6;}
.pro-features{display:grid; grid-template-columns:repeat(2, 1fr); gap:10px 24px; margin-bottom:24px; max-width:560px;}
.pro-feature{font-family:'IBM Plex Sans'; font-size:13px; color:#EEE8DA; display:flex; gap:8px; align-items:baseline;}
.pro-feature::before{content:"→"; color:var(--amber); font-family:'IBM Plex Mono';}
.pro-cta-done{font-family:'IBM Plex Mono'; font-size:12px; color:var(--green);}
.modal-section-title{
  font-family:'IBM Plex Mono'; font-size:12px; letter-spacing:.05em; text-transform:uppercase;
  color:var(--muted-onpaper); border-top:1px solid var(--line-light); padding-top:14px; margin-top:14px;
}
.review-list{max-height:180px; overflow-y:auto; margin-top:10px;}
.review-item{padding:10px 0; border-bottom:1px solid var(--line-light);}
.review-stars{color:var(--amber); letter-spacing:1px;}
.review-head{font-family:'IBM Plex Sans Condensed'; font-size:14px;}
.review-comment{font-family:'IBM Plex Sans'; font-size:13px; color:var(--muted-onpaper); margin-top:3px;}
.review-form{display:flex; flex-direction:column; gap:8px; margin-top:10px;}
.review-form input, .review-form select, .review-form textarea{
  padding:9px 11px; border:1px solid var(--line-light); border-radius:3px; font-family:'IBM Plex Sans'; font-size:13px;
}
.review-form textarea{min-height:60px; resize:vertical;}
.result-dot{width:9px; height:9px; border-radius:50%; flex-shrink:0;}
.result-dot.ok{background:var(--green);}
.result-dot.no{background:var(--red);}
.result-dot.soon{background:var(--amber);}
.result-main{flex:1; min-width:0;}
.result-title{font-family:'IBM Plex Sans Condensed'; font-weight:600; font-size:15px; color:var(--text-onpaper);}
.result-sub{font-family:'IBM Plex Mono'; font-size:11px; color:var(--muted-onpaper); margin-top:2px;}
.result-price{font-family:'IBM Plex Mono'; font-weight:600; font-size:15px; color:var(--text-onpaper); white-space:nowrap;}
.result-btn{
  font-family:'IBM Plex Sans Condensed'; font-weight:600; font-size:12px;
  background:var(--blue); color:#fff; border:none; padding:8px 12px; border-radius:var(--radius); cursor:pointer; white-space:nowrap;
}
.result-btn:disabled{background:#C9C2B2; cursor:not-allowed;}
.result-btn:hover:not(:disabled){background:var(--blue-deep);}
.empty-note{padding:40px 20px; font-family:'IBM Plex Mono'; font-size:13px; color:var(--muted-onpaper); text-align:center;}

/* ---------- badges ---------- */
.badge{display:inline-block; font-family:'IBM Plex Mono'; font-size:11px; padding:3px 9px; border-radius:2px;}
.badge.ok{background:#DCEFE3; color:var(--green);}
.badge.no{background:#F3DBD3; color:var(--red);}
.badge.soon{background:#F6E7CB; color:#8A6414;}
.badge.info{background:#DCE6F0; color:var(--blue);}

/* ---------- generic section styles ---------- */
.kicker{font-family:'IBM Plex Mono'; font-size:12px; letter-spacing:.1em; color:var(--blue); text-transform:uppercase; margin-bottom:10px;}
.section h2{font-size:32px; max-width:760px; margin-bottom:14px;}
.section p.lede{font-family:'IBM Plex Sans'; font-size:16px; color:var(--muted-onpaper); max-width:640px; line-height:1.6;}

.cards3{display:grid; grid-template-columns:repeat(3,1fr); gap:0; margin-top:36px; border-top:1px solid var(--line-light);}
.cards3 > div{padding:24px 22px 24px 0; border-right:1px solid var(--line-light);}
.cards3 > div:last-child{border-right:none;}
.cards3 h3{font-size:18px; margin-bottom:8px;}
.cards3 p{font-family:'IBM Plex Sans'; font-size:14px; color:var(--muted-onpaper); line-height:1.6; margin:0;}

/* ---------- shop directory ---------- */
.shop-card{
  display:flex; justify-content:space-between; align-items:center; gap:16px;
  padding:18px 0; border-bottom:1px solid var(--line-light);
}
.shop-card h3{font-size:17px; margin-bottom:4px;}
.shop-card .addr{font-family:'IBM Plex Mono'; font-size:12px; color:var(--muted-onpaper);}
.shop-card .n{font-family:'IBM Plex Mono'; font-size:12px; color:var(--muted-onpaper); text-align:right; white-space:nowrap;}
.featured-tag{background:var(--amber); color:var(--ink-2); font-family:'IBM Plex Mono'; font-size:10px; padding:2px 7px; border-radius:2px; margin-left:8px; vertical-align:middle;}

/* ---------- forms ---------- */
.form-card{background:#fff; border:1px solid var(--line-light); border-radius:var(--radius); padding:28px; max-width:480px;}
.form-row{margin-bottom:16px;}
.form-row label{display:block; font-family:'IBM Plex Mono'; font-size:11px; color:var(--muted-onpaper); margin-bottom:6px; letter-spacing:.04em;}
.form-row input, .form-row select, .form-row textarea{
  width:100%; padding:11px 12px; border:1px solid var(--line-light); border-radius:var(--radius);
  font-family:'IBM Plex Sans'; font-size:14px; background:var(--paper); color:var(--text-onpaper);
}
.form-row textarea{resize:vertical; min-height:70px;}
.btn{
  display:inline-block; background:var(--blue); color:#fff; border:none; padding:13px 24px; border-radius:var(--radius);
  font-family:'IBM Plex Sans Condensed'; font-weight:700; font-size:15px; cursor:pointer;
}
.btn:hover{background:var(--blue-deep);}
.btn.amber{background:var(--amber); color:var(--ink-2);}
.btn.amber:hover{background:#EAA946;}
.btn.small{padding:7px 14px; font-size:12px;}

.flash{
  background:#DCEFE3; color:#245C3E; border:1px solid #A9D6BB; padding:12px 16px; border-radius:var(--radius);
  font-family:'IBM Plex Sans'; font-size:14px; margin-bottom:18px;
}

/* ---------- footer ---------- */
.footer{background:var(--ink); color:var(--muted-onink); padding:36px 0; font-family:'IBM Plex Mono'; font-size:12px;}
.footer .wrap{display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;}

/* ---------- dashboard/admin tables ---------- */
table.ledger{width:100%; border-collapse:collapse; font-family:'IBM Plex Sans Condensed';}
table.ledger th{
  text-align:left; font-family:'IBM Plex Mono'; font-weight:500; font-size:11px; letter-spacing:.05em;
  color:var(--muted-onpaper); padding:8px 10px; border-bottom:1px solid var(--line-light);
}
table.ledger td{padding:10px 10px; font-size:14px; border-bottom:1px solid var(--line-light); vertical-align:middle;}
table.ledger input[type=number], table.ledger input[type=text]{
  width:80px; padding:6px 8px; border:1px solid var(--line-light); border-radius:2px; font-family:'IBM Plex Mono'; font-size:13px;
}
.pill-select{padding:6px 8px; border-radius:2px; border:1px solid var(--line-light); font-family:'IBM Plex Mono'; font-size:12px;}

.panel-header{
  background:var(--ink); color:var(--text-onink); padding:36px 0;
}
.panel-header h1{font-size:28px; color:var(--text-onink);}
.panel-header .sub{font-family:'IBM Plex Mono'; font-size:12px; color:var(--muted-onink); margin-top:6px;}

.shop-edit-card{
  background:#fff; border:1px solid var(--line-light); border-radius:var(--radius);
  padding:16px 18px; margin-bottom:14px;
}
.shop-edit-head{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:6px; margin-bottom:12px;}
.shop-edit-form{display:flex; gap:10px; flex-wrap:wrap; align-items:flex-end; padding-top:10px; border-top:1px solid var(--line-light);}
.shop-edit-form div{display:flex; flex-direction:column;}
.shop-edit-form label{font-family:'IBM Plex Mono'; font-size:10px; color:var(--muted-onpaper); margin-bottom:4px; letter-spacing:.04em;}
.shop-edit-form input{padding:7px 9px; border:1px solid var(--line-light); border-radius:2px; font-family:'IBM Plex Sans'; font-size:13px; width:130px;}
.shop-edit-actions{display:flex; gap:10px; margin-top:10px; flex-wrap:wrap;}

.kpi-row{display:flex; gap:36px; margin-top:20px; flex-wrap:wrap;}
.kpi{font-family:'Archivo Black'; font-size:26px; color:var(--text-onink);}
.kpi-label{font-family:'IBM Plex Mono'; font-size:11px; color:var(--muted-onink); margin-top:4px;}

.leaflet-popup-content{font-family:'IBM Plex Sans'; font-size:13px;}
.leaflet-popup-content b{font-family:'IBM Plex Sans Condensed';}

@media (max-width: 860px){
  .results-map-grid{grid-template-columns:1fr;}
  #map{height:320px;}
  .cards3{grid-template-columns:1fr;}
  .cards3 > div{border-right:none; border-bottom:1px solid var(--line-light);}
  .hero h1{font-size:34px;}
}
