/* ---------- Font locali (self-hosted) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-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;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500-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;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-500-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600-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;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin-700-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;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/inter-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-600-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;
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-700-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;
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/barlow-condensed-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ---------- Variabili ---------- */
:root {
  --navy-900: #131e2b;
  --navy-800: #1b283a;
  --navy-700: #26374c;
  --blue: #2596d1;
  --blue-700: #176b96;
  --blue-100: #e8f4fb;
  /* Accento istituzionale. Bianco su --accent = 7,3:1 (AA e AAA).
     --accent su navy = 2,3:1: non basta, quindi su sfondo scuro i testi usano
     --accent-on-dark (7,6:1 su navy-900, 5,5:1 su navy-700). */
  --accent: #943642;
  --accent-400: #a8434f;   /* hover dei bottoni su sfondo scuro; bianco = 5,9:1 */
  --accent-600: #7a2c36;   /* hover su sfondo chiaro; bianco = 9,4:1 */
  --accent-soft: #fbf4f5;  /* sfondo tenue; --accent sopra = 6,8:1 */
  --accent-tint: #f8eef0;  /* badge; --accent-600 sopra = 8,3:1 */
  --accent-on-dark: #e59aa5;
  --ink: #222b36;
  --muted: #5b6b7d;
  --line: #e2e8f0;
  --bg: #f6f8fa;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(19, 30, 43, 0.08);
  --shadow-sm: 0 4px 14px rgba(19, 30, 43, 0.07);
  --container: 1180px;
  --font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.topbar :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .cta-band :focus-visible { outline-color: var(--accent-on-dark); }
button { font: inherit; cursor: pointer; }
a, button, summary, input, select, textarea { touch-action: manipulation; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.08;
  color: var(--navy-800);
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1, h2, h3 { text-wrap: balance; overflow-wrap: break-word; }
h1 { font-size: clamp(1.85rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; }
.section-alt { background: var(--bg); }
.section-tight { padding: 48px 0; }

.kicker {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.95rem;
  color: var(--blue-700);
  margin: 0 0 8px;
}
.section-head { max-width: 780px; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.12rem; color: var(--muted); }
.text-center { text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: var(--white);
  padding: 10px 16px; z-index: 200; font-weight: 600;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-900);
  color: #c8d4e0;
  font-size: 0.86rem;
}
.topbar-inner {
  display: flex; align-items: center; gap: 26px;
  min-height: 40px; flex-wrap: wrap;
  padding-top: 4px; padding-bottom: 4px;
}
.topbar a { color: #ffffff; text-decoration: none; }
.topbar a:hover { color: var(--accent-on-dark); text-decoration: none; }
.topbar-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar-item svg { width: 15px; height: 15px; flex: none; opacity: .85; }
.topbar .spacer { flex: 1; }
.topbar-area {
  border-left: 1px solid rgba(255,255,255,.18);
  padding-left: 26px;
}
.topbar-area a { color: var(--accent-on-dark); font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(6px);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(19,30,43,.10); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 74px;
}
.brand { display: flex; align-items: center; min-height: 44px; flex: none; }
.brand img { height: 40px; width: auto; max-width: none; margin-left: -18px; } /* il PNG originale ha un margine trasparente a sinistra */
.main-nav { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
.main-nav > a {
  font-family: var(--font-head);
  font-size: .98rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--navy-800);
  padding: 8px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
}
.main-nav > a:hover { background: var(--blue-100); color: var(--blue-700); text-decoration: none; }
.main-nav > a.active { color: var(--blue-700); background: var(--blue-100); }
.main-nav .nav-cta { margin-left: 10px; }
.main-nav > a.nav-cta { color: #fff; padding: 10px 14px; }
.main-nav > a.nav-cta:hover { background: #14618a; color: #fff; }

.nav-toggle {
  display: none;
  background: var(--navy-800); color: #fff;
  border: 0; border-radius: 10px;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-head);
  font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  font-size: 1.05rem; line-height: 1.1; text-align: center;
  padding: 15px 26px;
  border-radius: 10px;
  border: 2px solid transparent;
  text-decoration: none;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue-700); color: #fff; }
.btn-primary:hover { background: #14618a; color: #fff; }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-600); color: var(--white); }
.hero .btn-accent, .cta-band .btn-accent { box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.hero .btn-accent:hover, .cta-band .btn-accent:hover { background: var(--accent-400); }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-outline:hover { background: var(--navy-800); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.7); color: #fff; background: rgba(255,255,255,.06); }
.btn-light:hover { background: #fff; color: var(--navy-900); }
.btn-lg { padding: 18px 32px; font-size: 1.15rem; }
.btn-block { width: 100%; padding-inline: 14px; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; overflow: hidden; background: var(--navy-900); }
.hero-bgimg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .92;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(15,25,38,.92) 0%, rgba(15,25,38,.72) 46%, rgba(15,25,38,.35) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 96px 22px 84px; max-width: 800px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 .accent { color: var(--accent-on-dark); }
.hero-kicker {
  display: inline-block;
  font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: .16em; font-weight: 600;
  color: var(--accent-on-dark); font-size: 1rem; margin: 0 0 14px;
}
.hero-sub { font-size: 1.18rem; color: #dbe5ee; max-width: 640px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }

.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }

/* ---------- Icone social ---------- */
.social-links { display: flex; gap: 10px; }
.social-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  border: 1px solid var(--line); color: var(--navy-800); background: var(--white);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.social-link svg { width: 20px; height: 20px; }
.social-link:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.hero .social-link { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.24); color: var(--white); }
.hero .social-link:hover { background: var(--accent-400); border-color: var(--accent-400); }

/* ---------- Page hero (pagine interne) ---------- */
.page-hero {
  background:
    radial-gradient(1200px 300px at 85% -40%, rgba(37,150,209,.35), transparent 60%),
    linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 56px 0 50px;
}
.page-hero h1 { color: #fff; margin-bottom: .25em; }
.page-hero .lead { color: #d7e2ec; max-width: 820px; margin-bottom: 0; }
.breadcrumbs { font-size: .88rem; margin-bottom: 16px; color: #9fb2c4; }
.breadcrumbs a { color: #cfe0ee; }
.breadcrumbs span { margin: 0 7px; opacity: .6; }

/* ---------- Chips / badges ---------- */
.pill {
  display: inline-block;
  font-size: .82rem; font-weight: 600;
  background: var(--blue-100); color: var(--blue-700);
  padding: 5px 12px; border-radius: 999px;
  margin: 0 6px 6px 0;
}
.pill-dark { background: rgba(255,255,255,.12); color: #fff; }
.pill-accent { background: var(--accent-tint); color: var(--accent-600); }
.tag {
  display: inline-block; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--accent); margin-bottom: 6px;
}

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.contact-layout { grid-template-columns: 1.5fr 1fr; gap: 34px; }
.contact-layout > * { min-width: 0; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { position: relative; background: #eef2f6; }
.card-media img { width: 100%; height: 210px; object-fit: cover; }
.card-media.contain img { object-fit: contain; padding: 18px; background: #fff; }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: .4em; }
.card-body p { color: var(--muted); font-size: .97rem; }
.card-body .card-cta { margin-top: auto; padding-top: 10px; }
.card-link { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; font-weight: 700; font-family: var(--font-head); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; }
.card-link::after { content: "→"; transition: transform .15s; }
.card-link:hover::after { transform: translateX(3px); }
.card-flat { box-shadow: none; }

.media-row { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; }
.media-row.rev .media { order: 2; }
.media img { height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Checklist ---------- */
.checklist { list-style: none; margin: 0 0 18px; padding: 0; }
.checklist li { position: relative; padding: 5px 0 5px 32px; }
.checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 5px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--blue-100); color: var(--blue-700);
  font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.checklist.compact li { padding-top: 2px; padding-bottom: 2px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm); position: relative;
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -20px; left: 24px;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent); color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.step h3 { margin-top: 14px; }
.step p { color: var(--muted); font-size: .97rem; margin-bottom: 0; }

/* ---------- Brands ---------- */
/* Griglia di soli loghi: flex per centrare le righe incomplete */
.brands { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.brand-card {
  flex: 0 1 calc((100% - 4 * 14px) / 5);
  display: flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}
.brand-logo { width: 100%; height: 92px; }
.brand-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(900px 260px at 12% 0%, rgba(37,150,209,.4), transparent 60%),
    linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff; border-radius: var(--radius);
  padding: 46px 40px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin: 0 0 .2em; }
.cta-band p { color: #d7e2ec; margin: 0; max-width: 560px; }
.cta-band > * { min-width: 0; max-width: 100%; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn { max-width: 100%; overflow-wrap: anywhere; padding-inline: 16px; }

/* ---------- Tabelle ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table.spec { width: 100%; border-collapse: collapse; background: #fff; min-width: 640px; }
table.spec th, table.spec td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-size: 1rem; background: var(--navy-800); color: #fff; }
table.spec tr:nth-child(even) td { background: var(--bg); }
table.spec td strong { color: var(--navy-800); }
table.spec tr:last-child td { border-bottom: 0; }

/* ---------- Accordion ---------- */
details.acc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 20px; margin-bottom: 12px; box-shadow: var(--shadow-sm);
}
details.acc summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-head); font-size: 1.22rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em; color: var(--navy-800);
  padding: 14px 30px 14px 0; position: relative;
}
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after {
  content: "+"; position: absolute; right: 2px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; color: var(--blue); transition: transform .2s;
}
details.acc[open] summary::after { content: "–"; }
details.acc .acc-body { padding: 0 0 18px; color: var(--muted); }
details.acc .acc-body p:last-child, details.acc .acc-body ul:last-child { margin-bottom: 0; }

/* ---------- Callout ---------- */
.note-box {
  background: var(--blue-100);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px; margin: 22px 0;
  font-size: .98rem;
}
.note-box.accent { background: var(--accent-soft); border-left-color: var(--accent); }
.note-box.accent a { color: var(--accent-600); }
.note-box a { color: #176b96; text-decoration: underline; }
.note-box p:last-child { margin-bottom: 0; }

/* ---------- Galleria ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm); }
.gallery img { width: 100%; height: 210px; object-fit: cover; transition: transform .25s ease; }
.gallery a:hover img { transform: scale(1.04); }

.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10,17,26,.92);
  display: none; align-items: center; justify-content: center;
  padding: 30px;
  overscroll-behavior: contain;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 88vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close {
  position: absolute; top: 18px; right: 22px;
  background: rgba(255,255,255,.12); color: #fff;
  border: 0; border-radius: 10px; width: 48px; height: 48px;
  font-size: 1.6rem; line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,.25); }

/* ---------- Form ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid > * { min-width: 0; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; color: var(--navy-800); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; font: inherit; color: var(--ink);
  border: 1px solid #cfd8e3; border-radius: 9px;
  padding: 12px 14px; background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 3px solid rgba(37,150,209,.25); border-color: var(--blue);
}
.field textarea { min-height: 130px; resize: vertical; }
.honey-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.field-error { margin: 5px 0 0; font-size: .82rem; line-height: 1.35; color: #a5281b; }
.field-error:empty { display: none; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #a5281b; }
.check-row input[aria-invalid="true"] { outline: 2px solid #a5281b; outline-offset: 2px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check-row input { width: 24px; height: 24px; flex: none; margin-top: 0; }
.check-row a { text-decoration: underline; }
.check-row label { padding: 2px 0; }
.form-note { font-size: .88rem; color: var(--muted); margin-top: 12px; }
.form-note.is-error { color: #a5281b; }
.form-note.is-success { color: #176b96; }
.form-note:focus { outline: 2px solid var(--blue); outline-offset: 3px; }
.btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* ---------- Contatti info ---------- */
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 26px; margin-bottom: 18px; }
.info-card h3 { margin-bottom: .3em; }
.info-card p { margin-bottom: .35em; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: 12px; padding: 7px 0; align-items: flex-start; }
.info-list li span { flex: 1; min-width: 0; }
.info-list svg { width: 19px; height: 19px; flex: none; margin-top: 4px; color: var(--blue-700); }
.map-embed { border: 0; width: 100%; height: 320px; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9c7d4; margin-top: 0; font-size: .95rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px; padding: 58px 0 40px;
}
.footer-col h3 {
  color: #fff; font-size: 1.12rem; letter-spacing: .06em;
  margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid rgba(255,255,255,.12);
}
.footer-col a { color: #cfe0ee; display: block; padding: 4px 0; }
.footer-col a:hover { color: var(--accent-on-dark); text-decoration: none; }
.footer-col p { margin-bottom: .6em; }
.footer-brand { margin-bottom: 16px; }
.footer-brand img { height: 44px; width: auto; max-width: none; margin-left: -20px; }
.footer-col a.footer-iso { color: inherit; display: flex; align-items: center; gap: 12px; margin-top: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 10px 14px; transition: border-color .2s, background .2s; }
.footer-col a.footer-iso:hover { color: inherit; background: rgba(255,255,255,.1); border-color: var(--accent-on-dark); text-decoration: none; }
.footer-iso img { height: 46px; width: auto; flex: none; border-radius: 4px; }
.footer-iso span { flex: 1; min-width: 0; font-size: .82rem; line-height: 1.35; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0 26px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: #8fa2b5; }
.footer-bottom a { color: #cfe0ee; text-decoration: underline; }

/* ---------- Pagine con testo originale ---------- */
.prose { max-width: 72ch; min-width: 0; }
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a { display: block; padding: 10px 0; font-weight: 600; }
.platform-banner { display: block; }
.platform-banner img { width: 100%; height: auto; }

/* Certificato completo nella pagina /certificazione/: il badge iso-9001.png resta nel footer */
.media img.cert-image { width: 100%; max-width: 520px; height: auto; margin-inline: auto; background: #fff; border: 1px solid var(--line); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; } .mb-2 { margin-bottom: 16px; }
.mt-4 { margin-top: 32px; } .mb-4 { margin-bottom: 32px; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.divider { height: 1px; background: var(--line); margin: 40px 0; border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(19,30,43,.15);
    flex-direction: column; align-items: stretch;
    padding: 12px 18px 20px; gap: 2px;
  }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 13px 12px; font-size: 1.18rem; border-radius: 8px; }
  .main-nav .nav-cta { margin: 10px 0 0; }
}

@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .brand-card { flex-basis: calc((100% - 2 * 14px) / 3); }
  .steps { grid-template-columns: 1fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .media-row { grid-template-columns: 1fr; gap: 28px; }
  .media-row.rev .media { order: 0; }
  .contact-layout { grid-template-columns: 1fr; }

}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 64px 22px 60px; }
  /* Su mobile restano telefono e piattaforma: indirizzo ed email sono nel footer */
  .topbar-area { border-left: 0; padding-left: 0; }
  .topbar-inner { gap: 0 16px; flex-wrap: nowrap; justify-content: space-between; }
  .topbar-item:nth-child(2), .topbar-item:nth-child(3), .topbar .spacer { display: none; }
  .topbar a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-col a { padding: 11px 0; }
  .footer-bottom a { display: inline-block; padding: 11px 0; }
  .link-list a { padding: 12px 0; }
  .cta-band { padding: 34px 24px; }
  .brand img { height: 38px; }
}

@media (max-width: 560px) {
  .brands { gap: 10px; }
  .brand-card { flex-basis: calc((100% - 10px) / 2); padding: 16px 14px; }
  .brand-logo { height: 72px; }
}

@media (max-width: 460px) {
  .gallery { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
