@font-face {
  font-family: "Archivo";
  src: url("archivo.woff2") format("woff2-variations"), url("archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --blu: #23449B;
  --blu-scuro: #1A3678;
  --notte: #13234F;
  --carta: #F2F5FA;
  --bianco: #FFFFFF;
  --rosso: #D3121B;
  --rosso-scuro: #AE0E16;
  --pietra: #556075;
  --linea: #D7DEEA;
  --testo: #1B2440;
  --wrap: 1160px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 6rem; }

body {
  margin: 0;
  font-family: "Archivo", "Arial Narrow", Arial, sans-serif;
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--testo);
  background: var(--bianco);
}

img, svg { display: block; max-width: 100%; }

a { color: var(--blu); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blu-scuro); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--rosso); outline-offset: 3px; }

h1, h2, h3, .display {
  font-stretch: 72%;
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -0.005em;
  color: var(--notte);
  margin: 0;
}
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.3rem; font-stretch: 80%; font-weight: 720; line-height: 1.15; }

p { margin: 0 0 1rem; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.prose { max-width: 66ch; }
.prose > p:last-child { margin-bottom: 0; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--testo); max-width: 58ch; }
.muted { color: var(--pietra); }

.skip { position: absolute; left: -999px; top: 0; background: var(--notte); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--linea);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.75rem; padding: .45rem 0; }
.brand { display: block; flex: none; }
.brand .logo { width: 108px; height: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: var(--notte); text-decoration: none; font-weight: 560; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blu); text-decoration: underline; text-decoration-thickness: 2px; }
.menu { display: none; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; font-weight: 650; padding: .55rem .9rem; border: 1.5px solid var(--notte); color: var(--notte); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--notte); color: #fff; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--linea); padding: .5rem var(--gutter) 1.25rem; box-shadow: 0 18px 30px -20px rgba(19,35,79,.35); }
.menu-panel a { display: block; padding: .7rem 0; border-bottom: 1px solid var(--linea); color: var(--notte); text-decoration: none; font-weight: 600; font-size: 1.1rem; }

/* Language switcher */
.lang { position: relative; margin-left: .9rem; flex: none; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .45rem; padding: .5rem .65rem; border: 1.5px solid var(--linea); font-weight: 650; font-size: .95rem; color: var(--notte); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: .1rem; }
.lang[open] summary { border-color: var(--notte); }
.lang img { width: 22px; height: 15px; object-fit: cover; box-shadow: 0 0 0 1px rgba(19,35,79,.18); }
.lang-panel { position: absolute; right: 0; top: calc(100% + .4rem); z-index: 70; list-style: none; margin: 0; padding: .4rem 0; min-width: 11.5rem; background: #fff; border: 1px solid var(--linea); box-shadow: 0 18px 30px -18px rgba(19,35,79,.4); }
.lang-panel a { display: flex; align-items: center; gap: .7rem; padding: .6rem 1rem; color: var(--notte); text-decoration: none; font-weight: 560; }
.lang-panel a:hover { background: var(--carta); }
.lang-panel a[aria-current] { font-weight: 720; }
.site-footer .footer-base + .footer-base { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.3rem; min-height: 3rem;
  font: inherit; font-weight: 680; font-stretch: 90%; font-size: 1.05rem; line-height: 1.1;
  text-decoration: none; border: 2px solid transparent; cursor: pointer;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-call { background: var(--rosso); color: #fff; }
.btn-call:hover { background: var(--rosso-scuro); color: #fff; text-decoration: none; }
.btn-wa { background: var(--blu); color: #fff; }
.btn-wa:hover { background: var(--blu-scuro); color: #fff; text-decoration: none; }
.btn-line { border-color: currentColor; color: var(--notte); background: transparent; }
.btn-line:hover { background: var(--notte); color: #fff; border-color: var(--notte); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.nav .btn { padding: .6rem 1rem; min-height: 2.6rem; font-size: .98rem; text-decoration: none; color: #fff; }
.nav .btn:hover { color: #fff; text-decoration: none; }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-size: inherit; }
.slogan {
  display: block;
  font-size: clamp(3.4rem, 8.6vw, 7.25rem);
  font-stretch: 64%;
  font-weight: 800;
  line-height: .9;
  letter-spacing: -0.012em;
  color: var(--blu);
  margin-bottom: 1.4rem;
}
.h1-sub { display: block; font-size: clamp(1.35rem, 2.3vw, 1.85rem); font-stretch: 78%; font-weight: 700; line-height: 1.15; color: var(--notte); max-width: 26ch; }
.hero .lead { margin: 1.25rem 0 1.75rem; }
.facts { list-style: none; padding: 0; margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.facts li { display: flex; align-items: center; gap: .5rem; font-weight: 620; color: var(--notte); }
.facts li::before { content: ""; width: .7rem; height: .7rem; background: var(--blu); flex: none; }

.portrait {
  position: relative; aspect-ratio: 4 / 5; background: var(--blu); color: #fff;
  display: flex; align-items: flex-end; overflow: hidden;
}
.portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portrait .bigb { position: absolute; right: -14%; top: -6%; width: 92%; height: auto; opacity: .16; }
.portrait figcaption { position: relative; padding: 1.25rem 1.4rem; font-size: .95rem; line-height: 1.35; background: linear-gradient(to top, rgba(19,35,79,.85), rgba(19,35,79,0)); width: 100%; }
.portrait figcaption strong { display: block; font-size: 1.25rem; font-stretch: 78%; }
.portrait .placeholder-note { position: absolute; top: 1rem; left: 1.4rem; font-size: .85rem; opacity: .8; }

/* Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-carta { background: var(--carta); }
.section-head { max-width: 62ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head p { margin-top: 1rem; color: var(--pietra); font-size: 1.1rem; }

/* Audience split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.split > div { padding: clamp(2rem, 4vw, 3.25rem); }
.split .casa { background: var(--blu); color: #fff; }
.split .casa h2, .split .casa h3 { color: #fff; }
.split .aziende { background: var(--carta); }
.split h2 { margin-bottom: .9rem; }
.split p { max-width: 46ch; }
.linklist { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.linklist li { border-top: 1px solid rgba(255,255,255,.28); }
.aziende .linklist li { border-top-color: var(--linea); }
.linklist a { display: flex; justify-content: space-between; gap: 1rem; padding: .9rem 0; text-decoration: none; font-weight: 650; font-size: 1.15rem; font-stretch: 86%; }
.casa .linklist a { color: #fff; }
.linklist a span { font-weight: 400; font-stretch: 100%; font-size: .95rem; opacity: .85; text-align: right; }
.linklist a:hover { text-decoration: underline; }

/* Services rows */
.rows { border-top: 2px solid var(--notte); }
.row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr) auto; gap: 1.5rem; align-items: baseline; padding: 1.4rem 0; border-bottom: 1px solid var(--linea); }
.row h3 a { color: var(--notte); text-decoration: none; }
.row h3 a:hover { color: var(--blu); text-decoration: underline; }
.row p { margin: 0; color: var(--pietra); }
.row .more { font-weight: 650; white-space: nowrap; }

/* Statement */
.statement { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: end; }
.statement .display { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-stretch: 68%; font-weight: 780; line-height: 1; color: var(--blu); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); counter-reset: step; }
.steps li { counter-increment: step; border-top: 4px solid var(--blu); padding-top: 1rem; }
.steps li::before { content: counter(step); display: block; font-size: 3.2rem; font-stretch: 64%; font-weight: 800; line-height: 1; color: var(--blu); margin-bottom: .6rem; }
.steps h3 { margin-bottom: .5rem; }
.steps p { margin: 0; color: var(--pietra); }

/* Benefits grid */
.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.5rem; margin: 0; padding: 0; list-style: none; }
.benefits li { padding-left: 1.4rem; border-left: 3px solid var(--blu); }
.benefits h3 { margin-bottom: .4rem; }
.benefits p { margin: 0; color: var(--pietra); }

/* Towns */
.towns { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2rem; }
.towns li { border-bottom: 1px solid var(--linea); }
.towns a { display: block; padding: .85rem 0; font-weight: 650; font-size: 1.2rem; font-stretch: 82%; text-decoration: none; color: var(--notte); }
.towns a:hover { color: var(--blu); text-decoration: underline; }
.towns-note { margin-top: 1.5rem; color: var(--pietra); max-width: 66ch; }

/* FAQ */
.faq { max-width: 52rem; border-top: 2px solid var(--notte); }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary { cursor: pointer; list-style: none; padding: 1.15rem 0; display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq-q { font-weight: 700; font-size: 1.2rem; font-stretch: 86%; line-height: 1.25; color: var(--notte); }
.faq-more { flex: none; padding-right: .2rem; font-size: .95rem; font-weight: 620; color: var(--blu); text-decoration: underline; text-underline-offset: .2em; }
.faq-more::before { content: "Leggi di più"; }
.faq details[open] .faq-more::before { content: "Chiudi"; }
.faq summary:hover .faq-q { color: var(--blu); }
.faq details > div { padding: 0 0 1.25rem; max-width: 64ch; }
.faq details > div p:last-child { margin-bottom: 0; }

/* CTA band */
.cta { background: var(--notte); color: #fff; padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.cta h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: end; }
.phone-big { display: inline-block; margin: 1rem 0 0; font-size: clamp(2.8rem, 8.4vw, 6.4rem); font-stretch: 64%; font-weight: 800; line-height: .95; color: #fff; text-decoration: none; letter-spacing: .005em; }
.phone-big:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 3px; }
.cta p { color: rgba(255,255,255,.82); margin: 1rem 0 0; max-width: 52ch; }
.cta .btn-wa { background: #fff; color: var(--notte); }
.cta .btn-wa:hover { background: var(--carta); color: var(--notte); }

/* Interior pages */
.page-head { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--linea); }
.crumbs { font-size: .92rem; color: var(--pietra); margin-bottom: 1.25rem; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--linea); }
.crumbs a { color: var(--pietra); }
.page-head h1 { hyphens: auto; overflow-wrap: break-word; font-size: clamp(2.5rem, 5.6vw, 4.5rem); font-stretch: 66%; font-weight: 800; line-height: .96; color: var(--blu); max-width: 18ch; }
.page-head .lead { margin-top: 1.25rem; }
.page-body { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(2rem, 5vw, 4.5rem); padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3.5rem, 6vw, 5rem); }
.page-body > article > section + section { margin-top: clamp(2.75rem, 5vw, 3.75rem); }
.page-body h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-bottom: 1.1rem; }
.page-body ul.plain { padding-left: 1.2rem; margin: 0 0 1rem; }
.page-body ul.plain li { margin-bottom: .45rem; }
.page-body ul.plain li::marker { color: var(--blu); }
.aside-box { position: sticky; top: 6.5rem; background: var(--carta); border-top: 4px solid var(--rosso); padding: 1.5rem; }
.aside-box h2 { font-size: 1.55rem; margin-bottom: .6rem; }
.aside-box p { font-size: .98rem; color: var(--pietra); }
.aside-box .btn { width: 100%; margin-top: .6rem; }
.aside-box .tel { display: block; font-size: 2rem; font-stretch: 66%; font-weight: 800; color: var(--notte); text-decoration: none; line-height: 1; margin: .2rem 0 .4rem; }
.related { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.related a { display: inline-block; padding: .55rem .9rem; border: 1.5px solid var(--linea); color: var(--notte); text-decoration: none; font-weight: 600; }
.related a:hover { border-color: var(--blu); color: var(--blu); }
.layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.layers li { background: var(--carta); padding: 1.25rem; }
.layers h3 { margin-bottom: .4rem; color: var(--blu); }
.layers p { margin: 0; font-size: .98rem; color: var(--pietra); }
.note { background: var(--carta); border-left: 4px solid var(--blu); padding: 1.1rem 1.25rem; max-width: 66ch; }
.note p:last-child { margin: 0; }
.zones { columns: 2; column-gap: 2rem; padding-left: 1.2rem; margin: 0; }
.zones li { break-inside: avoid; margin-bottom: .35rem; }
.zones li::marker { color: var(--blu); }

/* Form */
.form { display: grid; gap: 1rem; max-width: 40rem; }
.form label { display: grid; gap: .35rem; font-weight: 620; color: var(--notte); }
.form input, .form textarea { font: inherit; font-weight: 400; padding: .75rem .85rem; border: 1.5px solid #AEB8CB; background: #fff; color: var(--testo); width: 100%; }
.form input:focus, .form textarea:focus { border-color: var(--blu); outline: 2px solid var(--blu); outline-offset: 0; }
.form textarea { min-height: 9rem; resize: vertical; }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; font-size: .95rem; color: var(--pietra); }
.form .check input { width: auto; margin-top: .3rem; }
.form-msg { font-weight: 620; color: var(--notte); min-height: 1.5rem; }
.hp { position: absolute; left: -5000px; }

/* Footer */
.site-footer { background: var(--notte); color: rgba(255,255,255,.82); padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; border-top: 1px solid rgba(255,255,255,.12); font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer .logo { width: 150px; margin-bottom: 1.25rem; }
.site-footer h2 { font-size: 1.15rem; font-stretch: 84%; color: #fff; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-base { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.15); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .9rem; color: rgba(255,255,255,.65); }
.footer-base a { color: rgba(255,255,255,.85); }

/* Mobile action bar */
.actionbar { display: none; }

@media (max-width: 980px) {
  .nav { display: none; }
  .menu { display: block; margin-left: .6rem; }
  .lang { margin-left: auto; }
  .site-header .header-call + .lang { margin-left: .9rem; }
  html:lang(ru) .page-head h1, html:lang(de) .page-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
  .hero-grid, .statement { grid-template-columns: 1fr; }
  .portrait { max-width: 30rem; aspect-ratio: 5 / 4; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-body { grid-template-columns: 1fr; }
  .aside-box { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  body { padding-bottom: 4.25rem; }
  .split { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: .4rem; }
  .benefits, .layers { grid-template-columns: 1fr; }
  .towns { grid-template-columns: 1fr 1fr; }
  .zones { columns: 1; }
  .linklist a span { display: none; }
  .portrait { max-width: none; }
  .cta-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .actionbar {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--notte);
  }
  .actionbar a { display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.6rem; color: #fff; text-decoration: none; font-weight: 680; font-size: 1.05rem; }
  .actionbar a svg { width: 1.25em; height: 1.25em; }
  .actionbar .a-call { background: var(--rosso); }
  .actionbar .a-wa { background: var(--blu); }
  .site-header .header-call { display: none; }
  .site-header .header-call + .lang { margin-left: auto; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero .slogan { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .hero .portrait { animation: rise .9s .12s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
