/* =========================================================================
   Sciacca Assicurazioni – foglio di stile principale
   Palette: blu notte istituzionale + azzurro Unipol + arancio "terra di Sicilia"
   ========================================================================= */

:root {
  --navy: #0a2540;
  --navy-2: #12355c;
  --blue: #0b5cab;
  --blue-2: #1f7ae0;
  --sky: #eaf3fc;
  --sand: #f7f4ee;
  --accent: #e8792f;
  --accent-2: #cf6421;
  --ink: #17212b;
  --muted: #5a6876;
  --line: #e2e8ef;
  --white: #ffffff;
  --ok: #1d8a5a;
  --err: #c0392b;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(10, 37, 64, .06), 0 8px 24px rgba(10, 37, 64, .08);
  --shadow-lg: 0 20px 50px rgba(10, 37, 64, .18);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-title: Georgia, "Times New Roman", serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--white);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; color: var(--navy); margin: 0 0 .6em; }
h1 { font-family: var(--font-title); font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-family: var(--font-title); font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.icon { flex-shrink: 0; vertical-align: middle; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.35em; border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--navy); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(232, 121, 47, .35); }
.btn--accent:hover { background: var(--accent-2); color: #fff; }
.btn--light { background: #fff; color: var(--navy); border-color: rgba(255, 255, 255, .6); }
.btn--light:hover { background: var(--sky); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--ghost:hover, .btn--ghost.is-active { background: var(--blue); color: #fff; }
.btn--sm { padding: .55em 1em; font-size: .92rem; }
.btn--lg { padding: 1em 1.6em; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .4em; margin-bottom: .8em;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2);
}
.eyebrow--light { color: #ffb27a; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy); color: #c8d6e6; font-size: .85rem; }
.topbar__inner { display: flex; gap: 22px; align-items: center; min-height: 38px; }
.topbar__item { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.topbar__push { margin-left: auto; color: #fff; font-weight: 600; }
.topbar a:hover { color: #fff; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand__mark {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff;
  font: 700 1.6rem/1 var(--font-title); position: relative;
}
.brand__mark::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent); border: 3px solid #fff; }
.brand__logo { display: block; width: auto; height: 64px; }
.brand__sub--side { padding-left: 12px; border-left: 1px solid var(--line); line-height: 1.35; margin-top: 0; }
.brand--light .brand__sub--side { border-left-color: rgba(255,255,255,.25); }
@media (max-width: 480px) { .brand__logo { height: 52px; } .brand__sub--side { display: none; } }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-title); font-size: 1.3rem; }
.brand__name b { color: var(--blue); }
.brand__sub { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.brand--light, .brand--light .brand__name { color: #fff; }
.brand--light .brand__name b { color: #8fc1ff; }
.brand--light .brand__sub { color: #9fb3c8; }
.brand--light .brand__mark::after { border-color: var(--navy); }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li > a:not(.btn) {
  display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: .97rem; text-decoration: none;
}
.main-nav > ul > li > a:not(.btn):hover, .main-nav a.is-active:not(.btn) { color: var(--blue); background: var(--sky); }
.main-nav__cta { margin-left: 6px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; color: var(--navy); cursor: pointer; }

.has-sub { position: relative; }
.subnav {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-38%);
  display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 18px;
  width: min(940px, 92vw); padding: 24px; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s;
}
.has-sub:hover .subnav, .has-sub:focus-within .subnav { opacity: 1; visibility: visible; }
.subnav__col { display: flex; flex-direction: column; gap: 4px; }
.subnav__col a { color: var(--muted); text-decoration: none; font-size: .93rem; padding: 3px 0; }
.subnav__col a:hover { color: var(--blue); }
.subnav__title { display: flex; align-items: center; gap: 6px; color: var(--navy) !important; font-weight: 700; margin-bottom: 4px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(31, 122, 224, .55), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(232, 121, 47, .28), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #0d4a86 100%);
}
.hero::after {
  /* onde stilizzate del mare di Taormina */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 70px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0 40c160 30 320 30 480 10s320-40 480-20 320 40 480 20v20H0z' fill='%23ffffff'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; padding: 84px 20px 120px; }
.hero h1 { color: #fff; }
.hero h1 span { color: #ffb27a; display: block; }
.hero .lead { color: #d2deeb; max-width: 40em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 8px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 36px; list-style: none; padding: 0; margin: 36px 0 0; }
.hero__trust li { display: flex; flex-direction: column; }
.hero__trust strong { font: 700 2rem/1 var(--font-title); color: #fff; }
.hero__trust span { font-size: .88rem; color: #a9bdd2; margin-top: 4px; }

/* ---------- Slider in apertura (home) ---------- */
.hero--slider { background: var(--navy); }
.hero--slider::after { z-index: 1; }
.hero--slider .hero__inner { z-index: 2; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg::after {
  /* velatura per la leggibilità del testo sopra le foto */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10, 37, 64, .55) 0%, rgba(10, 37, 64, .30) 45%, rgba(10, 37, 64, 0) 75%);
}
.hero__bg-item { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero__bg-item.is-active { opacity: 1; }
.hero__bg-item img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; transform: scale(1.04); transition: transform 7s ease-out; }
.hero__bg-item.is-active img { transform: scale(1); }
/* sfondi di riserva quando manca la foto */
.hero__bg-item--1 { background: radial-gradient(1000px 500px at 85% -10%, rgba(31,122,224,.55), transparent 60%), radial-gradient(700px 400px at 0% 110%, rgba(232,121,47,.28), transparent 60%), linear-gradient(160deg, #0a2540 0%, #12355c 55%, #0d4a86 100%); }
.hero__bg-item--2 { background: radial-gradient(900px 500px at 90% 10%, rgba(232,121,47,.45), transparent 60%), linear-gradient(150deg, #0a2540 0%, #1a3f6b 60%, #2a5a8f 100%); }
.hero__bg-item--3 { background: radial-gradient(900px 500px at 80% 0%, rgba(80,170,140,.45), transparent 60%), linear-gradient(160deg, #0a2540 0%, #12405a 55%, #1b6273 100%); }
.hero__bg-item--4 { background: radial-gradient(900px 500px at 85% 0%, rgba(214,90,120,.40), transparent 60%), linear-gradient(160deg, #0a2540 0%, #2a2f5c 55%, #3d3f7a 100%); }
.hero__bg-item--5 { background: radial-gradient(900px 500px at 85% 0%, rgba(240,180,60,.40), transparent 60%), linear-gradient(160deg, #0a2540 0%, #1d3a55 55%, #5b4a2c 100%); }

.slides { display: grid; }
.slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease, visibility .6s; }
.slide.is-active { opacity: 1; visibility: visible; transform: none; }
.slide__title { color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); }
.slide__title span { color: #ffb27a; display: block; }
/* Testo dello slider senza fondo: leggibilità affidata all'ombra */
.hero--slider .slide { text-shadow: 0 2px 14px rgba(0, 0, 0, .65), 0 1px 3px rgba(0, 0, 0, .55); }
.hero--slider .slide .lead { color: #fff; }
.hero--slider .slide .eyebrow { color: #ffb27a; }
.hero--slider .hero__trust { text-shadow: 0 2px 10px rgba(0, 0, 0, .6); }
.hero--slider .hero__trust span { color: #e8eef5; }
.hero--slider .btn { text-shadow: none; }

.slider-nav { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; }
.slider-nav[hidden] { display: none; }
.slider-nav__btn {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.slider-nav__btn:hover { background: rgba(255,255,255,.2); border-color: #fff; }
.slider-nav__btn:focus-visible, .slider-nav__dot:focus-visible { outline: 3px solid #ffb27a; outline-offset: 2px; }
.slider-nav__pause { margin-left: 6px; }
.slider-nav__pause .i-play, .slider-nav__pause[aria-pressed="true"] .i-pause { display: none; }
.slider-nav__pause[aria-pressed="true"] .i-play { display: block; }
.slider-nav__dots { display: flex; align-items: center; gap: 8px; }
.slider-nav__dot {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.4); cursor: pointer;
  transition: width .3s ease, background .3s ease;
}
.slider-nav__dot[aria-current="true"] { width: 30px; background: var(--accent); }
/* area di tocco più ampia su mobile */
@media (pointer: coarse) { .slider-nav__dot { position: relative; } .slider-nav__dot::before { content: ""; position: absolute; inset: -12px -4px; } }
@media (max-width: 960px) {
  .hero__bg::after { background: linear-gradient(180deg, rgba(10, 37, 64, .45) 0%, rgba(10, 37, 64, .60) 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__bg-item img { transform: none !important; }
  .slide { transform: none; }
}

.quick-quote { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-lg); }
.quick-quote h2 { font-size: 1.5rem; margin-bottom: .3em; }
.quick-quote p { color: var(--muted); font-size: .95rem; }
.qq-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 20px; }
.qq-option input { position: absolute; opacity: 0; }
.qq-option span {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px;
  border: 2px solid var(--line); border-radius: var(--radius); font-weight: 600; font-size: .9rem; color: var(--navy);
  cursor: pointer; transition: border-color .15s, background .15s;
}
.qq-option span .icon { color: var(--blue); }
.qq-option input:checked + span { border-color: var(--blue); background: var(--sky); }
.qq-option input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.quick-quote__phone { margin: 14px 0 0; text-align: center; font-size: .9rem; }
.quick-quote__phone a { font-weight: 700; }

/* Preventivo veloce in fascia sotto lo slider */
.hero--slider .hero__inner { grid-template-columns: minmax(0, 640px); }
.qq-band { position: relative; z-index: 3; margin-top: -40px; padding: 0 0 20px; }
.quick-quote--band { display: grid; grid-template-columns: minmax(220px, .9fr) 2.4fr auto; gap: 8px 28px; align-items: center; }
.quick-quote--band h2, .quick-quote--band > p:not(.quick-quote__phone) { grid-column: 1; }
.quick-quote--band h2 { align-self: end; margin: 0; }
.quick-quote--band > p:not(.quick-quote__phone) { align-self: start; margin: 0; }
.quick-quote--band form { grid-column: 2 / 4; grid-row: 1 / 3; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.quick-quote--band .qq-options { grid-template-columns: repeat(6, 1fr); margin: 0; }
.quick-quote--band .btn--block { width: auto; white-space: nowrap; }
.quick-quote--band .quick-quote__phone { grid-column: 1 / -1; margin-top: 6px; }
@media (max-width: 1100px) {
  .quick-quote--band { grid-template-columns: 1fr; }
  .quick-quote--band h2, .quick-quote--band > p, .quick-quote--band form { grid-column: 1; grid-row: auto; }
  .quick-quote--band form { grid-template-columns: 1fr; }
  .quick-quote--band .btn--block { width: 100%; }
}
@media (max-width: 640px) {
  .qq-band { margin-top: -24px; }
  .quick-quote--band .qq-options { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--tint { background: var(--sand); }
.section--navy { background: linear-gradient(135deg, var(--navy), #0d4a86); color: #d2deeb; }
.section--navy h2 { color: #fff; }
.section__head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section__head p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.split--center { align-items: center; }
.split__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 22px; }
.cards--5 { grid-template-columns: repeat(5, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius-lg); background: #fff;
  border: 1px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #c9dbef; color: var(--ink); }
.card h3 { margin: 14px 0 6px; }
.card p { color: var(--muted); font-size: .95rem; }
.card__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--sky); color: var(--blue); }
.card:hover .card__icon { background: var(--blue); color: #fff; }
.card__list { list-style: none; padding: 0; margin: 0 0 16px; font-size: .88rem; color: var(--navy); }
.card__list li { padding: 3px 0; border-top: 1px dashed var(--line); }
.card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--blue); font-size: .93rem; }

.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.features li { display: flex; gap: 14px; padding: 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.features h3 { margin-bottom: .3em; }
.features p { margin: 0; color: var(--muted); font-size: .94rem; }
.features__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: #fff1e6; color: var(--accent-2); flex-shrink: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.steps li { position: relative; padding: 28px 24px; border-radius: var(--radius-lg); background: var(--sky); }
.steps li p { color: var(--muted); margin: 0; font-size: .95rem; }
.steps__n { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 1.1rem var(--font-title); margin-bottom: 14px; }

.team { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.team__item { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 16px; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.team__item strong { color: var(--navy); font-size: 1.08rem; }
.team__item span:last-child { color: var(--muted); font-size: .88rem; }
.team__photo {
  display: block; width: 100%; max-width: 200px; height: auto; aspect-ratio: 273 / 410; object-fit: cover; object-position: top;
  margin: 0 auto 14px; border-radius: var(--radius); background: linear-gradient(180deg, var(--sky) 0%, #dbe8f5 100%);
}
.avatar { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--navy)); color: #fff; font: 700 1.6rem var(--font-title); }

.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.offices--stack { grid-template-columns: 1fr; }
.office { padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
.office h2, .office h3 { display: flex; align-items: center; gap: 8px; font-family: var(--font); font-size: 1.12rem; }
.office h2 .icon, .office h3 .icon { color: var(--accent-2); }
.office p { color: var(--muted); display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.office--main { border: 2px solid var(--blue); background: var(--sky); }
.office--app { background: var(--sand); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 600; color: var(--navy);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; color: var(--blue); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-right: 30px; }
.faq-group { margin-top: 48px; font-size: 1.5rem; }
.faq-group:first-child { margin-top: 0; }
.tag { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: var(--sky); color: var(--blue); font-size: .72rem; font-weight: 700; vertical-align: middle; }

/* ---------- Page head (pagine interne) ---------- */
.page-head { background: linear-gradient(150deg, var(--navy), var(--navy-2) 60%, #0d4a86); color: #d2deeb; padding: 56px 0 64px; }
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head .lead { color: #c4d3e3; max-width: 46em; margin: 0; }
.page-head__split { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.page-head__badge { display: grid; place-items: center; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #ffb27a; border: 1px solid rgba(255, 255, 255, .15); }
.breadcrumb { font-size: .85rem; margin-bottom: 18px; color: #9fb3c8; }
.breadcrumb a { color: #c4d3e3; text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* ---------- Prodotti ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); color: var(--navy); text-decoration: none; font-weight: 600; font-size: .93rem; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.product-group + .product-group { margin-top: 56px; }
.product-group__title { display: flex; align-items: center; gap: 10px; font-size: 1.6rem; }
.product-group__title .icon { color: var(--accent-2); }

.ticks { list-style: none; padding: 0; margin: 0 0 16px; }
.ticks li { display: flex; gap: 8px; align-items: flex-start; padding: 4px 0; font-size: .93rem; }
.ticks .icon { color: var(--ok); margin-top: 3px; }
.ticks--lg li { font-size: 1rem; padding: 7px 0; }

.product-layout { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.product-main h2 { margin-top: 48px; font-size: 1.7rem; }
.intro { font-size: 1.2rem; color: var(--ink); border-left: 4px solid var(--accent); padding-left: 20px; }
.coverages { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.coverage { display: flex; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--sky); }
.coverage h3 { margin-bottom: .25em; font-size: 1.02rem; }
.coverage p { margin: 0; color: var(--muted); font-size: .93rem; }
.coverage__icon { color: var(--blue); flex-shrink: 0; }
.note { display: flex; gap: 10px; margin-top: 40px; padding: 16px 18px; border-radius: var(--radius); background: var(--sand); color: var(--muted); font-size: .88rem; }

.product-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 18px; }
.side-card { padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: #fff; }
.side-card h2 { font-family: var(--font); font-size: 1.1rem; }
.side-card--accent { background: var(--navy); border-color: var(--navy); color: #c8d6e6; }
.side-card--accent h2 { color: #fff; }
.side-card__phone { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0; color: #fff; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.side-card__phone:hover { color: #ffb27a; }
.links { list-style: none; padding: 0; margin: 0; }
.links a { display: flex; align-items: center; gap: 8px; padding: 8px 0; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.mini-steps { margin: 0; padding-left: 1.2em; color: var(--muted); }
.mini-steps li { padding: 4px 0; }

/* ---------- Chi siamo ---------- */
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #33414f; }
.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.values li { padding: 24px; border-radius: var(--radius-lg); background: var(--sky); }
.values p { margin: 0; color: var(--muted); font-size: .95rem; }
.values__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #fff; color: var(--blue); margin-bottom: 12px; }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 3px; background: linear-gradient(90deg, var(--blue), var(--accent)); }
.timeline li { position: relative; padding: 40px 24px 0 0; }
.timeline li::before { content: ""; position: absolute; top: 5px; left: 0; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--blue); }
.timeline strong { font: 700 1.5rem var(--font-title); color: var(--navy); }
.timeline p { color: var(--muted); }

/* ---------- Sinistri ---------- */
.alert-box { display: flex; gap: 16px; padding: 24px; border-radius: var(--radius-lg); background: #fff4ec; border: 2px solid #f6c9a8; margin-bottom: 40px; }
.alert-box .icon { color: var(--accent-2); }
.alert-box h2 { font-family: var(--font); font-size: 1.2rem; margin-bottom: .3em; }
.alert-box p { margin: 0; }
.guides { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 40px; }
.guide { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: var(--shadow); }
.guide h2 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; }
.guide h2 .icon { color: var(--blue); }
.guide ol { padding-left: 1.2em; color: #33414f; }
.guide li { padding: 4px 0; }
.docs { font-size: .9rem; color: var(--muted); background: var(--sand); padding: 12px 14px; border-radius: 10px; margin: 0; }

/* ---------- Tabelle ---------- */
.data-table { width: 100%; border-collapse: collapse; margin: 0 0 1.5em; font-size: .95rem; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { color: var(--navy); width: 32%; background: var(--sand); }

/* ---------- Form ---------- */
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.contact-layout--form-first { grid-template-columns: 1fr 340px; }
.form-card { padding: 36px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.form-card h2 { font-size: 1.6rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 18px; border: 0; padding: 0; min-width: 0; }
.form-grid .field { margin: 0; }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-weight: 600; font-size: .92rem; color: var(--navy); }
.field legend { margin-bottom: 10px; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date],
.field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid #cfd8e3; border-radius: 10px; background: #fbfcfe;
  font: inherit; font-size: 1rem; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input[type=file] { font-size: .9rem; padding: 10px; border: 1.5px dashed #cfd8e3; border-radius: 10px; background: #fff; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 92, 171, .15); background: #fff; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--err); }
.field-error { color: var(--err); font-size: .85rem; margin: 2px 0 0; }
.field--check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.field--check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); flex-shrink: 0; }
.form-note { font-size: .82rem; color: var(--muted); }
.form-alert { display: flex; gap: 10px; align-items: center; padding: 14px 16px; margin-bottom: 22px; border-radius: 10px; background: #fdecea; color: var(--err); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.upload-box { padding: 20px; border-radius: var(--radius); background: var(--sky); margin-bottom: 18px; }
.upload-box p { font-size: .92rem; color: var(--muted); }
.upload-box[hidden] { display: none; }

.product-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.product-picker__group { display: flex; flex-direction: column; gap: 6px; }
.product-picker__cat { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pick input { position: absolute; opacity: 0; }
.pick > span {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line);
  font-size: .93rem; font-weight: 600; color: var(--navy); cursor: pointer; transition: all .15s;
}
.pick > span .icon { color: var(--blue); }
.pick input:checked + span { border-color: var(--blue); background: var(--sky); box-shadow: inset 0 0 0 1px var(--blue); }
.pick input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.pick-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pick--card > span { flex-wrap: wrap; padding: 16px; }
.pick--card small { flex-basis: 100%; font-weight: 400; color: var(--muted); padding-left: 28px; }

.thanks { padding: 40px 0; }
.thanks__icon { display: inline-grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: #e3f5ec; color: var(--ok); margin-bottom: 18px; }

/* ---------- CTA band & footer ---------- */
.cta-band { background: var(--accent); color: #fff; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 48px 20px; }
.cta-band h2 { color: #fff; margin-bottom: .2em; }
.cta-band p { margin: 0; color: #fff4ec; max-width: 40em; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; flex-shrink: 0; }
.cta-band .btn--accent { background: var(--navy); box-shadow: none; }
.cta-band .btn--accent:hover { background: #061a2e; }

.site-footer { background: var(--navy); color: #a9bdd2; font-size: .93rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding: 64px 20px 40px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 5px 0; }
.site-footer a { color: #d2deeb; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__about p { margin-top: 18px; }
.site-footer__contacts li { display: flex; gap: 10px; align-items: flex-start; }
.site-footer__contacts .icon { margin-top: 4px; color: #ffb27a; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; }
.office .social a { background: var(--sky); color: var(--blue); }
.social a:hover { background: var(--accent); color: #fff; }
.site-footer__legal { border-top: 1px solid rgba(255, 255, 255, .1); padding: 28px 20px 36px; font-size: .82rem; color: #8aa0b8; }
.site-footer__legal p { margin-bottom: .8em; }
.arbitro { background: rgba(255, 255, 255, .05); padding: 12px 16px; border-radius: 10px; color: #c4d3e3; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 16px 0; }
.copy { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .cards--5 { grid-template-columns: repeat(3, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); }
  .main-nav > ul > li > a:not(.btn) { padding: 10px 8px; font-size: .93rem; }
}
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-header { backdrop-filter: none; background: #fff; }
  .main-nav {
    position: fixed; top: var(--nav-top, 114px); left: 0; right: 0; bottom: 0; background: #fff; padding: 20px; overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; margin: 0;
  }
  .main-nav.is-open { transform: none; visibility: visible; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav > ul > li > a:not(.btn) { padding: 14px 10px; font-size: 1.05rem; }
  .main-nav__cta { margin: 8px 0 0; }
  .main-nav__cta .btn { width: 100%; }
  .subnav { position: static; transform: none; opacity: 1; visibility: visible; width: auto; box-shadow: none; border: 0; padding: 0 10px 10px; grid-template-columns: 1fr 1fr; }
  .hero__inner, .split, .product-layout, .contact-layout, .contact-layout--form-first { grid-template-columns: 1fr; gap: 40px; }
  .product-side { position: static; }
  .cards--3, .offices { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .page-head__badge { display: none; }
  .page-head__split { grid-template-columns: 1fr; }
  .split__actions { justify-content: flex-start; }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .topbar__hide-sm { display: none; }
  .topbar__inner > .topbar__item:first-child { font-size: .78rem; }
  .hero__inner { padding: 48px 20px 100px; }
  .cards--5, .cards--3, .offices, .features, .steps, .coverages, .guides, .values, .form-grid, .pick-row { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .subnav { grid-template-columns: 1fr; }
  .form-card { padding: 22px; }
  .brand__name { font-size: 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

.topbar__item { white-space: nowrap; }
@media (max-width: 480px) {
  .topbar__inner > .topbar__item:first-child { display: none; }
  .topbar__push { margin-left: auto; margin-right: auto; }
}

/* ---------- Mappa delle sedi ---------- */
.office-map { height: 420px; margin-top: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); overflow: hidden; background: var(--sky); z-index: 0; }
.section--tight { padding-top: 0; }
.map-pin { background: none; border: 0; }
.map-pin span {
  display: block; width: 30px; height: 30px; margin: 2px auto 0; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--blue); border: 3px solid #fff; box-shadow: 0 3px 10px rgba(10, 37, 64, .35);
}
.map-pin--main span { background: var(--accent); }
.leaflet-popup-content { font: 14px/1.5 var(--font); color: var(--ink); }
.leaflet-popup-content strong { color: var(--navy); }
@media (max-width: 640px) { .office-map { height: 340px; } }

/* Avviso trasferimento sede */
.move-notice { padding: 28px 0 8px; }
.move-notice__card {
  display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 32px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-left: 6px solid #c8102e;
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-lg);
}
.move-notice__img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
.move-notice__body h2 { margin: 4px 0 6px; color: var(--navy); }
.move-notice__lead { font-size: 1.1rem; margin: 0 0 18px; }
.move-notice__route { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.move-notice__from, .move-notice__to { display: flex; flex-direction: column; padding: 10px 18px; border-radius: 999px; line-height: 1.25; }
.move-notice__from { background: #eef1f5; color: var(--ink); }
.move-notice__from strong { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.35); }
.move-notice__to { background: var(--navy); color: #fff; }
.move-notice__route span:not(.move-notice__arrow) { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; opacity: .75; }
.move-notice__arrow { color: #c8102e; display: inline-flex; }
@media (max-width: 760px) {
  .move-notice__card { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .move-notice__img { max-width: 320px; margin: 0 auto; }
  .move-notice__route { flex-direction: column; align-items: flex-start; gap: 6px; }
  .move-notice__arrow { transform: rotate(90deg); margin-left: 22px; }
}
.site-footer__legal .credits { display: inline-block; margin-left: 12px; }
.site-footer__legal .credits a { color: #c9d6e4; text-decoration: underline; }
.site-footer__legal .credits a:hover { color: #fff; }
.site-footer__legal .voice-note { font-size: .78rem; color: #8aa0b8; }
.site-footer__legal .voice-note a { color: #c9d6e4; }

/* Assistente virtuale YouVAAI */
.voice-promo__card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.voice-promo__card img { display: block; width: 100%; height: auto; }
.voice-promo__card figcaption { padding: 24px 28px 28px; display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: center; }
.voice-promo__card h2 { grid-column: 1 / -1; margin: 0; color: var(--navy); }
.voice-promo__card p { margin: 0; }
@media (max-width: 760px) {
  .voice-promo__card figcaption { grid-template-columns: 1fr; padding: 18px; }
  .voice-promo__card .btn { justify-self: start; }
}

/* Slider: foto in un riquadro accanto al testo (il testo non copre mai i volti) */
.hero--slider { background:
    radial-gradient(1000px 500px at 85% -10%, rgba(31, 122, 224, .55), transparent 60%),
    radial-gradient(700px 400px at 0% 110%, rgba(232, 121, 47, .28), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 55%, #0d4a86 100%); }
.hero--slider .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; padding: 64px 20px 110px; }
.hero--slider .hero__bg {
  position: relative; inset: auto; z-index: 0; aspect-ratio: 1007 / 500; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.hero--slider .hero__bg::after { display: none; }
.hero--slider .slide, .hero--slider .hero__trust { text-shadow: none; }
.hero--slider .slide__title { font-size: clamp(2rem, 3.4vw, 3rem); }
@media (max-width: 960px) {
  .hero--slider .hero__inner { grid-template-columns: 1fr; gap: 28px; padding: 24px 20px 100px; }
  .hero--slider .hero__bg { order: -1; box-shadow: 0 12px 30px rgba(0, 0, 0, .3); }
}

/* Banner consenso cookie */
.cookie-consent {
  position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin-left: auto;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(10, 37, 64, .28); padding: 20px 22px; font-size: .92rem;
}
.cookie-consent[hidden] { display: none; }
.cookie-consent__title { font-weight: 700; color: var(--navy); font-size: 1.05rem; margin: 0 0 6px; }
.cookie-consent p { margin: 0 0 14px; }
.cookie-consent__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.cookie-consent__actions .btn { min-width: 130px; justify-content: center; }
@media (max-width: 480px) { .cookie-consent__actions .btn { flex: 1; } }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.link-button:hover { text-decoration: underline; }
.site-footer .link-button { color: #d2deeb; } .site-footer .link-button:hover { color: #fff; }

/* =========================================================================
   Slider home a tutta larghezza (28/11/2026)
   Foto grandi come sfondo; il testo sta a sinistra o in basso, nella zona
   della foto senza volti (vedi Slide.layout / Slide.focus).
   Su mobile la foto resta a tutta larghezza e il testo va sotto.
   ========================================================================= */
.hs { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hs__track { display: grid; height: clamp(500px, 46vw, 86vh); }
.hs__slide { grid-area: 1 / 1; position: relative; transform: none; text-shadow: none; }
.hs__slide.is-active { z-index: 1; }
.hs__media { position: absolute; inset: 0; opacity: 1; background: var(--navy-2); }
.hs__media img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; transform: scale(1.03); transition: transform 7s ease-out; }
.hs__slide.is-active .hs__media img { transform: scale(1); }
.hs__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.hs__slide--left .hs__media::after {
  background: linear-gradient(90deg, rgba(10, 37, 64, .92) 0%, rgba(10, 37, 64, .78) 26%, rgba(10, 37, 64, .25) 42%, rgba(10, 37, 64, 0) 50%),
              linear-gradient(0deg, rgba(10, 37, 64, .75) 0%, rgba(10, 37, 64, 0) 26%);
}
.hs__slide--bottom .hs__media::after {
  background: linear-gradient(0deg, rgba(10, 37, 64, .95) 0%, rgba(10, 37, 64, .82) 30%, rgba(10, 37, 64, .35) 46%, rgba(10, 37, 64, 0) 56%);
}
.hs__body { position: relative; z-index: 2; height: 100%; display: flex; }
.hs__body > .container { display: flex; width: 100%; }
.hs__slide--left .hs__body > .container { align-items: center; padding-bottom: 70px; }
.hs__slide--bottom .hs__body > .container { align-items: flex-end; padding-bottom: 92px; }
.hs__panel { max-width: min(460px, 38vw); }
.hs__slide--bottom .hs__panel { max-width: 900px; }
.hs .slide__title { color: #fff; font-size: clamp(1.9rem, 3vw, 2.9rem); margin-bottom: .4em; }
.hs .slide__title span { color: #ffb27a; display: block; }
.hs__slide--bottom .slide__title span { display: inline; }
.hs .lead { color: #e6edf5; font-size: 1.08rem; margin-bottom: 0; }
.hs__slide--bottom .lead { max-width: 42em; }
.hs .eyebrow { color: #ffb27a; margin-bottom: .6em; }
.hs .hero__actions { margin: 22px 0 0; }
.hs__slide--bottom .hero__actions { margin-top: 16px; }
.hs__controls { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 0 0 22px; pointer-events: none; }
.hs__controls-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.hs__controls .slider-nav, .hs__controls .hero__trust { pointer-events: auto; margin: 0; }
.hs .hero__trust { gap: 28px; }
.hs .hero__trust strong { font-size: 1.5rem; }
.hs .hero__trust span { color: #dbe5ef; font-size: .8rem; }
.hs + .qq-band { margin-top: 0; padding-top: 28px; }

@media (max-width: 1100px) {
  .hs .hero__trust { display: none; }
}
/* Schermi medi: la foto è più bassa, il testo in basso si accorcia per restare sotto i volti */
@media (min-width: 961px) and (max-width: 1279px) {
  .hs__slide--bottom .lead { display: none; }
  .hs__slide--bottom .slide__title { font-size: 1.8rem; }
  .hs__slide--bottom .hs__body > .container { padding-bottom: 80px; }
}
@media (max-width: 960px) {
  .hs__track { height: auto; }
  .hs__media { position: relative; inset: auto; aspect-ratio: 1007 / 500; }
  .hs__media::after { display: none; }
  .hs__body { height: auto; background: var(--navy); }
  .hs__slide--left .hs__body > .container, .hs__slide--bottom .hs__body > .container { padding: 24px 20px 84px; align-items: flex-start; }
  .hs__panel, .hs__slide--bottom .hs__panel { max-width: none; }
  .hs__slide--bottom .slide__title span { display: block; }
  .hs .slide__title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .hs .lead { font-size: 1rem; }
}
@media (max-width: 640px) {
  .hs .hero__actions .btn--lg { padding: .85em 1.2em; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hs__media img { transform: none !important; }
}
