:root{
  --brand:#1774AF;
  --brandDark:#0F4B72;
  --bg:#f4f6f8;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --border:#e5e7eb;
}

*{box-sizing:border-box;margin:0;padding:0}
body{font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text);line-height:1.55}
a{color:inherit;text-decoration:none}
.container{max-width:1100px;margin:0 auto;padding:0 16px}

/* Top bar */
.topbar{
  background:linear-gradient(90deg,var(--brand),var(--brandDark));
  color:#fff;
  padding:8px 12px;
  display:flex;
  gap:12px;
  justify-content:center;
  align-items:center;
  font-size:14px;
}
.topbar a{color:#fff}
.topbarBtn{
  border:1px solid rgba(255,255,255,.45);
  padding:4px 10px;
  border-radius:999px;
}

/* Header */
.siteHeader{
  background:linear-gradient(90deg,var(--brand),var(--brandDark));
  color:#fff;
  padding:14px 0 10px;
}
.headerInner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:260px;
}
.brandLogo{
  background:#fff;
  border-radius:14px;
  height:auto;
}
.brandLogo.big{width:210px;padding:10px}
.brandLogo.small{width:80px;padding:6px}
.brandText{display:flex;flex-direction:column;gap:2px}
.brandName{
  font-size:25px;
  font-weight:900;
}

.brandSub{font-size:12px;opacity:.9}

/* Nav */
.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;
}
.nav a{
  font-size:14px;
  padding:7px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.45);
  opacity:.95;
}
.nav a.active{background:rgba(255,255,255,.16)}

/* Page sections */
.main{padding:22px 0 80px}
.section{margin-top:18px}
.title{font-size:26px;line-height:1.15;margin:8px 0 14px}
.card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:18px;
  padding:16px;
}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.grid3{display:grid;grid-template-columns:repeat(3, 1fr);gap:14px}

.cardTitle{font-weight:900;margin-bottom:10px;font-size:16px}
.bullets{padding-left:18px}
.bullets li{margin:6px 0}

.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:12px 14px;border-radius:14px;font-weight:900;border:1px solid transparent;cursor:pointer;
}
.btn.primary{background:var(--brand);color:#fff}
.btn.ghost{background:#fff;border:1px solid var(--border);color:var(--text)}
.btn.full{width:100%}
.ctaRow{display:flex;gap:10px;flex-wrap:wrap}

/* HERO slider (home) */
.hero{padding:14px 0 8px}
.heroWrap{max-width:1100px;margin:0 auto;padding:0 16px}
.slider{
  position:relative;width:100%;
  border-radius:18px;overflow:hidden;background:#000;
  box-shadow:0 12px 28px rgba(0,0,0,0.10);
}
.slides{position:relative;width:100%;height:320px}
.slide{position:absolute;inset:0;opacity:0;transition:opacity .65s ease}
.slide.active{opacity:1}
.slide img{
  width:100%;
  height:100%;
  object-fit:contain;     /* mostra tutta la foto */
  object-position:center; /* centrata */
  display:block;
  background:#000;        /* bordo nero dietro se resta spazio */
}

 
}
.navBtn{
  position:absolute;top:50%;transform:translateY(-50%);
  width:44px;height:44px;border-radius:999px;
  border:1px solid rgba(255,255,255,.22);
  background:rgba(0,0,0,.35);color:#fff;font-size:26px;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
}
.prev{left:10px}
.next{right:10px}
.dots{
  position:absolute;left:0;right:0;bottom:10px;
  display:flex;justify-content:center;gap:8px;
}
.dot{width:10px;height:10px;border-radius:999px;border:none;background:rgba(255,255,255,.45)}
.dot.active{background:#fff}

.heroCTA{
  margin-top:14px;background:var(--card);
  border:1px solid var(--border);border-radius:18px;padding:16px;
}
.heroCTA h1{font-size:22px;line-height:1.15;margin-bottom:8px}
.heroCTA p{color:var(--muted);margin-bottom:12px}

/* Mini cards */
.miniCard{background:var(--card);border:1px solid var(--border);border-radius:18px;padding:16px}
.miniIcon{font-size:22px;margin-bottom:6px}
.miniTitle{font-weight:900;margin-bottom:4px}
.miniText{color:var(--muted);font-size:14px}

/* Lavori Instagram grid */
.insta-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:10px;
  margin-top:14px;
}
.insta-grid img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  border-radius:14px;
  cursor:pointer;
  transition:transform .2s ease;
}
.insta-grid img:hover{transform:scale(1.03)}
#lightbox{
  display:none;position:fixed;inset:0;
  background:rgba(0,0,0,0.9);
  justify-content:center;align-items:center;
  z-index:9999;
}
#lightbox img{max-width:92%;max-height:92%;border-radius:16px}

/* Contact block */
.contactBlock{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:22px;
  padding:18px;
}
.contactBlock h2{font-size:30px;line-height:1.05;margin-bottom:14px}
.contactGrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.form{display:flex;flex-direction:column;gap:10px}
input, textarea{
  width:100%;
  border:1px solid var(--border);
  background:#f8fafc;
  border-radius:14px;
  padding:14px;
  font-size:16px;
}
.formNote{color:var(--muted);font-size:12px;margin-top:-4px}
.contactInfo{display:flex;flex-direction:column;gap:12px}
.infoCard{background:#fff;border:1px solid var(--border);border-radius:18px;padding:14px}
.infoTitle{font-weight:900;margin-bottom:8px}
.infoLine{margin:6px 0}
.infoLine a{color:var(--brand);font-weight:900}
.mapCard{border:1px solid var(--border);border-radius:18px;overflow:hidden;background:#fff}
.mapCard iframe{width:100%;height:220px;border:0;display:block}

/* Footer */

/* Mobile bottom bar */
.bottombar{
  position:fixed;left:0;right:0;bottom:0;
  background:#fff;border-top:1px solid var(--border);
  display:none;z-index:9998;
}
.bb{flex:1;text-align:center;padding:12px 8px;font-weight:900}
.bb.primary{background:rgba(23,116,175,0.12);color:var(--brandDark)}

/* Responsive */
@media(max-width:900px){
  .grid3{grid-template-columns:1fr}
  .contactGrid{grid-template-columns:1fr}
}
@media(max-width:768px){
  .slides{height:240px}
  .grid2{grid-template-columns:1fr}
  .contactBlock h2{font-size:34px}
  .insta-grid{grid-template-columns:repeat(2, 1fr)}
  .bottombar{display:flex}
}
/* Sistemazione brandSub mobile */
@media (max-width: 768px) {
  .brandSub{
    font-size: 14px;
    line-height: 1.5;
    padding: 0 15px;
  }
}
.brandSub {
  font-weight: bold;
}
.brandSub ul{
  margin:0;
  padding-left:18px;
}

.brandSub li{
  font-size:14px;
  font-weight:600;
  line-height:1.6;
}
.brandSub ul{
  list-style:none;
  padding-left:0;
  margin:0;
}

.brandSub li{
  font-size:14px;
  font-weight:600;
  line-height:1.7;
  position:relative;
  padding-left:18px;
}

.brandSub li::before{
  content:"";
  width:6px;
  height:6px;
  background:#ffffff;
  border-radius:50%;
  position:absolute;
  left:0;
  top:8px;
}
/* FOOTER BLU */

.siteFooter{
  background:linear-gradient(90deg,var(--brand),var(--brandDark));
  color:#ffffff;
  padding:60px 20px;
}


.footerContainer{
  max-width:1200px;
  margin:auto;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:40px;
}

.footerCol{
  flex:1;
  min-width:250px;
}

.footerCol h3{
  margin-bottom:15px;
  font-size:18px;
  font-weight:700;
  color:#ffffff;
}

.footerCol p{
  line-height:1.7;
  font-size:14px;
  opacity:0.95;
}

.siteFooter a{
  color:#ffffff;
  text-decoration:underline;
}
.siteFooter a:hover{
  text-decoration:none;
}
/* Privacy checkbox */
.consentRow{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-size:14px;
  color:var(--text);
  background:#fff;
  border:1px solid var(--border);
  border-radius:14px;
  padding:12px 12px;
}
.consentRow input{ margin-top:3px; width:auto; }
.consentRow a{ color:var(--brand); font-weight:900; text-decoration:underline; }

/* Map placeholder (quando cookie non accettati) */
.mapPlaceholder{
  padding:18px;
}
.mapPhTitle{
  font-weight:900;
  margin-bottom:8px;
}
.mapPhBtns{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
}

/* Cookie banner */
.cookieBanner{
  position:fixed;
  left:0; right:0; bottom:0;
  background:rgba(17,24,39,.98);
  color:#fff;
  padding:14px 16px;
  z-index:10000;
  border-top:1px solid rgba(255,255,255,.15);
}
.cookieInner{
  max-width:1100px;
  margin:0 auto;
  display:flex;
  gap:14px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}
.cookieText{
  flex:1;
  min-width:260px;
  font-size:14px;
  opacity:.95;
}
.cookieText a{ color:#fff; text-decoration:underline; font-weight:900; }
.cookieBtns{ display:flex; gap:10px; flex-wrap:wrap; }

/* Cookie modal (preferenze) */
.cookieModal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  z-index:10001;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
}
.cookieModalBox{
  width:100%;
  max-width:560px;
  background:#fff;
  border-radius:18px;
  border:1px solid var(--border);
  padding:14px;
}
.cookieModalTop{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.cookieModalTitle{ font-weight:900; font-size:18px; }
.cookieClose{
  border:1px solid var(--border);
  background:#fff;
  border-radius:12px;
  width:42px;
  height:42px;
  cursor:pointer;
  font-size:18px;
}
.cookieOpt{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:16px;
  margin-top:10px;
}
.cookieOptTitle{ font-weight:900; margin-bottom:4px; }
.cookieOptDesc{ color:var(--muted); font-size:13px; }
.cookieOptRight{ display:flex; align-items:center; }

/* Switch */
.switch{ position:relative; display:inline-block; width:52px; height:30px; }
.switch input{ opacity:0; width:0; height:0; }
.sliderRound{
  position:absolute; cursor:pointer; inset:0;
  background:#e5e7eb; border-radius:999px;
  transition:.2s;
}
.sliderRound:before{
  content:"";
  position:absolute; height:24px; width:24px;
  left:3px; top:3px; background:white;
  border-radius:50%;
  transition:.2s;
  border:1px solid rgba(0,0,0,.08);
}
.switch input:checked + .sliderRound{ background:rgba(23,116,175,.35); }
.switch input:checked + .sliderRound:before{ transform:translateX(22px); }

.cookieModalBottom{
  margin-top:12px;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}
.cookieModalBottom a{ color:var(--brand); font-weight:900; text-decoration:underline; }
.cookieModalBtns{ display:flex; gap:10px; flex-wrap:wrap; }