/* Ferro e Gambardella - preventivatore polizza barca */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Palette */
  --blue: #10499E;          /* primario Reale Mutua */
  --blue-strong: #0C3B82;
  --navy: #0A2148;          /* blu notte: testo e fondi scuri */
  --navy-2: #0F2D5E;
  --gold: #FEBE10;          /* accento, solo come fondo */
  --gold-strong: #F0AE00;
  --sky: #EEF3FB;           /* superfici e selezioni */
  --sky-2: #DCE6F6;

  /* Ruoli */
  --bg: #FFFFFF;
  --bg-alt: #F4F7FB;
  --surface: #FFFFFF;
  --text: #0A2148;
  --text-2: #46546B;
  --line: #D4DCE8;
  --line-strong: #A9B6CA;
  --link: #10499E;
  --select-bg: #EEF3FB;
  --select-line: #10499E;
  --focus: #10499E;
  --err: #B42318;
  --err-bg: #FEF3F2;
  --note-bg: #FFF7E0;
  --note-line: #F0C24B;
  --note-text: #5A4100;
  --ok: #0E7A4B;
  --shadow: 0 1px 2px rgba(10, 33, 72, .06), 0 12px 32px -12px rgba(10, 33, 72, .22);

  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --wrap: 1160px;
  --gutter: 16px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #071631;
    --bg-alt: #0B1D3D;
    --surface: #0F2447;
    --text: #E9EFF9;
    --text-2: #AEBBD2;
    --line: #26406B;
    --line-strong: #46608C;
    --link: #9CC0FF;
    --select-bg: #16305C;
    --select-line: #9CC0FF;
    --focus: #FEBE10;
    --err: #FF9B8F;
    --err-bg: #3A1520;
    --note-bg: #2E2610;
    --note-line: #7A6420;
    --note-text: #F6E3A6;
    --ok: #5FD39E;
    --sky: #16305C;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0 0 .75em; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
img, svg { display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 32px; } }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: var(--r-sm); z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }

/* Testata */
.top { position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff; border-bottom: 1px solid rgba(255,255,255,.08); }
.top__in { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; line-height: 1.2; margin-right: auto; }
.brand__logo { display: block; height: 32px; width: auto; }
.brand__name { font-weight: 700; font-size: 17px; letter-spacing: -0.015em; }
.brand__sub { font-size: 11.5px; color: #B9C8E2; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.25); }
@media (max-width: 420px) { .brand__sub { display: none; } }
.top__nav { display: none; gap: 24px; }
.top__nav a { color: #DCE6F6; text-decoration: none; font-size: 15px; font-weight: 500; }
.top__nav a:hover { color: #fff; text-decoration: underline; }
.top__tel { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font-variant-numeric: tabular-nums; }
.top__tel:hover { border-color: #fff; }
@media (max-width: 400px) { .top__tel span { display: none; } .top__tel { padding: 9px; } }
@media (min-width: 900px) { .top__nav { display: flex; } .brand__logo { height: 38px; } }
.top :focus-visible { outline-color: var(--gold); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 28px 0 104px; }
@media (max-width: 899px) { .hero__lede { font-size: 16px; margin-top: 14px; } .hero__kicker { font-size: 13px; margin-bottom: 10px; } .hero__in { gap: 24px; } .picker { padding: 18px 16px; } .picker__title { font-size: 18px; margin-bottom: 12px; } }
.hero__chart { position: absolute; inset: 0; width: 100%; height: 100%; color: #2C5AA8; opacity: .55; pointer-events: none; }
.hero__in { position: relative; display: grid; gap: 28px; }
.hero__kicker { font-size: 14px; color: #B9C8E2; margin-bottom: 14px; font-weight: 500; }
.hero h1 { font-size: clamp(34px, 9.4vw, 60px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.03; max-width: 13ch; text-wrap: balance; }
.hero__lede { font-size: 17px; color: #D3DEF0; margin: 18px 0 0; max-width: 46ch; }
.hero__facts { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14.5px; color: #fff; font-weight: 500; }
.hero__facts li { display: flex; align-items: center; gap: 8px; }
.hero__facts li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }

.picker { background: #fff; color: var(--navy); border-radius: var(--r-lg); padding: 20px; box-shadow: 0 24px 60px -24px rgba(0,0,0,.55); }
.picker__title { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.picker__opts { display: grid; gap: 10px; }
.pick { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; text-align: left; background: #F4F7FB; border: 1.5px solid #D4DCE8; border-radius: var(--r-md); padding: 10px 14px; cursor: pointer; color: #0A2148; min-height: 60px; transition: border-color .15s, background .15s; }
.pick svg { grid-row: 1 / 3; width: 56px; height: 28px; color: #10499E; }
.pick__t { font-weight: 650; font-size: 16px; }
.pick__s { font-size: 13.5px; color: #46546B; }
.pick:hover { border-color: #10499E; background: #EEF3FB; }
.pick:focus-visible { outline-color: #10499E; }
.picker__note { margin: 14px 0 0; font-size: 14px; color: #46546B; }

@media (min-width: 900px) {
  .hero { padding: 72px 0 148px; }
  .hero__in { grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
  .hero__lede { font-size: 19px; }
  .picker { padding: 28px; }
}

/* Preventivatore */
.quote { position: relative; margin-top: -80px; padding-bottom: 16px; }
@media (min-width: 900px) { .quote { margin-top: -104px; } }
.preview { background: var(--note-bg); color: var(--note-text); border: 1px solid var(--note-line); border-radius: var(--r-md); padding: 12px 16px; margin: 0 auto 12px; max-width: 760px; font-size: 14.5px; position: relative; z-index: 2; }

.qcard { position: relative; background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow); border: 1px solid var(--line); max-width: 760px; margin: 0 auto; padding: 20px 18px 24px; transition: max-width .25s ease; }
.qcard.is-wide { max-width: 1160px; }
@media (min-width: 720px) { .qcard { padding: 28px 36px 36px; } }

.qcard__head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.qcard__title { font-size: 22px; font-weight: 700; }
@media (min-width: 720px) { .qcard__head { flex-direction: row; align-items: center; justify-content: space-between; } }

.progress { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: p; min-width: 0; }
@media (min-width: 720px) { .progress { width: 420px; } }
.progress li { counter-increment: p; font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.progress li::before { content: ""; display: block; height: 4px; border-radius: 4px; background: var(--line); margin-bottom: 6px; }
.progress li span::before { content: counter(p) " "; font-variant-numeric: tabular-nums; }
.progress li.is-done::before { background: var(--blue); }
.progress li[aria-current="step"]::before { background: var(--gold); }
.progress li[aria-current="step"] { color: var(--text); font-weight: 650; }
@media (prefers-color-scheme: dark) { .progress li.is-done::before { background: var(--link); } }

.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step__legend { display: block; font-size: 19px; font-weight: 700; margin-bottom: 18px; padding: 0; outline: none; }
.step__legend:focus-visible { outline: 3px solid var(--focus); }

.field { margin-bottom: 20px; min-width: 0; }
.label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.opt { font-weight: 400; color: var(--text-2); font-size: 13.5px; }
.hint { font-size: 14px; color: var(--text-2); margin: 8px 0 0; }
.err { font-size: 14px; color: var(--err); margin: 6px 0 0; font-weight: 500; }
.err--block { background: var(--err-bg); border-radius: var(--r-sm); padding: 10px 14px; margin-top: 14px; }

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input:not([type]), textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); font-size: 17px; line-height: 1.3; transition: border-color .15s;
}
textarea { min-height: 96px; resize: vertical; }
select { width: 100%; min-height: 50px; padding: 12px 40px 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); background: var(--surface); font-size: 17px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
select:focus-visible { outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent); outline-offset: 0; border-color: var(--focus); }
.group { border: 0; border-top: 1px solid var(--line); margin: 8px 0 12px; padding: 20px 0 0; min-width: 0; }
.group__t { font-size: 17px; font-weight: 700; padding: 0; float: left; width: 100%; }
.group__h { clear: both; margin: 4px 0 16px; padding-top: 4px; }
input:hover, textarea:hover { border-color: var(--text-2); }
input:focus-visible, textarea:focus-visible { outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent); outline-offset: 0; border-color: var(--focus); border-radius: var(--r-sm); }
input[aria-invalid="true"] { border-color: var(--err); }
::placeholder { color: var(--text-2); opacity: .7; }

.affix { position: relative; }
.affix input { padding-right: 64px; font-variant-numeric: tabular-nums; }
.affix__s { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--text-2); font-weight: 500; pointer-events: none; }

.row2 { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .row2 { grid-template-columns: 1fr 1fr; } }

/* Scelte segmentate */
.seg { display: grid; gap: 8px; }
.seg--2 { grid-template-columns: 1fr 1fr; }
.seg--3 { grid-template-columns: 1fr; }
@media (min-width: 520px) { .seg--3 { grid-template-columns: repeat(3, 1fr); } }
.seg__o { position: relative; display: block; }
.seg__o input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__o span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 50px; padding: 10px 12px; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); font-weight: 550; font-size: 15.5px; line-height: 1.2; background: var(--surface); transition: border-color .15s, background .15s; }
@media (max-width: 519px) { .seg--3 .seg__o span { justify-content: flex-start; padding-left: 44px; } .seg--3 .seg__o span::before { content: ""; position: absolute; left: 16px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-strong); } .seg--3 .seg__o input:checked + span::before { border: 5px solid var(--select-line); } }
.seg__o:hover span { border-color: var(--text-2); }
.seg__o input:checked + span { border-color: var(--select-line); background: var(--select-bg); box-shadow: inset 0 0 0 1px var(--select-line); }
.seg__o input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

/* Personalizza */
.custom { border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); margin: 4px 0 8px; }
.custom[open] { border-style: solid; border-color: var(--line); }
.custom summary { list-style: none; cursor: pointer; padding: 14px 44px 14px 16px; position: relative; display: flex; flex-direction: column; gap: 2px; border-radius: var(--r-md); }
.custom summary::-webkit-details-marker { display: none; }
.custom summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.custom[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.custom__t { font-weight: 650; }
.custom__s { font-size: 14px; color: var(--text-2); }
.custom__body { padding: 0 16px 16px; }
.checks { display: grid; gap: 2px; margin-top: 12px; }
@media (min-width: 720px) { .checks { grid-template-columns: 1fr 1fr; gap: 4px 20px; } }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 10px 0; cursor: pointer; font-size: 15px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); cursor: pointer; }
.check b { display: block; font-weight: 600; }
.check small { display: block; color: var(--text-2); font-size: 13.5px; line-height: 1.45; margin-top: 2px; }
@media (prefers-color-scheme: dark) { .check input { accent-color: var(--link); } }

/* Bottoni */
.actions { display: flex; gap: 10px; margin-top: 24px; }
.actions .btn--primary { flex: 1 1 auto; }
.actions .btn--ghost { flex: 0 0 auto; padding: 0 18px; }
@media (min-width: 600px) { .actions { justify-content: flex-end; } .actions .btn--primary { flex: 0 0 auto; min-width: 220px; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 650; font-size: 16.5px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--gold); color: var(--navy); }
.btn--primary:hover { background: var(--gold-strong); }
.btn--primary:focus-visible { outline-color: var(--focus); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--text); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-strong); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn .spin { width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Risultato */
.res__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 6px; }
.res__title { font-size: 21px; font-weight: 700; outline: none; }
.res__edit { background: none; border: 0; padding: 4px 0; color: var(--link); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; font-size: 15px; }
.res__recap { font-size: 14.5px; color: var(--text-2); margin-bottom: 16px; }
.notes { list-style: none; padding: 12px 16px; margin: 0 0 18px; background: var(--note-bg); border: 1px solid var(--note-line); color: var(--note-text); border-radius: var(--r-md); font-size: 14.5px; }
.notes li + li { margin-top: 6px; }

.plans { display: grid; gap: 14px; }
@media (min-width: 900px) { .plans { grid-template-columns: 1.08fr 1fr 1fr; align-items: stretch; gap: 18px; } }
.plan { position: relative; display: flex; flex-direction: column; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 20px 18px 18px; background: var(--surface); }
.plan--top { border: 2px solid var(--blue); background: linear-gradient(var(--sky), var(--sky)) top / 100% 0 no-repeat, var(--surface); }
@media (prefers-color-scheme: dark) { .plan--top { border-color: var(--link); } }
.plan__badge { position: absolute; top: -12px; left: 16px; background: var(--gold); color: var(--navy); font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; }
.plan__name { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; }
.plan__tag { font-size: 14.5px; color: var(--text-2); margin: 4px 0 14px; min-height: 2.9em; }
.price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price__v { font-size: 40px; font-weight: 750; letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan--top .price__v { font-size: 46px; }
.price__u { font-size: 14px; color: var(--text-2); font-weight: 500; }
.price__was { font-size: 14px; color: var(--text-2); margin-top: 6px; }
.price__was s { font-variant-numeric: tabular-nums; }
.plan__meta { font-size: 13.5px; color: var(--text-2); margin-top: 4px; }
.plan ul.cov { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: 14.5px; border-top: 1px solid var(--line); padding-top: 14px; }
.cov li { position: relative; padding-left: 24px; }
.cov li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.cov li.no::before { width: 10px; height: 2px; border: 0; background: var(--text-2); transform: none; top: .7em; }
.cov li.no { color: var(--text-2); }
.plan__fac { font-size: 13.5px; margin-top: 12px; color: var(--text-2); }
.plan__fac strong { color: var(--text); font-weight: 600; }
.plan__cta { margin-top: auto; padding-top: 18px; display: grid; gap: 10px; }
.plan__cta .btn { width: 100%; }
.plan .btn--ghost { border-color: var(--blue); color: var(--link); }
@media (prefers-color-scheme: dark) { .plan .btn--ghost { border-color: var(--link); } }
.plan details { font-size: 13.5px; color: var(--text-2); }
.plan details summary { cursor: pointer; color: var(--link); font-weight: 550; }
.plan details dl { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; margin: 8px 0 0; font-variant-numeric: tabular-nums; }
.plan details dd { margin: 0; text-align: right; }

.assist { margin: 6px 0 0; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.assist legend { font-weight: 700; font-size: 16px; padding: 0 6px; margin-left: -6px; }
.assist__p { font-size: 14px; color: var(--text-2); margin: 0 0 10px; }
.assist__opts { display: grid; gap: 8px; }
@media (min-width: 720px) { .assist__opts { grid-template-columns: .6fr 1fr 1fr; } }
.ao { position: relative; display: block; cursor: pointer; }
.ao input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ao > span { display: block; height: 100%; border: 1.5px solid var(--line-strong); border-radius: var(--r-sm); padding: 12px 14px; font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.ao em { font-style: normal; }
.ao b { display: flex; justify-content: space-between; gap: 8px; color: var(--text); font-size: 15.5px; margin-bottom: 2px; font-variant-numeric: tabular-nums; }
.ao input:checked + span { border-color: var(--select-line); background: var(--select-bg); box-shadow: inset 0 0 0 1px var(--select-line); }
.ao input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }

.disclaimer { font-size: 14px; color: var(--text-2); margin: 16px 0 0; padding-left: 12px; border-left: 3px solid var(--gold); }

.eval { border: 2px solid var(--blue); border-radius: var(--r-md); padding: 20px; background: var(--sky); }
@media (prefers-color-scheme: dark) { .eval { border-color: var(--link); } }
.eval h4 { margin: 0 0 8px; font-size: 18px; }
.eval ul { margin: 10px 0 14px; padding-left: 20px; }
.eval li + li { margin-top: 4px; }

/* Richiesta */
.rsum { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; margin-bottom: 12px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; align-items: baseline; }
.rsum__l { font-weight: 600; }
.rsum__v { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.rsum__n { flex-basis: 100%; font-size: 13.5px; color: var(--text-2); }
.r-intro { margin: 16px 0 22px; }
.assist-hint { font-size: 14.5px; color: var(--text-2); margin: 18px 0 0; }
.plan__fac { margin-bottom: 0; }
.rform .check { padding: 8px 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Conferma */
.done { text-align: left; }
.done__mark { width: 52px; height: 52px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin-bottom: 16px; }
@media (prefers-color-scheme: dark) { .done__mark { color: #062417; } }
.done__code { font-size: 17px; margin-bottom: 4px; }
.done__code strong { font-variant-numeric: tabular-nums; white-space: nowrap; background: var(--sky); padding: 2px 8px; border-radius: 6px; }
.done #restart { margin-top: 12px; }
.next { margin: 18px 0; padding-left: 22px; display: grid; gap: 8px; }

/* Sezioni */
.sec { padding: 64px 0; }
.sec--alt { background: var(--bg-alt); }
.sec__title { font-size: clamp(26px, 6vw, 36px); font-weight: 750; letter-spacing: -0.03em; margin-bottom: 28px; }
@media (min-width: 900px) { .sec { padding: 96px 0; } }

.how { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: h; }
@media (min-width: 900px) { .how { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.how li { counter-increment: h; border-top: 2px solid var(--text); padding-top: 18px; }
.how li::before { content: counter(h); display: block; font-size: 15px; font-weight: 700; color: var(--navy); background: var(--gold); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; }
.how h3 { font-size: 20px; margin-bottom: 8px; }
.how p { color: var(--text-2); max-width: 40ch; }

.why { display: grid; gap: 0 64px; }
.why__lede { font-size: 18px; max-width: 52ch; margin-bottom: 32px; }
@media (min-width: 900px) { .why { grid-template-columns: .9fr 1.1fr; grid-template-rows: auto 1fr; align-items: start; } .why .sec__title { grid-column: 1; } .why__lede { grid-column: 1; } .facts { grid-column: 2; grid-row: 1 / 3; } }

.facts { margin: 0; display: grid; gap: 0; }
@media (min-width: 600px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts div { padding: 18px 0; border-top: 1px solid var(--line-strong); }
@media (min-width: 600px) { .facts div { padding: 20px 20px 24px 0; } }
.facts dt { font-size: 21px; font-weight: 750; letter-spacing: -0.02em; margin-bottom: 4px; color: var(--link); }
.facts dd { margin: 0; color: var(--text-2); font-size: 15px; }

.faq { display: grid; gap: 0 64px; }
@media (min-width: 900px) { .faq { grid-template-columns: .55fr 1.45fr; } }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }
.faq__list summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; font-weight: 600; font-size: 17px; position: relative; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 2px; background: var(--text); }
.faq__list summary::before { content: ""; position: absolute; right: 14px; top: calc(50% - 6px); width: 2px; height: 14px; background: var(--text); transition: transform .2s; }
.faq__list details[open] summary::before { transform: scaleY(0); }
.faq__list details > :not(summary) { color: var(--text-2); max-width: 68ch; }
.faq__list details > p:last-child, .faq__list details > ul:last-child { margin-bottom: 20px; }
.faq__list ul { padding-left: 20px; }
.faq__list li + li { margin-top: 6px; }
.faq__list strong { color: var(--text); }

.docs { display: grid; gap: 20px 64px; }
.docs p { color: var(--text-2); max-width: 60ch; }
.docs__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-self: start; }
.docs__list li { display: flex; flex-direction: column; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); border-left: 4px solid var(--blue); }
.docs__list span { font-size: 14px; color: var(--text-2); }
.docs__more { margin-top: 12px; }
@media (min-width: 900px) { .docs { grid-template-columns: 1fr 1fr; } }

.contact { background: var(--navy); color: #fff; }
.contact .sec__title { color: #fff; }
.contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 600px) { .contact__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .contact__list { grid-template-columns: repeat(4, 1fr); } }
.contact__list a { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--r-md); color: #fff; text-decoration: none; transition: border-color .15s, background .15s; }
.contact__list a:hover { border-color: var(--gold); background: rgba(255,255,255,.04); }
.contact__list a:focus-visible { outline-color: var(--gold); }
.contact__k { font-size: 14px; color: #B9C8E2; }
.contact__v { font-size: 18px; font-weight: 650; font-variant-numeric: tabular-nums; }
.contact__addr { margin: 20px 0 0; color: #B9C8E2; font-size: 15px; }

.foot { background: #061430; color: #B9C8E2; padding: 40px 0 48px; font-size: 13.5px; line-height: 1.6; }
.foot a { color: #DCE6F6; }
.foot a:focus-visible { outline-color: var(--gold); }
.foot__in { display: grid; gap: 8px 48px; }
@media (min-width: 900px) { .foot__in { grid-template-columns: 1fr 1fr; } }
.foot__name { color: #fff; font-weight: 700; font-size: 15px; margin-bottom: 6px; }

/* Pagina privacy */
.doc { padding: 48px 0 80px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 7vw, 42px); font-weight: 750; letter-spacing: -0.03em; margin-bottom: 8px; }
.doc h2 { font-size: 20px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--text-2); }
.doc ul { padding-left: 20px; }
.doc .back { display: inline-block; margin-bottom: 24px; font-weight: 600; }

/* =========================================================
   Pagina della polizza (index) e intestazione del preventivo
   ========================================================= */
.top__cta { display: none; min-height: 40px; padding: 0 16px; font-size: 15px; }
@media (min-width: 900px) { .top__cta { display: inline-flex; } }
.top__nav { display: none; }
@media (min-width: 1080px) { .top__nav { display: flex; } }
.top__nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 6px; }

.btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn--light:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn--light:focus-visible, .btn--primary.on-dark:focus-visible { outline-color: var(--gold); }

/* Hero fotografico */
.ph { position: relative; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.ph__img { display: block; width: 100%; height: 270px; object-fit: cover; object-position: 20% 45%; }
.ph::before { content: ""; position: absolute; left: 0; right: 0; top: 150px; height: 121px; z-index: 1; background: linear-gradient(180deg, rgba(10,33,72,0) 0%, rgba(10,33,72,.65) 60%, #0A2148 100%); pointer-events: none; }
.ph__in { position: relative; z-index: 2; padding-top: 4px; padding-bottom: 40px; }
.ph__kicker { font-size: 14px; color: #C9D6EC; margin-bottom: 10px; font-weight: 500; }
.ph h1 { font-size: clamp(34px, 9.4vw, 66px); font-weight: 760; letter-spacing: -0.035em; line-height: 1.02; max-width: 14ch; text-wrap: balance; }
.ph__lede { font-size: 17px; color: #DCE6F6; margin: 16px 0 0; max-width: 48ch; }
.ph__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ph__ctas .btn { flex: 1 1 auto; }
.ph__note { font-size: 14px; color: #C9D6EC; margin: 14px 0 0; }
@media (min-width: 600px) { .ph__ctas .btn { flex: 0 0 auto; } .ph__img { height: 360px; } .ph::before { top: 240px; } }
@media (min-width: 1200px) {
  .ph { min-height: min(84vh, 760px); display: flex; align-items: flex-end; }
  .ph__img { position: absolute; top: 0; bottom: 0; left: -18%; width: 118%; height: 100%; object-position: 50% 60%; z-index: 0; }
  .ph::before { inset: 0; top: 0; height: auto; background:
      linear-gradient(90deg, rgba(10,33,72,0) 30%, rgba(10,33,72,.72) 46%, rgba(10,33,72,.9) 58%, rgba(10,33,72,.94) 100%),
      linear-gradient(0deg, rgba(10,33,72,.6) 0%, rgba(10,33,72,0) 40%); }
  .ph__in { padding-top: 120px; padding-bottom: 80px; display: flex; justify-content: flex-end; }
  .ph__copy { width: 540px; }
  .ph__lede { font-size: 19px; }
}
@media (min-width: 900px) and (max-width: 1199px) { .ph__img { height: 440px; } .ph::before { top: 300px; height: 141px; } .ph__lede { font-size: 19px; } }
@media (min-width: 1280px) { .ph__copy { width: 560px; } }

/* Fascia di fatti sotto l'hero */
.proof { background: var(--navy-2); color: #fff; }
.proof ul { list-style: none; margin: 0 auto; padding-top: 18px; padding-bottom: 18px; display: grid; gap: 10px; }
.proof li { display: flex; gap: 12px; align-items: baseline; font-size: 15px; color: #DCE6F6; }
.proof li strong { color: #fff; font-weight: 650; }
.proof li::before { content: ""; flex: 0 0 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg) translateY(-2px); }
@media (min-width: 900px) { .proof ul { grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 22px; padding-bottom: 22px; } }

/* Testata delle sezioni */
.sec__lede { font-size: 18px; color: var(--text-2); max-width: 60ch; margin: -12px 0 32px; }
.sec__ref { font-size: 13.5px; color: var(--text-2); margin-top: 18px; }

/* Confronto Top / Medium / Basic */
.cmp-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp thead th { background: var(--bg-alt); text-align: center; vertical-align: bottom; padding-top: 18px; }
.cmp thead th:first-child { text-align: left; }
.cmp__f { display: block; font-size: 18px; font-weight: 750; letter-spacing: -0.02em; }
.cmp__d { display: none; font-size: 13.5px; font-weight: 400; color: var(--text-2); margin-top: 4px; }
.cmp thead .is-top { background: var(--sky); box-shadow: inset 0 3px 0 var(--gold); }
.cmp tbody th { text-align: left; font-weight: 500; padding-left: 16px; }
.cmp tbody th small { display: block; color: var(--text-2); font-size: 13.5px; font-weight: 400; margin-top: 2px; }
.cmp td { text-align: center; width: 64px; }
.cmp td.is-top { background: color-mix(in srgb, var(--sky) 55%, transparent); }
.cmp-yes, .cmp-no { display: inline-block; width: 22px; height: 22px; border-radius: 50%; position: relative; }
.cmp-yes { background: var(--blue); }
.cmp-yes::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.cmp-no::after { content: ""; position: absolute; left: 5px; right: 5px; top: 10px; height: 2px; background: var(--line-strong); border-radius: 2px; }
.cmp .part { font-size: 13px; color: var(--text-2); line-height: 1.3; display: block; }
@media (prefers-color-scheme: dark) { .cmp-yes { background: var(--link); } .cmp-yes::after { border-color: #071631; } }
@media (min-width: 720px) {
  .cmp { font-size: 16px; }
  .cmp th, .cmp td { padding: 16px 20px; }
  .cmp tbody th { padding-left: 24px; }
  .cmp td { width: 150px; }
  .cmp__d { display: block; }
  .cmp thead th:first-child { padding-left: 24px; }
}

/* Sezioni con foto */
.split { display: grid; gap: 0; background: var(--bg-alt); }
.split__fig { margin: 0; position: relative; }
.split__fig img { width: 100%; height: 340px; object-fit: cover; display: block; }
.split__body { padding: 40px var(--gutter) 56px; max-width: 640px; }
.split__body h2 { font-size: clamp(26px, 6vw, 38px); font-weight: 750; letter-spacing: -0.03em; margin-bottom: 16px; }
.split__body > p { color: var(--text-2); font-size: 17px; }
.split--dark { background: var(--navy); color: #fff; }
.split--dark .split__body > p, .split--dark .list li { color: #D3DEF0; }
.split--dark .list strong { color: #fff; }
.split--dark a { color: #fff; }
.split--dark :focus-visible { outline-color: var(--gold); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 640px; }
  .split__fig img { height: 100%; position: absolute; inset: 0; }
  .split__body { padding: 96px 64px; align-self: center; }
  .split--rev .split__fig { order: 2; }
}
@media (min-width: 1280px) { .split__body { padding-right: max(64px, calc((100vw - var(--wrap)) / 2 + 32px)); } .split--rev .split__body { padding-right: 64px; padding-left: max(64px, calc((100vw - var(--wrap)) / 2 + 32px)); } }
.list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.list li { padding-left: 22px; position: relative; color: var(--text-2); }
.list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 2px; background: var(--gold); transform: rotate(45deg); }
.list strong { color: var(--text); font-weight: 650; }

/* Dati di copertura sempre validi */
.always { display: grid; gap: 0; }
@media (min-width: 720px) { .always { grid-template-columns: repeat(2, 1fr); gap: 0 40px; } }
@media (min-width: 1080px) { .always { grid-template-columns: repeat(4, 1fr); } }
.always div { border-top: 2px solid var(--text); padding: 18px 0 28px; }
.always h3 { font-size: 18px; margin-bottom: 8px; }
.always p { color: var(--text-2); font-size: 15px; margin: 0; }

/* Condizioni facoltative */
.facs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 720px) { .facs { grid-template-columns: 1fr 1fr; gap: 0 40px; } }
@media (min-width: 1080px) { .facs { grid-template-columns: repeat(3, 1fr); } }
.facs li { padding: 18px 0; border-top: 1px solid var(--line); }
.facs h3 { font-size: 16.5px; font-weight: 650; margin-bottom: 4px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.facs p { color: var(--text-2); font-size: 15px; margin: 0; }
.tag { font-size: 12.5px; font-weight: 600; color: var(--link); background: var(--sky); border-radius: 999px; padding: 1px 9px; letter-spacing: 0; }

/* Assistenza */
.asx { display: grid; gap: 16px; }
@media (min-width: 900px) { .asx { grid-template-columns: 1fr 1fr; gap: 24px; } }
.asx article { border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 24px 22px; background: var(--surface); }
.asx article.is-gold { border-color: var(--blue); }
@media (prefers-color-scheme: dark) { .asx article.is-gold { border-color: var(--link); } }
.asx__h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.asx h3 { font-size: 22px; font-weight: 750; letter-spacing: -0.02em; }
.asx__p { font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; }
.asx__s { color: var(--text-2); font-size: 14.5px; margin-bottom: 14px; }
.asx dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 0; font-size: 15px; }
.asx dt { padding-right: 16px !important; }
.asx dt, .asx dd { padding: 9px 0; border-top: 1px solid var(--line); margin: 0; }
.asx dd { text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.asx__more { font-size: 14.5px; color: var(--text-2); margin: 14px 0 0; }

/* Fascia CTA */
.ctab { background: var(--blue); color: #fff; }
.ctab__in { padding-top: 48px; padding-bottom: 48px; display: grid; gap: 20px; align-items: center; }
.ctab h2 { font-size: clamp(24px, 5.6vw, 34px); font-weight: 750; letter-spacing: -0.03em; }
.ctab p { color: #DCE6F6; margin: 8px 0 0; max-width: 52ch; }
.ctab__go { display: grid; gap: 10px; }
.ctab__q { font-size: 14.5px; color: #DCE6F6; margin: 0 0 2px; }
.ctab__types { display: grid; gap: 8px; }
.ctab__types a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: #fff; color: var(--navy); text-decoration: none; font-weight: 650; min-height: 52px; }
.ctab__types a span { font-weight: 400; font-size: 14px; color: #46546B; }
.ctab__types a:hover { background: var(--gold); }
.ctab__types a:hover span { color: var(--navy); }
.ctab :focus-visible { outline-color: var(--gold); }
@media (min-width: 900px) { .ctab__in { grid-template-columns: 1fr 1fr; gap: 64px; padding-top: 64px; padding-bottom: 64px; } .ctab__types { grid-template-columns: repeat(3, 1fr); } .ctab__types a { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; } }
.ctab--navy { background: var(--navy-2); }

/* Barra CTA fissa su mobile */
.stick { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(10,33,72,.96); border-top: 1px solid rgba(255,255,255,.12); display: flex; gap: 10px; align-items: center; transform: translateY(110%); transition: transform .25s ease; }
.stick.is-on { transform: none; }
.stick .btn { flex: 1; min-height: 48px; }
.stick__tel { flex: 0 0 48px !important; width: 48px; padding: 0; color: #fff; border-color: rgba(255,255,255,.4); }
.stick :focus-visible { outline-color: var(--gold); }
@media (min-width: 900px) { .stick { display: none; } }
@media (max-width: 899px) { body.has-stick .foot { padding-bottom: 104px; } }

/* Intestazione compatta del preventivatore */
.band { position: relative; color: #fff; background: var(--navy); overflow: hidden; isolation: isolate; padding: 28px 0 104px; }
.band__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; z-index: -2; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,33,72,.93) 0%, rgba(10,33,72,.88) 55%, rgba(10,33,72,.7) 100%); }
.band h1 { font-size: clamp(30px, 8vw, 48px); font-weight: 760; letter-spacing: -0.035em; line-height: 1.05; }
.band p { color: #DCE6F6; margin: 12px 0 0; max-width: 52ch; font-size: 17px; }
.band__back { display: inline-block; color: #DCE6F6; font-size: 14.5px; margin-bottom: 14px; }
.band a:focus-visible { outline-color: var(--gold); }
@media (min-width: 900px) { .band { padding: 56px 0 136px; } }

.reassure { display: grid; gap: 14px; max-width: 760px; margin: 0 auto; }
.reassure p { color: var(--text-2); margin: 0; }
.photo-credit { font-size: 12.5px; color: #8FA3C4; margin-top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.how__cta { margin: 36px 0 0; }
.cmp { table-layout: fixed; }
.cmp thead th:not(:first-child) { width: 64px; }
.cmp thead th { padding-left: 4px; padding-right: 4px; }
.cmp thead th:first-child { padding-left: 14px; }
.cmp__f { font-size: 15.5px; }
.cmp tbody th { padding: 14px 8px 14px 14px; font-size: 14.5px; line-height: 1.4; }
.cmp td { padding: 14px 4px; }
@media (min-width: 720px) {
  .cmp thead th:not(:first-child) { width: 150px; }
  .cmp__f { font-size: 18px; }
  .cmp tbody th { padding: 16px 20px 16px 24px; font-size: 16px; }
  .cmp td { padding: 16px 20px; }
}
.split__fig img[src*='vela'] { object-position: 50% 78%; }

/* Voce dell'agente */
.voice { margin: 32px 0; display: grid; grid-template-columns: 1fr; gap: 20px; padding: 20px; background: var(--bg-alt); border-radius: var(--r-lg); }
.voice__img { width: 160px; max-width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: cover; object-position: 60% 40%; border-radius: var(--r-md); }
.voice__body { display: grid; gap: 14px; align-content: center; min-width: 0; }
.voice__q { margin: 0; padding-left: 18px; border-left: 3px solid var(--gold); max-width: 60ch; }
.voice__q p { margin: 0 0 12px; font-size: 17px; line-height: 1.6; color: var(--text); text-wrap: pretty; }
.voice__q p:first-child { font-size: 20px; font-weight: 600; line-height: 1.4; }
.voice__q p:last-child { margin-bottom: 0; }
.voice__by { padding-left: 21px; display: flex; flex-direction: column; gap: 2px; font-size: 15px; color: var(--text-2); }
.voice__by strong { color: var(--text); font-weight: 600; }
@media (min-width: 900px) {
  .why .voice { grid-column: 1 / -1; margin-top: 48px; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding: 32px; align-items: center; }
  .voice__img { width: 220px; }
  .voice__q p { font-size: 19px; }
  .voice__q p:first-child { font-size: 23px; }
}

/* Ex stili inline (CSP senza 'unsafe-inline') e avvisi */
.split__fig img.is-porto { object-position: 38% 50%; }
.label.label--sp { margin-top: 12px; }
.done__warn { font-weight: 600; color: var(--note-text); background: var(--note-bg); border: 1px solid var(--note-line); border-radius: var(--r-md); padding: 10px 14px; }

/* Numero verde assistenza */
.hotline { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin: 24px 0 32px; }
.nv { --nv: #009A55; display: inline-flex; align-items: stretch; text-decoration: none; color: #111; }
.nv__ico { width: 34px; height: 86px; fill: var(--nv); flex: none; margin: 10px -8px 0 0; position: relative; z-index: 1; align-self: flex-start; }
.nv__box { position: relative; display: flex; flex-direction: column; border: 3px solid var(--nv); border-radius: 0 14px 14px 0; border-left: 0; background: #fff; padding: 6px 22px 8px 20px; margin-top: 12px; }
.nv__l { position: absolute; top: -14px; left: 14px; background: var(--bg-alt, #fff); padding: 0 8px; color: var(--nv); font-weight: 800; font-size: 17px; letter-spacing: .01em; line-height: 1.4; }
.nv__n { font-size: 40px; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: #111; padding-top: 6px; }
.nv:hover .nv__n, .nv:focus-visible .nv__n { color: var(--nv); }
.hotline__side { display: grid; gap: 6px; max-width: 46ch; min-width: 0; }
.hotline__abroad { margin: 0; font-size: 15px; color: var(--text-2); }
.hotline__abroad a { color: var(--text); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.hotline__note { margin: 0; font-size: 14px; color: var(--text-2); }
@media (max-width: 420px) { .nv__n { font-size: 32px; } .nv__l { font-size: 15px; } .nv__ico { width: 30px; height: 76px; } }

/* Citazione dell'agente in fascia, dopo l'apertura */
.vband { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.vband .wrap { padding-block: 28px; }
.voice--band { margin: 0; padding: 0; background: none; border-radius: 0; display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "q q" "img by"; gap: 14px 14px; align-items: center; }
.voice--band .voice__body { display: contents; }
.voice--band .voice__q { grid-area: q; max-width: 68ch; }
.voice--band .voice__q p { font-size: 16px; margin-bottom: 8px; }
.voice--band .voice__q p:first-child { font-size: 19px; }
.voice--band .voice__img { grid-area: img; width: 56px; aspect-ratio: 1 / 1; border-radius: 50%; object-position: 55% 30%; }
.voice--band .voice__by { grid-area: by; padding-left: 0; }
@media (min-width: 900px) {
  .vband .wrap { padding-block: 40px; }
  .voice--band { grid-template-columns: 112px minmax(0, 1fr); grid-template-areas: "img q" "img by"; gap: 10px 32px; align-items: start; }
  .voice--band .voice__img { width: 112px; border-radius: var(--r-md); object-position: 55% 40%; align-self: center; }
  .voice--band .voice__q p { font-size: 17px; }
  .voice--band .voice__q p:first-child { font-size: 22px; }
  .voice--band .voice__by { padding-left: 21px; }
}

/* AIS e MMSI nel modulo di richiesta */
.ais { display: grid; gap: 12px; margin: -4px 0 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-alt); }
.ais .field { margin: 0; }
.ais__row { display: flex; gap: 8px; }
.ais__row input { flex: 1; min-width: 0; }
.ais__row .btn { flex: none; }
.ais__list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; max-height: 320px; overflow-y: auto; }
.ais__opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm, 8px); background: var(--surface); cursor: pointer; }
.ais__opt:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.ais__opt input { flex: none; }
.ais__n { font-weight: 600; color: var(--text); }
.ais__m { font-size: 13.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.ais__it { font-size: 12px; font-weight: 600; color: var(--blue); margin-left: auto; white-space: nowrap; }
.ais__msg { font-size: 14px; color: var(--text-2); margin: 0; }
.ais__none { background: none; border: 0; padding: 0; color: var(--blue); text-decoration: underline; font: inherit; font-size: 14px; cursor: pointer; justify-self: start; }

/* Risultati con miniatura e scheda della barca trovata */
.ais__opt { align-items: center; }
.ais__th { flex: none; width: 52px; height: 40px; border-radius: 6px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--text-2); }
.ais__th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ais__th svg { width: 22px; height: 22px; opacity: .6; }
.ais__tx { display: grid; min-width: 0; }
.boat { display: grid; gap: 8px; padding: 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(10,33,72,.06); }
.boat__ok { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; color: var(--blue); }
.boat__ok svg { width: 18px; height: 18px; flex: none; }
.boat__ph { position: relative; margin: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-alt); }
.boat__ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.boat__ph figcaption { position: absolute; right: 6px; bottom: 6px; font-size: 11px; color: #fff; background: rgba(0,0,0,.45); padding: 2px 6px; border-radius: 4px; }
.boat__hd { display: flex; align-items: center; gap: 10px; }
.boat__n { font-size: 18px; font-weight: 700; color: var(--text); letter-spacing: .01em; }
.boat__hd .ais__it { margin-left: 0; }
.boat .ais__m { margin: 0; }
.boat__map { height: 200px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #AAD3DF; z-index: 0; }
.boat__map .leaflet-control-attribution { font-size: 10px; }

.boat__pre { margin: 0; font-size: 13.5px; color: var(--text-2); background: var(--bg-alt); border-radius: 6px; padding: 8px 10px; }
#ais-box { margin-bottom: 18px; }
