/* ============================================================
   PEZZOLI ASSICURAZIONI — Homepage
   Brand system: sober, human, professional (Unipol Group)
   ============================================================ */

:root {
  /* Colors */
  --blue-primary: #003087;
  --blue-secondary: #0055B8;
  --blue-deep: #002257;
  --white: #FFFFFF;
  --grey-bg: #F5F6F8;
  --gold: #C9971C;
  --title: #1A1A2E;
  --body: #3D3D3D;
  --caption: #6B7280;
  --footer-bg: #1A1A2E;
  --cyan: #1FA0E8; /* sampled from logo accent */

  --line: #E4E7EC;
  --line-soft: #EEF0F3;

  /* Type */
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --pad: 80px;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 6px 18px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 18px 48px rgba(0, 48, 135, 0.14);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--title);
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.01em;
  font-weight: 600;
  text-wrap: balance;
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* Accessibility: visible focus ring */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--blue-secondary);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.section { padding-top: 96px; padding-bottom: 96px; }
.section--grey { background: var(--grey-bg); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-secondary);
  margin: 0 0 16px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 12px;
  transform: translateY(-3px);
}

.h1 { font-size: 46px; }
.h2 { font-size: 34px; }
.lead { font-size: 18px; color: var(--body); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .lead { margin-top: 18px; color: var(--caption); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 16px 28px;
  border-radius: var(--r-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .12s var(--ease),
              box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.985); }

.btn--primary { background: var(--blue-primary); color: #fff; }
.btn--primary:hover { background: var(--blue-secondary); box-shadow: var(--shadow-md); }

.btn--outline { background: transparent; color: var(--blue-primary); border-color: var(--blue-primary); }
.btn--outline:hover { background: var(--blue-primary); color: #fff; }

.btn--ghost-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.btn--ghost-white:hover { background: #fff; color: var(--blue-primary); border-color: #fff; }

.btn--lg { padding: 18px 34px; font-size: 17px; }
.btn--block { width: 100%; }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #ffffff;
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.header.is-scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}
/* Header spans wider with tighter side padding: logo hugs left, CTA hugs right */
.header .container.header__inner {
  max-width: 1440px;
  padding-left: 40px;
  padding-right: 40px;
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 24px;
  height: 84px;
}
.header__logo img { height: 56px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 40px;
}
.nav a, .nav-item__top { white-space: nowrap; }
.nav a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15.5px;
  color: var(--title);
  position: relative;
  padding: 6px 0;
  transition: color .18s var(--ease);
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--blue-secondary);
  transition: width .22s var(--ease);
}
.nav a:hover { color: var(--blue-primary); }
.nav a:hover::after { width: 100%; }
.nav a.is-active { color: var(--blue-primary); }
.nav a.is-active::after { width: 100%; }

/* ---------- Nav dropdown (desktop) ---------- */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item__top { display: inline-flex; align-items: center; gap: 5px; }
.nav-caret { width: 14px; height: 14px; opacity: .6; transition: transform .2s var(--ease); }
.nav-item--dd:hover .nav-caret,
.nav-item--dd:focus-within .nav-caret { transform: rotate(180deg); }
.nav-dd {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 276px; padding-top: 16px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  z-index: 70;
}
.nav-item--dd:hover .nav-dd,
.nav-item--dd:focus-within .nav-dd {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dd__inner {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 10px;
}
.nav-dd__inner a {
  padding: 11px 14px; font-size: 15px; font-weight: 500;
  color: var(--title); border-radius: var(--r-md);
  transition: background .16s var(--ease), color .16s var(--ease);
}
.nav-dd__inner a::after { display: none; }
.nav-dd__inner a:hover { background: rgba(0,48,135,.06); color: var(--blue-primary); }
.nav-dd__all {
  color: var(--blue-secondary) !important; font-weight: 600 !important;
  border-radius: var(--r-md) var(--r-md) 0 0 !important;
  border-bottom: 1px solid var(--line); margin-bottom: 6px;
}

/* ---------- Nav group (mobile drawer) ---------- */
.drawer__grouptoggle {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-weight: 500; font-size: 18px;
  color: var(--title); padding: 14px 8px;
  border-bottom: 1px solid var(--line-soft);
}
.drawer__grouptoggle.is-active { color: var(--blue-primary); }
.drawer__grouptoggle .nav-caret { width: 18px; height: 18px; opacity: .6; transition: transform .25s var(--ease); }
.drawer__group.is-open .nav-caret { transform: rotate(180deg); }
.drawer__sub { display: none; flex-direction: column; padding: 4px 0 8px; }
.drawer__group.is-open .drawer__sub { display: flex; }
.drawer__sublink {
  padding: 11px 8px 11px 22px !important; font-size: 16px !important;
  border-bottom: 1px solid var(--line-soft);
  position: relative; color: var(--caption) !important;
}
.drawer__sublink:first-child { color: var(--blue-secondary) !important; font-weight: 600 !important; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
}

/* ---------- Floaters (WhatsApp + back-to-top) ---------- */
.floaters {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 90;
  display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.float-wa, .float-top {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: var(--shadow-lg);
  border: none; cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease);
}
.float-wa { background: #25D366; color: #fff; }
.float-wa svg { width: 30px; height: 30px; }
.float-wa:hover { transform: scale(1.06); }
.float-top {
  background: #fff; color: var(--blue-primary);
  border: 1.5px solid var(--line);
  width: 48px; height: 48px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
}
.float-top svg { width: 22px; height: 22px; }
.float-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.float-top:hover { background: var(--blue-primary); color: #fff; border-color: var(--blue-primary); }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed;
  left: 24px; bottom: 24px;
  z-index: 95;
  max-width: 420px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px 24px;
  transform: translateY(140%);
  transition: transform .4s var(--ease);
}
.cookie.is-visible { transform: none; }
.cookie__text { font-size: 14px; color: var(--body); line-height: 1.55; margin-bottom: 16px; }
.cookie__text a { color: var(--blue-secondary); text-decoration: underline; }
.cookie__actions { display: flex; gap: 10px; }
.cookie__btn { padding: 11px 18px; font-size: 14px; flex: 1; }
@media (max-width: 600px) {
  .cookie { left: 16px; right: 16px; bottom: 16px; max-width: none; }
  .floaters { right: 16px; bottom: 16px; }
}

.header__cta { display: flex; align-items: center; gap: 14px; }
.header__cta .btn { padding: 13px 22px; font-size: 15px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 26px; height: 2.5px;
  background: var(--blue-primary);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s var(--ease);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(26,26,46,.45);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
  z-index: 70;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0;
  width: min(360px, 86vw); height: 100%;
  background: #fff;
  z-index: 80;
  transform: translateX(100%);
  transition: transform .32s var(--ease);
  display: flex; flex-direction: column;
  padding: 24px;
  box-shadow: -10px 0 40px rgba(16,24,40,.18);
}
.drawer.is-open { transform: translateX(0); }
.drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.drawer__top img { height: 38px; }
.drawer__close { background: none; border: none; font-size: 30px; line-height: 1; color: var(--title); cursor: pointer; }
.drawer nav { display: flex; flex-direction: column; gap: 4px; }
.drawer nav a {
  font-family: var(--font-body);
  font-weight: 500; font-size: 18px;
  color: var(--title);
  padding: 14px 8px;
  border-bottom: 1px solid var(--line-soft);
}
.drawer nav a:hover { color: var(--blue-primary); }
.drawer .btn { margin-top: 24px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg image-slot { width: 100%; height: 100%; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(0,28,72,0.93) 0%, rgba(0,40,110,0.74) 40%, rgba(0,48,135,0.36) 70%, rgba(0,48,135,0.14) 100%),
    linear-gradient(0deg, rgba(0,18,52,0.5) 0%, rgba(0,18,52,0) 42%);
}
.hero__inner {
  padding-top: 120px;
  padding-bottom: 128px;
  color: #fff;
}
.hero__inner > * { max-width: 760px; }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--gold); }
.hero h1 {
  color: #fff;
  font-size: 47px;
  font-weight: 700;
  line-height: 1.14;
  margin-bottom: 24px;
}
.hero__sub {
  font-size: 18.5px;
  line-height: 1.65;
  color: rgba(255,255,255,.92);
  max-width: 700px;
  margin-bottom: 18px;
}
.hero__body {
  font-size: 17px;
  color: rgba(255,255,255,.82);
  max-width: 620px;
  margin-bottom: 38px;
}
.hero__body strong { color: #fff; font-weight: 600; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 16px; }

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  background: var(--blue-primary);
  color: #fff;
  overflow: hidden;
  padding: 18px 0;
  white-space: nowrap;
  position: relative;
}
.ticker::before, .ticker::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 90px; z-index: 2; pointer-events: none;
}
.ticker::before { left: 0; background: linear-gradient(90deg, var(--blue-primary), transparent); }
.ticker::after { right: 0; background: linear-gradient(270deg, var(--blue-primary), transparent); }
.ticker__track {
  display: inline-flex;
  align-items: center;
  animation: ticker-scroll 46s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__item {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.01em;
  padding: 0 26px;
  display: inline-flex; align-items: center; gap: 26px;
  color: rgba(255,255,255,.95);
}
.ticker__item::after {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
  display: inline-block;
}
@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   PREVENTIVO
   ============================================================ */
.prev-cats {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}
.cat-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 14px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--title);
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease),
              background .18s var(--ease), transform .12s var(--ease);
}
.cat-btn svg { width: 30px; height: 30px; color: var(--blue-primary); transition: color .18s var(--ease); }
.cat-btn:hover { border-color: var(--blue-secondary); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cat-btn.is-active { background: var(--blue-primary); border-color: var(--blue-primary); color: #fff; }
.cat-btn.is-active svg { color: #fff; }

.prev-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 40px;
  max-width: none;
  width: 100%;
}
.prev-form__head { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.prev-form__badge {
  width: 48px; height: 48px; flex: none;
  border-radius: var(--r-md);
  background: rgba(0,48,135,.08);
  display: grid; place-items: center;
  color: var(--blue-primary);
}
.prev-form__badge svg { width: 26px; height: 26px; }
.prev-form__head h3 { font-size: 21px; }
.prev-form__head p { font-size: 14px; color: var(--caption); margin-top: 2px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-body);
  font-weight: 600; font-size: 13.5px;
  color: var(--title);
}
.field label .req { color: var(--gold); }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 15.5px;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--body);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #9AA1AC; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue-secondary);
  box-shadow: 0 0 0 3px rgba(0,85,184,.12);
}
.field textarea { resize: vertical; min-height: 90px; }

.privacy {
  grid-column: 1 / -1;
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 13.5px; color: var(--caption); line-height: 1.55;
  margin-top: 4px;
}
.privacy input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--blue-primary); flex: none; cursor: pointer; }
.privacy a { color: var(--blue-secondary); text-decoration: underline; }

.prev-form .btn { margin-top: 26px; }
.form-card > .btn--block { margin-top: 40px; }
.reassure {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 22px;
  font-size: 14px; color: var(--caption); line-height: 1.6;
}
.reassure svg { width: 18px; height: 18px; color: #2E9E5B; flex: none; margin-top: 3px; }

/* ============================================================
   WHY CHOOSE US — split editorial layout
   ============================================================ */
.why-split {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 72px;
  align-items: start;
}
.why-split__aside { position: sticky; top: 120px; }
.why-split__aside .h2 { margin-bottom: 20px; }
.why-split__aside .lead { color: var(--caption); margin-bottom: 30px; }

.why-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.why-row {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 26px;
  padding: 30px 8px;
  border-bottom: 1px solid var(--line);
  transition: background .2s var(--ease), padding-left .2s var(--ease);
}
.why-row:hover { background: var(--grey-bg); padding-left: 20px; }
.why-row__num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  color: var(--gold);
  letter-spacing: .04em;
  width: 28px;
}
.why-row__icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  background: rgba(0,48,135,.07);
  display: grid; place-items: center;
  color: var(--blue-primary);
  flex: none;
}
.why-row__icon svg { width: 26px; height: 26px; }
.why-row__body { display: flex; flex-direction: column; gap: 5px; }
.why-row__title { font-family: var(--font-head); font-weight: 600; font-size: 18.5px; color: var(--title); line-height: 1.3; }
.why-row__text { font-size: 15px; color: var(--caption); line-height: 1.55; }

/* ============================================================
   PRODUCTS
   ============================================================ */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 30px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
  display: flex; flex-direction: column;
}
.product-card:hover { border-color: var(--blue-secondary); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-card__icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: rgba(0,48,135,.07);
  display: grid; place-items: center;
  color: var(--blue-primary);
  margin-bottom: 22px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.product-card:hover .product-card__icon { background: var(--blue-primary); color: #fff; }
.product-card__icon svg { width: 28px; height: 28px; }
.product-card h3 { font-size: 19px; margin-bottom: 10px; }
.product-card p { font-size: 15px; color: var(--caption); margin-bottom: 20px; flex: 1; }
.product-card__link {
  font-family: var(--font-head);
  font-weight: 600; font-size: 15px;
  color: var(--blue-primary);
  display: inline-flex; align-items: center; gap: 8px;
}
.product-card__link span { transition: transform .2s var(--ease); }
.product-card:hover .product-card__link span { transform: translateX(5px); }

/* ============================================================
   WHO WE ARE
   ============================================================ */
.who { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.who__text .h2 { margin-bottom: 22px; }
.who__text p { margin-bottom: 18px; color: var(--body); }
.who__link {
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  color: var(--blue-primary);
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
}
.who__link span { transition: transform .2s var(--ease); }
.who__link:hover span { transform: translateX(5px); }
.who__stats { display: flex; gap: 40px; margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.who__stat { display: flex; flex-direction: column; align-items: center; text-align: center; }
.who__stat .num { font-family: var(--font-head); font-weight: 700; font-size: 34px; color: var(--blue-primary); line-height: 1; }
.who__stat .lbl { font-size: 13.5px; color: var(--caption); margin-top: 8px; }
.who__photo {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.who__photo image-slot { width: 100%; height: 480px; }
.who__photo::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: var(--gold);
}

/* ============================================================
   OFFICES
   ============================================================ */
.map-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  margin-bottom: 36px;
  background: #dfe6ee;
}
.map-wrap image-slot { width: 100%; height: 420px; }
.map-placeholder {
  width: 100%; height: 420px;
  position: relative;
  background:
    linear-gradient(rgba(0,48,135,.04), rgba(0,48,135,.04)),
    repeating-linear-gradient(0deg, #e7ecf3 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, #e7ecf3 0 1px, transparent 1px 44px),
    #eef2f7;
}
.map-roads::before, .map-roads::after {
  content:""; position:absolute; background:#fff; box-shadow: 0 0 0 1px #dde4ec;
}
.map-roads::before { left:0; right:0; top:46%; height:16px; transform: rotate(-4deg); }
.map-roads::after { top:0; bottom:0; left:38%; width:14px; transform: rotate(3deg); }
.map-pin {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center;
  z-index: 3;
}
.map-pin__dot {
  width: 34px; height: 34px; border-radius: 50% 50% 50% 0;
  background: var(--blue-primary);
  transform: rotate(-45deg);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
  border: 2.5px solid #fff;
}
.map-pin__dot::after { content:""; width:10px; height:10px; border-radius:50%; background:#fff; transform: rotate(45deg); }
.map-pin__label {
  margin-top: 10px;
  background: #fff;
  font-family: var(--font-head); font-weight: 600; font-size: 12.5px;
  color: var(--title);
  padding: 5px 11px; border-radius: var(--r-pill, 20px);
  box-shadow: var(--shadow-sm); white-space: nowrap;
}
.map-attr { position:absolute; right:10px; bottom:8px; font-size:11px; color:#8a93a0; background:rgba(255,255,255,.7); padding:2px 8px; border-radius:4px; z-index:3; }

.office-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(248px, 1fr)); gap: 24px; }
.office-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  position: relative;
}
.office-card__tag {
  display: inline-block;
  font-family: var(--font-body); font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.office-card h3 { font-size: 20px; margin-bottom: 14px; }
.office-line { display: flex; align-items: flex-start; gap: 11px; font-size: 14.5px; color: var(--body); margin-bottom: 11px; }
.office-line span { min-width: 0; overflow-wrap: anywhere; }
.office-line a { color: var(--blue-secondary); font-weight: 500; }
.office-line a[href^="mailto:"] { font-size: 11.5px; }
.office-line a:hover { text-decoration: underline; }
.office-line svg { width: 17px; height: 17px; color: var(--blue-secondary); flex: none; margin-top: 4px; }
.office-card__actions { display: flex; gap: 10px; margin-top: 20px; }
.office-card__actions a {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-family: var(--font-head); font-weight: 600; font-size: 13.5px;
  padding: 11px 12px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  color: var(--blue-primary);
  transition: all .16s var(--ease);
}
.office-card__actions a svg { width: 16px; height: 16px; }
.office-card__actions a:hover { border-color: var(--blue-primary); background: var(--blue-primary); color: #fff; }
.office-card__actions a.wa { color: #1FA463; }
.office-card__actions a.wa:hover { background: #1FA463; border-color: #1FA463; color: #fff; }

.offices-note {
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 30px;
  font-family: var(--font-head); font-weight: 600; font-size: 14.5px;
  color: var(--blue-primary);
  background: rgba(0,48,135,.06);
  padding: 11px 18px; border-radius: 30px;
}
.offices-note svg { width: 18px; height: 18px; }

/* ============================================================
   PARTNERS
   ============================================================ */
.partners { text-align: center; }
.partners .section-head { margin: 0 auto 48px; text-align: center; }
.partner-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  max-width: 940px;
  margin: 0 auto;
}
.partner-logo {
  height: 92px;
  width: 210px;
  display: grid; place-items: center;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.partner-logo img { max-width: 150px; max-height: 60px; width: auto; height: auto; object-fit: contain; display: block; }
/* BPER tighter-cropped logo — slightly larger to match optically */
.partner-logo img[alt="BPER Banca"] { max-width: 150px; max-height: 66px; }
/* Unipol logo reads slightly large — trim it down a touch */
.partner-logo img[alt="Unipol"] { max-width: 128px; max-height: 52px; }
.partner-logo:hover { border-color: var(--blue-secondary); box-shadow: var(--shadow-sm); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--footer-bg); color: rgba(255,255,255,.72); }
.footer__main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; padding-top: 76px; padding-bottom: 56px; }
.footer h4 {
  font-family: var(--font-head); color: #fff; font-size: 14px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; margin-bottom: 22px;
}
.footer__brand .logo-name { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: #fff; margin-bottom: 16px; letter-spacing: .01em; }
.footer__brand .logo-name span { color: var(--cyan); font-weight: 600; font-size: 14px; display:block; letter-spacing:.04em; margin-top:2px; }
.footer__logo {
  display: inline-flex;
  background: #fff;
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin-bottom: 22px;
}
.footer__logo img { height: 42px; width: auto; }
.footer__legal { font-size: 14px; line-height: 1.9; }
.footer__legal .muted { color: rgba(255,255,255,.5); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer ul a, .footer ul li { font-size: 14.5px; color: rgba(255,255,255,.72); transition: color .16s var(--ease); }
.footer ul a:hover { color: #fff; }
.footer__contact-line { display: flex; align-items: center; gap: 10px; font-size: 14.5px; margin-bottom: 12px; }
.footer__contact-line svg { width: 16px; height: 16px; color: var(--cyan); flex:none; }
.footer__contact-line a:hover { color: #fff; }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 26px; padding-bottom: 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer__bottom .copy { font-size: 13px; color: rgba(255,255,255,.5); }
.footer__partners { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.footer__partners span { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: rgba(255,255,255,.55); }

.footer__credit {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 18px; padding-bottom: 28px;
  font-size: 13px;
  color: rgba(255,255,255,.45);
  text-align: center;
}
.footer__credit a { color: var(--cyan); font-weight: 600; }
.footer__credit a:hover { color: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  :root { --pad: 48px; }
  .nav { gap: 18px; }
  .nav a, .nav-item__top { font-size: 14.5px; }
  .header__cta .btn { padding: 11px 16px; font-size: 14px; }
  .prev-cats { grid-template-columns: repeat(4, 1fr); }
  .footer__main { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 1240px) {
  .nav, .header__cta .btn { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 860px) {
  .why-split { grid-template-columns: 1fr; gap: 36px; }
  .why-split__aside { position: static; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .who { grid-template-columns: 1fr; gap: 40px; }
  .who__photo image-slot { height: 380px; }
  .office-grid { grid-template-columns: 1fr; }
  .h1, .hero h1 { font-size: 33px; }
  .h2 { font-size: 26px; }
}

@media (max-width: 600px) {
  :root { --pad: 24px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  body { font-size: 16px; }
  .hero__inner { padding-top: 84px; padding-bottom: 84px; }
  .hero h1 { font-size: 29px; }
  .hero__sub { font-size: 16.5px; }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
  .prev-cats { grid-template-columns: repeat(2, 1fr); }
  .prev-form { padding: 26px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .why-row { grid-template-columns: auto 1fr; gap: 18px; padding: 22px 4px; }
  .why-row__icon { display: none; }
  .why-row:hover { padding-left: 4px; }
  .products-grid { grid-template-columns: 1fr; }
  .who__stats { gap: 26px; }
  .who__stat .num { font-size: 28px; }
  .footer__main { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
  .partner-row { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .partner-logo { height: 64px; min-width: 130px; font-size: 16px; }
}

/* Hero partner logos strip */
.hero__partners {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.hero__partners-label {
  font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.5); white-space: nowrap; margin-right: 4px;
}
.hero__partners img {
  height: 36px; width: auto; max-width: 110px; object-fit: contain; display: block;
}
/* Unipol (1°) e Unipol Rental (4°): logo leggermente più piccolo, pillola invariata */
.hero__partners img[alt="Unipol"] { height: 25px; max-width: 92px; }
.hero__partners img[alt="Unipol Rental"] { height: 26px; max-width: 106px; }
.hero__partner-pill {
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  border-radius: 8px;
  width: 132px; height: 52px;
  box-shadow: 0 2px 10px rgba(0,18,52,.18);
}
.hero__partner-pill:hover { box-shadow: 0 4px 14px rgba(0,18,52,.26); }

/* Footer sedi with email */
.footer__sedi li { display: flex; flex-direction: column; gap: 3px; margin-bottom: 12px; }
.footer__sede-name { color: rgba(255,255,255,.9); }
.footer__sedi a { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; color: var(--cyan); transition: color .16s; }
.footer__sedi a svg { width: 12px; height: 12px; }
.footer__sedi a:hover { color: #fff; }
