
:root {
  --deep: #0b3a4a;
  --deep-2: #0e4a5e;
  --teal: #12808e;
  --teal-light: #e6f4f5;
  --gold: #c9a24b;
  --ink: #1c2b31;
  --muted: #5b6e75;
  --bg-soft: #f4f8f9;
  --white: #ffffff;
  --line: #dde7ea;
  --whatsapp: #1eb95a;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(11,58,74,.10);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--white);
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- TOP BAR ---------- */
.topbar {
  background: var(--deep);
  color: #cfe3e8;
  font-size: .82rem;
  padding: 8px 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar .num { color: var(--gold); font-weight: 700; letter-spacing: .3px; }

/* ---------- HEADER ---------- */
header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, var(--deep), var(--teal));
  display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 1.15rem;
  letter-spacing: .5px;
}
.brand-name { font-weight: 800; color: var(--deep); font-size: 1.05rem; line-height: 1.15; }
.brand-sub { font-size: .72rem; color: var(--muted); letter-spacing: .4px; text-transform: uppercase; }
.cta-wa {
  background: var(--whatsapp); color: #fff;
  padding: 11px 20px; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: .92rem;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 18px rgba(30,185,90,.35);
  transition: transform .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.cta-wa:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30,185,90,.45); }

/* ---------- HERO ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(18,128,142,.18), transparent 60%),
    linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 55%, #0d5a68 100%);
  color: #fff;
  padding: 72px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }

.eyebrow {
  display: inline-block;
  background: rgba(201,162,75,.16);
  border: 1px solid rgba(201,162,75,.45);
  color: var(--gold);
  font-size: .74rem; font-weight: 700;
  letter-spacing: 1.6px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -.5px;
}
.hero h1 .accent { color: var(--gold); }
.hero p.lead { font-size: 1.08rem; color: #d7e8ec; max-width: 560px; margin-bottom: 26px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: .98rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary { background: var(--gold); color: var(--deep); box-shadow: 0 8px 22px rgba(201,162,75,.4); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }

.hero-proof {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 22px 24px;
  backdrop-filter: blur(4px);
}
.hero-proof .stat { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px dashed rgba(255,255,255,.18); padding: 9px 0; }
.hero-proof .stat:last-child { border-bottom: 0; }
.hero-proof .stat b { font-size: 1.5rem; color: var(--gold); }
.hero-proof .stat span { font-size: .86rem; color: #cfe3e8; }
.hero-proof .mark {
  margin-top: 14px; font-size: .72rem; color: #9fc4cc;
  letter-spacing: .6px; text-transform: uppercase; text-align: center;
}

/* ---------- TRUST BAR ---------- */
.trustbar { background: var(--white); border-bottom: 1px solid var(--line); padding: 16px 0; }
.trustbar .container { display: flex; justify-content: space-around; gap: 14px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: .84rem; color: var(--muted); font-weight: 600; }
.trust-item .dot { width: 30px; height: 30px; border-radius: 50%; background: var(--teal-light); color: var(--teal); display: grid; place-items: center; font-size: .95rem; }

/* ---------- SECTIONS ---------- */
section { padding: 64px 0; }
section.alt { background: var(--bg-soft); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.sec-head h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--deep); font-weight: 800; letter-spacing: -.4px; margin-bottom: 10px; }
.sec-head p { color: var(--muted); font-size: 1.02rem; }
.sec-kicker {
  color: var(--teal); font-size: .74rem; font-weight: 800;
  letter-spacing: 2px; text-transform: uppercase; margin-bottom: 8px;
}

/* ---------- PROBLEM / SOLUTION ---------- */
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ps-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
}
.ps-card.problem { border-top: 4px solid #c25e5e; }
.ps-card.solution { border-top: 4px solid var(--teal); background: linear-gradient(180deg, #fbfefe, var(--white)); }
.ps-card h3 { font-size: 1.15rem; margin-bottom: 12px; color: var(--deep); }
.ps-card ul { list-style: none; }
.ps-card li { padding: 7px 0 7px 26px; position: relative; font-size: .95rem; color: var(--ink); }
.ps-card.problem li::before { content: "✕"; position: absolute; left: 2px; color: #c25e5e; font-weight: 800; }
.ps-card.solution li::before { content: "✓"; position: absolute; left: 2px; color: var(--teal); font-weight: 800; }
.ps-tag { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }
.ps-tag.problem { background: #fbeaea; color: #a03d3d; }
.ps-tag.solution { background: var(--teal-light); color: var(--teal); }

/* ---------- PROTOCOLLI ---------- */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tcard {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tcard .ico {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--deep), var(--teal));
  color: #fff; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 16px;
}
.tcard h3 { color: var(--deep); font-size: 1.1rem; margin-bottom: 8px; }
.tcard p { font-size: .92rem; color: var(--muted); }
.tcard .reg { display: inline-block; margin-top: 12px; font-size: .7rem; color: var(--teal); font-weight: 700; letter-spacing: .6px; }

/* ---------- COMPARISON ---------- */
table.cmp { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cmp th, .cmp td { padding: 14px 16px; text-align: left; font-size: .92rem; border-bottom: 1px solid var(--line); }
.cmp thead th { background: var(--deep); color: #fff; font-size: .86rem; letter-spacing: .5px; }
.cmp thead th:first-child { background: var(--deep-2); }
.cmp .col-aof { background: #f0fafb; font-weight: 700; color: var(--deep); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp .no { color: #b05151; font-weight: 700; }
.cmp .si { color: var(--teal); font-weight: 700; }

/* ---------- PARTNER LOCALE ---------- */
.partner {
  background: linear-gradient(135deg, var(--deep), var(--deep-2));
  color: #fff; border-radius: 22px; padding: 44px 40px;
  position: relative; overflow: hidden;
}
.partner::after {
  content: "BERGAMO"; position: absolute; right: -20px; bottom: -30px;
  font-size: 7rem; font-weight: 900; color: rgba(255,255,255,.05);
  letter-spacing: 4px; pointer-events: none;
}
.partner h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 12px; }
.partner p { color: #ffffff; max-width: 640px; margin-bottom: 22px; }
.partner-box {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px; padding: 20px 24px; max-width: 640px;
}
.partner-box .pin { font-size: 1.6rem; }
.partner-box .pname { font-weight: 800; font-size: 1.05rem; }
.partner-box .paddr { font-size: .88rem; color: #cfe3e8; }
.partner-box .badge { font-size: .72rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(201,162,75,.5); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }

/* ---------- PERCORSO ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px 20px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 20px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold); color: var(--deep);
  font-weight: 800; display: grid; place-items: center;
  font-size: .95rem;
}
.step h4 { color: var(--deep); font-size: 1rem; margin-bottom: 6px; margin-top: 8px; }
.step p { font-size: .86rem; color: var(--muted); }

/* ---------- CASI ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.case {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.case-media { height: 190px; background: linear-gradient(135deg, #dceef1, #eef6f7); display: grid; place-items: center; color: var(--teal); font-size: 2.4rem; }
.case-body { padding: 18px 20px; }
.case-body .ctag { font-size: .7rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.case-body h4 { font-size: .98rem; color: var(--deep); margin-bottom: 4px; }
.case-body p { font-size: .84rem; color: var(--muted); }
.case-body .arrow { color: var(--gold); font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
details {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; margin-bottom: 12px; overflow: hidden;
}
summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--deep);
  font-size: .98rem; list-style: none; position: relative; padding-right: 48px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  color: var(--teal); font-size: 1.5rem; font-weight: 400;
}
details[open] summary::after { content: "–"; }
details p { padding: 0 22px 18px; color: var(--muted); font-size: .93rem; }

/* ---------- CTA FINALE ---------- */
.final-cta {
  background:
    radial-gradient(900px 400px at 20% 0%, rgba(201,162,75,.14), transparent 55%),
    linear-gradient(160deg, var(--deep) 0%, #0d5a68 100%);
  color: #fff; text-align: center; padding: 70px 20px;
}
.final-cta h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin-bottom: 12px; }
.final-cta p { color: #ffffff; max-width: 620px; margin: 0 auto 28px; font-size: 1.04rem; }
.big-phone { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; color: var(--gold); letter-spacing: 1px; }

/* ---------- FOOTER ---------- */
footer { background: #082f3a; color: #9fc4cc; padding: 40px 0 30px; font-size: .82rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 24px; }
footer h5 { color: #fff; font-size: .8rem; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
footer a { color: #9fc4cc; text-decoration: none; display: block; margin-bottom: 6px; }
footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; font-size: .74rem; }

/* ---------- GALLERIA ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); margin: 0; position: relative;
}
.gallery-item img { width: 100%; height: 230px; object-fit: cover; display: block; transition: transform .25s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .g-tag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(11,58,74,.85); color: #fff;
  font-size: .66rem; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
}
.gallery-item figcaption { padding: 10px 14px; font-size: .8rem; color: var(--muted); font-weight: 600; }

/* ---------- VIDEO ---------- */
.videos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.video-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.video-card video { width: 100%; height: 300px; object-fit: cover; background: var(--deep); display: block; }
.video-card .v-body { padding: 14px 18px; }
.video-card h4 { font-size: .95rem; color: var(--deep); margin-bottom: 4px; }
.video-card p { font-size: .82rem; color: var(--muted); }

/* ---------- MAPPA ---------- */
.map-wrap {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center;
  background: linear-gradient(135deg, var(--deep), var(--deep-2));
  border-radius: 22px; padding: 30px; color: #fff; overflow: hidden;
}
.map-frame { border-radius: 14px; overflow: hidden; box-shadow: 0 14px 40px rgba(0,0,0,.35); }
.map-frame iframe { width: 100%; height: 420px; border: 0; display: block; }
.map-info .sec-kicker { color: var(--gold); }
.map-info h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 12px; }
.map-info p { color: #ffffff; font-size: .95rem; margin-bottom: 18px; }
.map-info .m-addr { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; color: var(--gold); }
.map-info .m-note { font-size: .82rem; color: #dbe7ed; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .hero-grid, .ps-grid { grid-template-columns: 1fr; }
  .cards3, .cases { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .videos, .map-wrap { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .partner-box { grid-template-columns: 1fr; text-align: left; }
  .partner-box .badge { justify-self: start; }
}
@media (max-width: 600px) {
  .gallery { grid-template-columns: 1fr; }
  .map-frame iframe { height: 340px; }
  .video-card video { height: 220px; }
  .steps { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .header-row { flex-wrap: wrap; }
  .cta-wa { width: 100%; justify-content: center; }
  .cmp th, .cmp td { padding: 10px 10px; font-size: .82rem; }
  .cmp { display: block; overflow-x: auto; }
}


/* ---------- NAV MENU ---------- */
.mainnav { background: var(--white); border-bottom: 1px solid var(--line); }
.mainnav .container { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; }
.mainnav a {
  color: var(--deep); text-decoration: none; font-weight: 700; font-size: .86rem;
  padding: 9px 16px; border-radius: 999px; white-space: nowrap; transition: background .15s;
}
.mainnav a:hover { background: var(--teal-light); color: var(--teal); }
.mainnav a.cta { background: var(--gold); color: var(--deep); }

/* ---------- PAGINA INTERNA (articolo) ---------- */
.page-hero { background: linear-gradient(160deg, var(--deep) 0%, var(--deep-2) 55%, #0d5a68 100%); color: #fff; padding: 56px 0 46px; }
.page-hero .container { max-width: 880px; }
.page-hero .crumb { font-size: .8rem; color: #9fc4cc; margin-bottom: 18px; }
.page-hero .crumb a { color: var(--gold); text-decoration: none; }
.page-hero h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.2; font-weight: 800; margin-bottom: 14px; }
.page-hero h1 .accent { color: var(--gold); }
.page-hero p { color: #d7e8ec; font-size: 1.05rem; max-width: 720px; }
.page-body { max-width: 860px; margin: 0 auto; padding: 46px 20px 20px; }
.page-body h2 { color: var(--deep); font-size: 1.4rem; margin: 34px 0 12px; }
.page-body p { color: var(--ink); font-size: 1.02rem; line-height: 1.8; margin-bottom: 16px; }
.page-body ul { margin: 0 0 20px 22px; }
.page-body li { margin-bottom: 10px; font-size: 1rem; line-height: 1.7; }
.page-body img { width: 100%; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); margin: 20px 0; }
.page-body .quote { border-left: 4px solid var(--gold); background: var(--teal-light); padding: 18px 22px; margin: 26px 0; font-size: 1.05rem; color: var(--deep); font-weight: 600; border-radius: 0 12px 12px 0; }

/* ---------- Video piccoli con cornice verde in rilievo ---------- */
.videos3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 30px auto 0; max-width: 980px; }
.video-mini {
  background: var(--white);
  border: 2px solid var(--teal);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 28px -8px rgba(18,128,142,.45), 0 3px 8px rgba(18,128,142,.25);
  transition: transform .22s ease, box-shadow .22s ease;
}
.video-mini:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px -10px rgba(18,128,142,.55), 0 6px 14px rgba(18,128,142,.3);
}
.video-mini iframe { width: 100%; aspect-ratio: 16/9; display: block; border: 0; }
.video-mini .cap { padding: 11px 12px; font-size: .82rem; color: var(--deep); font-weight: 700; text-align: center; background: var(--teal-light); }
@media (max-width: 760px) { .videos3 { grid-template-columns: 1fr; } }

/* ---------- Griglia comuni ---------- */
.comuni-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.comuni-grid a { background: var(--white); border: 1px solid var(--line); padding: 9px 12px; border-radius: 8px; font-size: .82rem; color: var(--deep); text-decoration: none; transition: all .15s; }
.comuni-grid a:hover { border-color: var(--teal); color: var(--teal); background: var(--teal-light); }
@media (max-width: 900px) { .comuni-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .comuni-grid { grid-template-columns: 1fr; } }
