:root{
  --bg:#f7f7fb;
  --paper:#ffffff;
  --ink:#0f172a;
  --muted:#556070;
  --line:rgba(15,23,42,.10);
  --brand:#0b5bd3;
  --brand2:#16b0ff;
  --radius:22px;
  --shadow:0 14px 40px rgba(15,23,42,.08);
  --shadow2:0 10px 26px rgba(15,23,42,.06);
  --w:1100px;
}


*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color:var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(22,176,255,.18), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(11,91,211,.16), transparent 60%),
    var(--bg);
}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
.container{max-width:var(--w);margin:0 auto;padding:0 22px}

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px; padding:11px 14px;
  border-radius:999px; border:1px solid var(--line);
  background:rgba(255,255,255,.75);
  font-weight:800;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{transform:translateY(-1px); box-shadow:var(--shadow2)}
.btn-primary{
  border:0; color:#fff;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
}
.btn-ghost{background:rgba(255,255,255,.60)}

/* Header */
.site-header{
  position:sticky; top:0; z-index:50;
  border-bottom:1px solid rgba(15,23,42,.08);
  background:rgba(247,247,251,.72);
  backdrop-filter:saturate(140%) blur(10px);
}
.header-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:14px 0;
}
.brand{display:flex; align-items:center; gap:12px; font-weight:900; letter-spacing:.2px}
.brand-logo{width:40px; height:40px; object-fit:contain}
.brand-name{font-size:18px}
.brand-accent{color:var(--brand)}
.nav-desktop{display:flex; gap:14px; flex-wrap:wrap; color:var(--muted); font-weight:800}
.nav-desktop a{padding:10px 12px; border-radius:999px}
.nav-desktop a:hover{background:rgba(255,255,255,.75); border:1px solid var(--line); padding:9px 11px}
.header-cta{display:flex; gap:10px; align-items:center}
.nav-toggle{display:none}

/* Mobile menu */
.nav-mobile{
  position:fixed; inset:0;
  background:rgba(0,0,0,.55);
  display:none; align-items:center; justify-content:center;
  padding:22px; z-index:100;
}
.nav-mobile.open{display:flex}
.nav-mobile-card{
  width:min(520px, 100%);
  background:rgba(255,255,255,.92);
  border:1px solid rgba(15,23,42,.12);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
}
.nav-mobile-top{display:flex; align-items:center; justify-content:space-between; margin-bottom:10px}
.nav-mobile-title{font-weight:900}
.nav-close{
  font-size:26px; line-height:1; cursor:pointer;
  border:0; background:transparent;
}
.nav-mobile-card a{
  display:block; padding:12px 10px; border-radius:14px; font-weight:800;
}
.nav-mobile-card a:hover{background:rgba(15,23,42,.06)}
.nav-mobile-actions{display:flex; gap:10px; margin-top:12px; flex-wrap:wrap}

/* Hero */
.hero{padding:26px 0 14px}
.hero-grid{display:grid; grid-template-columns:1.15fr .85fr; gap:18px; align-items:stretch}
.pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,.65);
  backdrop-filter:blur(8px);
  color:var(--muted);
  font-weight:800;
}
.pill-dot{width:8px; height:8px; border-radius:999px; background:linear-gradient(135deg,var(--brand),var(--brand2))}
h1{margin:12px 0 10px; font-size:44px; line-height:1.05}
.lead{margin:0 0 14px; color:var(--muted); line-height:1.7; font-size:16px}
.hero-actions{display:flex; gap:10px; flex-wrap:wrap; margin:14px 0 10px}
.trust-row{display:flex; gap:10px; flex-wrap:wrap; margin-top:14px}
.trust-item{
  background:rgba(255,255,255,.78);
  border:1px solid var(--line);
  border-radius:16px;
  padding:10px 12px;
  min-width:140px;
}
.trust-kpi{display:block; font-weight:900}
.trust-sub{display:block; color:var(--muted); font-weight:800; font-size:12px}

.card{
  background:rgba(255,255,255,.86);
  border:1px solid rgba(15,23,42,.10);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.hero-media{position:relative}
.hero-img{width:100%; height:100%; min-height:320px; object-fit:cover}
.hero-media-overlay{position:absolute; inset:0; display:flex; align-items:flex-end; padding:14px}
.hero-media-badge{
  background:rgba(255,255,255,.86);
  border:1px solid rgba(15,23,42,.12);
  border-radius:16px;
  padding:10px 12px;
  box-shadow:var(--shadow2);
}
.hero-media-badge span{display:block; color:var(--muted); font-weight:800; font-size:12px}

/* Sections */
.section{padding:50px 0}
.section-soft{padding:52px 0; background:rgba(255,255,255,.35); border-top:1px solid rgba(15,23,42,.06); border-bottom:1px solid rgba(15,23,42,.06)}
.section-head{margin-bottom:16px}
h2{margin:0 0 8px; font-size:28px}
.muted{color:var(--muted); line-height:1.7}
.small{font-size:12px}

/* Service cards */
.cards{display:grid; grid-template-columns:repeat(4,1fr); gap:14px}
.service-card{padding:16px; transition:transform .15s ease, box-shadow .15s ease}
.service-card:hover{transform:translateY(-2px); box-shadow:0 18px 46px rgba(15,23,42,.10)}
.icon{font-size:24px}
.service-card h3{margin:10px 0 6px}
.service-card p{margin:0 0 10px; color:var(--muted)}
.link{font-weight:900; color:var(--brand)}

/* Two columns */
.two-col{display:grid; grid-template-columns:1.1fr .9fr; gap:16px; align-items:start}
.badges{display:flex; gap:8px; flex-wrap:wrap; margin-top:12px}
.badge{
  font-size:12px; font-weight:900;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(11,91,211,.08);
  border:1px solid rgba(11,91,211,.16);
  color:var(--brand);
}
.logos{padding:16px}
.logos-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:10px}
.logos-grid img{border-radius:16px; border:1px solid rgba(15,23,42,.10)}

/* Contacts */
.contact-grid{display:grid; grid-template-columns:1.05fr .95fr; gap:16px}
.contact-card{padding:18px}
.contact-actions{display:flex; gap:10px; flex-wrap:wrap; margin:12px 0}
.divider{height:1px; background:rgba(15,23,42,.10); margin:14px 0}

.form{display:flex; flex-direction:column; gap:10px}
input, textarea{
  padding:12px; font-size:14px;
  border-radius:14px; border:1px solid rgba(15,23,42,.14);
  background:rgba(255,255,255,.9);
}
textarea{min-height:110px; resize:vertical}
.map-card iframe{width:100%; height:360px; border:0}
.map-meta{padding:14px}

/* Footer */
.footer{padding:22px 0; border-top:1px solid rgba(15,23,42,.06); background:rgba(255,255,255,.45)}
.footer-inner{display:flex; align-items:flex-start; justify-content:space-between; gap:14px; flex-wrap:wrap}
.footer-links a{font-weight:900; color:var(--brand)}

/* Sticky CTA (mobile) */
.sticky-cta{
  display:none;
  position:fixed; left:0; right:0; bottom:0;
  padding:10px 12px;
  background:rgba(247,247,251,.82);
  backdrop-filter:blur(10px);
  border-top:1px solid rgba(15,23,42,.10);
  z-index:60;
  gap:10px;
}
.sticky-btn{
  flex:1;
  display:flex; justify-content:center; align-items:center;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(15,23,42,.14);
  background:rgba(255,255,255,.85);
  font-weight:900;
}
.sticky-btn.primary{
  border:0; color:#fff;
  background:linear-gradient(135deg,var(--brand),var(--brand2));
}

/* Responsive */
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr}
  .cards{grid-template-columns:repeat(2,1fr)}
  .two-col{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
  h1{font-size:36px}
}
@media (max-width: 780px){
  .nav-desktop{display:none}
  .nav-toggle{display:inline-flex}
  .sticky-cta{display:flex}
  .brand-name{display:none}
}
@media (max-width: 520px){
  .cards{grid-template-columns:1fr}
}

.hero-carousel { position: relative; overflow: hidden; }
.hero-carousel .carousel-track { position: relative; width: 100%; height: 480px; }
.hero-carousel .carousel-track img{
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; opacity:0; transition:opacity .8s ease;
}
.hero-carousel .carousel-track img.active{ opacity:1; }

@media (max-width: 980px){ .hero-carousel .carousel-track{ height: 380px; } }
@media (max-width: 640px){ .hero-carousel .carousel-track{ height: 280px; } }

.carousel-dots{
  position:absolute; bottom:14px; left:50%; transform:translateX(-50%);
  display:flex; gap:8px;
}
.carousel-dots .dot{
  width:10px; height:10px; border-radius:50%;
  border:0; cursor:pointer; background:rgba(255,255,255,.6);
}
.carousel-dots .dot.active{ background:#fff; }

/* REVIEWS */
.reviews-carousel { position: relative; max-width: 760px; margin: 0 auto; }
.reviews-track { position: relative; min-height: 200px; }

.review-card{
  position:absolute;
  inset:0;
  padding:22px;
  border-radius:22px;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(15,23,42,.10);
  box-shadow:0 14px 40px rgba(15,23,42,.08);
  opacity:0;
  transition:opacity .6s ease;
}

.review-card.active{ opacity:1; }

.review-stars{
  color:#f5b301;
  font-size:18px;
  letter-spacing:2px;
  margin-bottom:8px;
}

.review-card p{
  font-size:16px;
  line-height:1.6;
  margin:0 0 10px;
}

.review-card strong{
  font-weight:900;
}

.reviews-dots{
  display:flex;
  justify-content:center;
  gap:8px;
  margin-top:14px;
}
/* Fix pallini recensioni: niente sovrapposizione col bottone */
.reviews-dots{
  position: static;
  margin: 16px 0;
  display: flex;
  justify-content: center; /* ← QUESTO li centra */
}

/* OVERRIDE definitivo: pallini recensioni centrati e non in assoluto */
.reviews-carousel .carousel-dots.reviews-dots{
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  transform: none !important;

  display: flex !important;
  justify-content: center !important;
  margin: 16px 0 !important;
  width: 100% !important;
}

/* ===== HEADER MOBILE FIX ===== */
@media (max-width: 780px){

  /* Mostra il nome brand anche su mobile */
  .brand-name{
    display: inline;
    font-size: 16px;
    font-weight: 900;
  }

  /* Nascondiamo CTA header (chiama / whatsapp) su mobile */
  .header-cta a{
    display: none;
  }

  /* Layout header: brand a sinistra, hamburger a destra ma NON attaccato */
  .header-inner{
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  /* Hamburger più vicino al centro, non al bordo */
  .nav-toggle{
    margin-right: 6px;          /* lo stacca dal bordo */
    width: 42px;
    height: 42px;
    justify-self: end;
  }
}

/* ===== Service pages ===== */
.page-hero{ padding: 34px 0 10px; }
.page-hero .card{ padding: 18px; }
.page-hero h1{ margin: 6px 0 8px; font-size: 34px; line-height: 1.1; }
.page-hero .lead{ margin: 0; }

.gallery{ padding: 22px 0 0; }
.gallery h2{ margin: 0 0 12px; }
.gallery-strip{
  display:flex; gap:12px;
  overflow-x:auto; padding: 8px 2px 14px;
  scroll-snap-type: x mandatory;
}
.gallery-strip img{
  height: 300px;
  border-radius: 18px;
  border: 1px solid rgba(15,23,42,.10);
  flex: 0 0 auto;
  scroll-snap-align: start;
}

@media (max-width: 640px){
  .page-hero h1{ font-size: 28px; }
  .gallery-strip img{ height: 220px; }
}