/* =========================================================
   FRALEX SRL — Versione E "Porto"
   Sabbia, blu mare e rosso container. Carattere Archivo.
   Illustrazioni: nave, aereo, camion, treno.
   ========================================================= */

/* 1) FONT (self-hosted) */
@font-face { font-family: "Archivo"; src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

/* 2) TOKEN */
:root {
  --sea:    #0B3954;
  --sea-2:  #114B6E;
  --sea-3:  #08283B;
  --az:     #2A9FD6;
  --az-txt: #16679A;
  --sky:    #4FC0EC;
  --sand:   #F4EEE4;
  --sand-2: #EAE1D3;
  --sand-3: #DCD3C4;
  --rust:   #B84E29;
  --rust-2: #9E4021;
  --ink:    #122A3A;
  --mut:    #52646F;
  --line:   rgba(11, 57, 84, .14);
  --line-w: rgba(255, 255, 255, .16);
  --wa:     #187A43;
  --ok:     #1E7A4C;
  --err:    #B3261E;
  --ff: "Archivo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --step-0: clamp(1rem, .97rem + .15vw, 1.07rem);
  --step-1: clamp(1.15rem, 1.08rem + .35vw, 1.3rem);
  --step-2: clamp(1.4rem, 1.25rem + .7vw, 1.8rem);
  --step-3: clamp(1.9rem, 1.5rem + 1.7vw, 3.1rem);
  --step-4: clamp(2.5rem, 1.7rem + 3.6vw, 5.6rem);
  --wrap: 1260px;
  --gutter: clamp(1rem, 3vw, 2rem);
  --radius: 3px;
  --header-h: 82px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow: 0 1px 0 var(--sand-2), 0 18px 36px -24px rgba(8, 40, 59, .45);
  --banner-offset: 0px;
}

/* 3) BASE */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--sand); color: var(--ink); font-family: var(--ff); font-size: var(--step-0); line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--az-txt); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--sea); }
h1, h2, h3 { font-family: var(--ff); font-weight: 800; font-stretch: 88%; line-height: 1.02; margin: 0 0 .5em; color: var(--sea); letter-spacing: -.015em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-stretch: 92%; line-height: 1.25; letter-spacing: 0; }
h1 em, h2 em { font-style: normal; color: var(--az); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--sky); color: var(--sea-3); }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--sea); color: #fff; padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 4) LAYOUT */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 8vw, 6.5rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--alt { background: var(--sand-2); }
.section--sea { background: var(--sea); color: rgba(255,255,255,.85); }
.section--sea h2, .section--sea h3 { color: #fff; }
.section--sea h2 em { color: var(--sky); }
.section--sea a:not(.btn) { color: #fff; }
.pt-0 { padding-top: 0 !important; }
.pt-0b { padding-top: clamp(3rem, 6vw, 4.5rem); }
.grid-2 { display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-2--wide-left { grid-template-columns: 1.15fr .85fr; } .grid-2--top { align-items: start; } }
.lede { font-size: var(--step-1); color: var(--mut); line-height: 1.55; max-width: 46ch; }
.section--sea .lede { color: rgba(255,255,255,.8); }
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--step-2); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose li { margin-bottom: .4em; }
.eyebrow { font-weight: 700; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--rust); margin-bottom: 1rem; }
.section--sea .eyebrow, .page-hero .eyebrow { color: var(--sky); }
.section-head { max-width: 780px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head--split { max-width: none; display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1fr 1fr; align-items: end; gap: 3rem; } .section-head--split p { margin: 0; } }
.corr { height: 22px; background: repeating-linear-gradient(90deg, var(--sea) 0 10px, var(--sea-2) 10px 14px); }

/* 5) HEADER */
.site-header { position: sticky; top: 0; z-index: 100; height: var(--header-h); background: var(--sand); border-bottom: 1px solid var(--line); transition: box-shadow .3s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(8,40,59,.6); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 1.25rem; }
.brand img { height: 46px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: .4rem; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; }
.nav__list a { display: block; padding: .5rem .55rem; font-size: .92rem; font-weight: 600; color: var(--sea-2); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.nav__list a:hover { color: var(--rust); }
.nav__list a[aria-current="page"] { color: var(--rust); border-bottom-color: var(--rust); }
.nav__actions { display: flex; align-items: center; gap: .7rem; margin-left: .4rem; }
.lang { display: flex; gap: .15rem; font-weight: 700; font-size: .8rem; }
.lang a { padding: .3rem .4rem; color: var(--mut); text-decoration: none; }
.lang a:hover { color: var(--sea); }
.lang a[aria-current="true"] { color: var(--sea); box-shadow: inset 0 -2px 0 var(--rust); }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--sea); border: 1px solid var(--line); }
.icon-btn:hover { background: var(--sea); color: #fff; }
.icon-btn svg { width: 18px; height: 18px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius); width: 46px; height: 46px; cursor: pointer; color: var(--sea); }
.nav-toggle span { display: block; width: 20px; height: 2px; background: currentColor; margin: 5px auto; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1280px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: var(--header-h) 0 0 0; background: var(--sand); flex-direction: column; align-items: stretch; padding: 1.25rem var(--gutter) 2rem; overflow-y: auto; margin: 0;
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease); }
  .nav__list { flex-direction: column; order: 2; }
  .nav__list a { font-size: 1.4rem; font-weight: 800; font-stretch: 90%; color: var(--sea); padding: .75rem 0; border-bottom: 1px solid var(--line); }
  .nav__list a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav__actions { order: 3; margin: 1.75rem 0 0; flex-wrap: wrap; }
  .nav__actions .btn { flex: 1 1 auto; }
  .nav .lang { order: 1; margin-bottom: 1rem; font-size: .95rem; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 520px) { .brand img { height: 38px; } }

/* 6) COMPONENTI */
.btn { --bg: var(--sea); --fg: #fff; --bd: var(--sea);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 50px; padding: .85rem 1.5rem; border-radius: var(--radius);
  font: 700 .98rem/1.1 var(--ff); text-decoration: none; cursor: pointer; background: var(--bg); color: var(--fg); border: 2px solid var(--bd);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.btn:hover { color: var(--fg); transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--rust, .btn--primary { --bg: var(--rust); --bd: var(--rust); }
.btn--rust:hover, .btn--primary:hover { --bg: var(--rust-2); --bd: var(--rust-2); }
.btn--sea, .btn--dark { --bg: var(--sea); --bd: var(--sea); }
.btn--sea:hover, .btn--dark:hover { --bg: var(--sea-2); --bd: var(--sea-2); }
.btn--white { --bg: #fff; --fg: var(--sea); --bd: #fff; }
.btn--white:hover { --bg: var(--sand); --bd: var(--sand); }
.btn--ghost { --bg: transparent; --fg: var(--sea); --bd: var(--sea); }
.btn--ghost:hover { --bg: var(--sea); --fg: #fff; }
.btn--ghost-light { --bg: transparent; --fg: #fff; --bd: rgba(255,255,255,.6); }
.btn--ghost-light:hover { --bg: #fff; --fg: var(--sea); --bd: #fff; }
.btn--wa { --bg: var(--wa); --bd: var(--wa); }
.btn--wa:hover { --bg: #12663A; --bd: #12663A; }
.btn--sm { min-height: 40px; padding: .55rem 1rem; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.text-link { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .95rem; text-decoration: none; color: var(--sea); border-bottom: 2px solid var(--rust); padding-bottom: 1px; }
.text-link svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }
.section--sea .text-link, .panel .text-link { color: #fff; border-color: var(--sky); }

/* Schede "container" */
.boxes { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .boxes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .boxes { grid-template-columns: repeat(3, 1fr); } }
.box { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .35s var(--ease); }
.box:hover { transform: translateY(-3px); }
.box__top { height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 1.25rem; color: #fff; font-weight: 700; letter-spacing: .14em; font-size: .8rem;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0) 0 12px, rgba(255,255,255,.14) 12px 15px); }
.box__top svg { width: 26px; height: 26px; }
.c1 { background-color: var(--sea); } .c2 { background-color: #1D86BD; } .c3 { background-color: var(--rust); }
.c4 { background-color: var(--sea-2); } .c5 { background-color: #3D7EA6; } .c6 { background-color: #8A4B2E; }
.box__body { padding: 1.5rem 1.4rem 1.6rem; display: flex; flex-direction: column; flex: 1; }
.box__body h3 { margin-bottom: .45rem; }
.box__body p { margin: 0 0 1.1rem; color: var(--mut); }
.box__body .text-link { margin-top: auto; align-self: flex-start; }
.modes { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .modes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .modes { grid-template-columns: repeat(4, 1fr); } }
.mode__art { padding: 1.4rem 1.4rem 0; }
.mode__art img { width: 100%; }
.mode__best { font-size: .94rem; color: var(--ink) !important; border-top: 1px solid var(--line); padding-top: .9rem; margin-top: auto !important; }
.modes-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem 2rem; margin-top: 2rem; }
.mnote { margin: 0; color: var(--mut); font-size: .95rem; border-left: 3px solid var(--rust); padding-left: .9rem; max-width: 62ch; }

/* Card generiche (valori) */
.cards { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--4 { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border-radius: var(--radius); padding: 1.8rem 1.6rem; box-shadow: var(--shadow); border-top: 4px solid var(--rust); }
.card p { color: var(--mut); margin: 0; }
.tile { width: 50px; height: 50px; border-radius: var(--radius); display: grid; place-items: center; background: var(--sea); color: #fff; margin-bottom: 1.1rem; }
.tile svg { width: 24px; height: 24px; }

/* Servizi estesi */
.service { display: grid; gap: 1.5rem 3rem; padding-block: clamp(2rem, 4vw, 2.75rem); border-top: 2px solid var(--sand-2); }
.service:last-of-type { border-bottom: 2px solid var(--sand-2); }
@media (min-width: 900px) { .service { grid-template-columns: 90px 1fr 1fr; align-items: start; } }
.service__num { font-weight: 800; font-stretch: 75%; font-size: 3rem; line-height: 1; color: var(--rust); }
.service h2 { font-size: var(--step-2); margin-bottom: .6rem; }
.service__benefit { background: #fff; padding: 1.25rem 1.4rem; border-radius: var(--radius); box-shadow: var(--shadow); border-left: 4px solid var(--az); }
.service__benefit strong { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--az-txt); margin-bottom: .3rem; }
.service__benefit p { margin: 0 0 .9rem; }

/* Motivi */
.reasons { list-style: none; padding: 0; margin: 0; counter-reset: r; }
.reasons li { counter-increment: r; display: grid; grid-template-columns: 70px 1fr; padding: 1.3rem 0; border-top: 2px solid var(--sand-2); }
.reasons li::before { content: counter(r, decimal-leading-zero); font-stretch: 75%; font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--rust); }
.reasons strong { display: block; font-size: 1.15rem; color: var(--sea); }
.reasons span { color: var(--mut); }

/* Striscia dati */
.strip { background: var(--sea); color: #fff; }
.facts { display: grid; grid-template-columns: 1fr; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { display: flex; gap: .9rem; align-items: flex-start; padding: 1.6rem 1.5rem; }
@media (min-width: 760px) { .fact { border-left: 1px solid var(--line-w); } .fact:first-child { border-left: 0; padding-left: 0; } }
@media (max-width: 759px) { .fact + .fact { border-top: 1px solid var(--line-w); } .fact { padding-inline: 0; } }
.fact svg { width: 26px; height: 26px; color: var(--sky); flex: 0 0 auto; margin-top: 2px; }
.fact strong { display: block; font-size: 1.1rem; font-stretch: 92%; }
.fact span { color: rgba(255,255,255,.75); font-size: .94rem; }

/* Mappa rotte */
.rmap { position: relative; }
.rmap img { width: 100%; }
.rmap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.routes-l path { fill: none; stroke: var(--sky); stroke-width: 2; stroke-dasharray: 6 7; opacity: .9; }
.map-figure { margin: 0; }
.map-figure > img { width: 100%; }
.map-legend { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 1.4rem; font-size: .9rem; color: var(--mut); }
.section--sea .map-legend { color: rgba(255,255,255,.78); }
.map-legend span { display: inline-flex; align-items: center; gap: .55rem; }
.map-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-hq { background: var(--rust); box-shadow: 0 0 0 4px rgba(184,78,41,.3); } .dot-eu { background: var(--sky); } .dot-rest { background: rgba(255,255,255,.5); }
.dot-hq-w { background: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.3); } .dot-w { background: #fff; } .dot-w2 { background: rgba(255,255,255,.4); }
.map-legend i.dash { width: 24px; height: 0; border-radius: 0; border-top: 2px dashed var(--sky); }
.map-note { font-size: .86rem; color: var(--mut); margin-top: .8rem; }
.section--sea .map-note { color: rgba(255,255,255,.72); }

/* Pannelli mercati */
.duo { display: grid; gap: 1.4rem; grid-template-columns: 1fr; margin-top: 3rem; }
@media (min-width: 900px) { .duo { grid-template-columns: 1fr 1fr; } }
.panel { display: block; text-decoration: none; background: rgba(255,255,255,.06); border: 1px solid var(--line-w); border-radius: var(--radius); padding: 2rem; color: rgba(255,255,255,.82); transition: background .3s; }
.panel:hover { background: rgba(255,255,255,.1); color: #fff; }
.panel .tag { color: var(--sky); font-weight: 700; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; }
.panel h3 { font-size: var(--step-2); color: #fff; margin: .5rem 0; }

/* Settori */
.cats { display: grid; gap: 1.4rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 1000px) { .cats { grid-template-columns: repeat(4, 1fr); } }
.cat { background: #fff; border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.cat img { width: 100%; height: 120px; object-fit: contain; margin-bottom: 1rem; }
.cat h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.cat p { color: var(--mut); font-size: .95rem; margin: 0 0 1rem; }
.cat .text-link { margin-top: auto; align-self: flex-start; }
.sectors { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .sectors { grid-template-columns: repeat(2, 1fr); } }
.sector { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.sector__art { background: var(--sand-2); aspect-ratio: 16 / 9; display: grid; place-items: center; position: relative; }
.sector__art img { width: 60%; max-height: 80%; }
.sector__art .label { position: absolute; left: 1.1rem; top: 1rem; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--rust); }
.sector__body { padding: 1.6rem 1.7rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.sector__body h2 { font-size: var(--step-2); }
.sector__body p { color: var(--mut); }
.sector__body .btn { margin-top: auto; align-self: flex-start; }
.sector--open { background: var(--sea); color: #fff; }
.sector--open h2 { color: #fff; } .sector--open p { color: rgba(255,255,255,.82); } .sector--open .eyebrow { color: var(--sky); }

/* Passi */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem; counter-reset: s; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps--3 { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: #fff; border-radius: var(--radius); padding: 1.6rem 1.5rem; counter-increment: s; box-shadow: var(--shadow); }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font-stretch: 75%; font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--rust); margin-bottom: .8rem; }
.steps strong { display: block; color: var(--sea); margin-bottom: .35rem; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--mut); font-size: .96rem; }

/* Checklist, avvisi, segnaposto */
.checklist { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .75rem; }
.checklist li { position: relative; padding-left: 1.9rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; background: var(--rust); border-radius: 2px; box-shadow: inset 0 0 0 3px #fff, 0 0 0 1px var(--rust); }
.section--sea .checklist li::before { box-shadow: inset 0 0 0 3px var(--sea), 0 0 0 1px var(--sky); background: var(--sky); }
.notice { background: #fff; border-left: 4px solid var(--rust); padding: 1.2rem 1.4rem; border-radius: var(--radius); font-size: .96rem; box-shadow: var(--shadow); }
.notice strong { color: var(--sea); }
.notice p:last-child { margin: 0; }
.placeholder { border: 2px dashed var(--rust); background: repeating-linear-gradient(-45deg, rgba(184,78,41,.06) 0 10px, transparent 10px 20px); padding: 1.3rem 1.5rem; border-radius: var(--radius); }
.placeholder::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 700; letter-spacing: .16em; color: var(--rust); margin-bottom: .4rem; text-transform: uppercase; }
.ph { background: rgba(184,78,41,.14); border-bottom: 1px dashed var(--rust); padding: 0 .2em; }
.statement { font-size: var(--step-3); font-weight: 800; font-stretch: 88%; line-height: 1.1; color: var(--sea); max-width: 24ch; margin: 0; }
.statement em { font-style: normal; color: var(--az); }
.intermodal { border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; box-shadow: var(--shadow); aspect-ratio: 16 / 8; }
.intermodal img { width: 100%; height: 100%; object-fit: cover; object-position: 75% 100%; }

/* 7) HERO HOME
   L'illustrazione ha un'altezza massima (--sh) ed è ancorata a destra: su schermi larghi
   non si ingrandisce; cielo, mare e banchina proseguono con lo sfondo fino al bordo sinistro. */
.hero { --sh: clamp(560px, 48vw, 690px); position: relative; overflow: hidden; height: var(--sh);
  background: linear-gradient(180deg,
    #F4EEE4 0, #DCEAF0 calc(var(--sh) * .70), #DCEAF0 calc(var(--sh) * .729),
    #2A9FD6 calc(var(--sh) * .729), #114B6E calc(var(--sh) * .776), #0C3D5A calc(var(--sh) * .823),
    #B9AE9B calc(var(--sh) * .823), #B9AE9B calc(var(--sh) * .831),
    #DCD3C4 calc(var(--sh) * .831), #DCD3C4 calc(var(--sh) * .865),
    #CEC4B2 calc(var(--sh) * .865), #CEC4B2 calc(var(--sh) * .91),
    #DCD3C4 calc(var(--sh) * .91), #DCD3C4 calc(var(--sh) * .957),
    #6F675A calc(var(--sh) * .957), #6F675A calc(var(--sh) * .961),
    #DCD3C4 calc(var(--sh) * .961), #DCD3C4 calc(var(--sh) * .966),
    #6F675A calc(var(--sh) * .966), #6F675A calc(var(--sh) * .97),
    #DCD3C4 calc(var(--sh) * .97)); }
.hero__scene { position: absolute; right: 0; bottom: 0; height: 100%; width: auto; max-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%); mask-image: linear-gradient(90deg, transparent 0, #000 8%); }
.hero__txt { position: relative; z-index: 1; padding-top: clamp(2rem, 3.5vw, 3rem); }
.hero h1 { font-size: clamp(2.3rem, 1.3rem + 2.5vw, 4.3rem); letter-spacing: -.02em; max-width: none; margin-bottom: .35em; }
.hero h1 em { display: block; }
.hero__sub { font-size: var(--step-1); color: var(--sea-2); max-width: 30em; margin-bottom: 1.5rem; }
.hero__wa { margin-top: 1rem; font-size: .95rem; }
.hero__wa a { display: inline-flex; align-items: center; gap: .5rem; color: var(--sea); font-weight: 600; text-decoration: none; }
.hero__wa svg { width: 18px; height: 18px; color: var(--wa); }
@media (max-width: 999px) {
  .hero { height: auto; background: linear-gradient(180deg, var(--sand) 0%, #DCEAF0 100%); }
  .hero__scene { position: relative; display: block; width: 100%; height: 300px; object-fit: cover; object-position: 78% 100%; -webkit-mask-image: none; mask-image: none; }
  .hero__txt { padding-bottom: 2rem; }
  .hero h1 em { display: inline; }
}

/* Hero pagine interne */
.page-hero { position: relative; background: var(--sea); color: rgba(255,255,255,.88); overflow: hidden; isolation: isolate; }
.page-hero .wrap { padding-block: clamp(3rem, 7vw, 5rem); position: relative; }
.page-hero h1 { color: #fff; max-width: 20ch; font-size: clamp(2.1rem, 1.6rem + 2.4vw, 3.6rem); }
.page-hero h1 em { color: var(--sky); }
.page-hero p { max-width: 58ch; font-size: var(--step-1); color: rgba(255,255,255,.85); margin: 0; }
.page-hero p.eyebrow { font-size: .8rem; margin-bottom: 1rem; }
.page-hero__art { position: absolute; z-index: -1; right: -4%; top: 50%; transform: translateY(-50%); width: min(720px, 60%); opacity: .45; pointer-events: none; }
.page-hero__art img[src*="e-mode"] { filter: brightness(0) invert(1); opacity: .5; }
@media (max-width: 760px) { .page-hero__art { width: 120%; right: -45%; opacity: .22; } }
.breadcrumb { font-size: .84rem; margin-bottom: 1.2rem; color: rgba(255,255,255,.72); }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .6; }
.breadcrumb a { color: #fff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero--legal .wrap { padding-block: clamp(2.5rem, 5vw, 3.5rem); }

/* CTA */
.cta { background: var(--rust); color: rgba(255,255,255,.9); }
.cta .wrap { padding-block: clamp(4rem, 8vw, 6rem); display: grid; gap: 2rem; }
@media (min-width: 900px) { .cta .wrap { grid-template-columns: 1.2fr 1fr; align-items: end; } }
.cta h2 { color: #fff; max-width: 20ch; margin: 0; }
.cta h2 em { color: #FFE2CF; }
.cta p { margin-bottom: 1.5rem; font-size: var(--step-1); }

/* Social */
.follow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2rem clamp(1.5rem, 4vw, 2.5rem); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.follow h2 { font-size: var(--step-2); margin: 0 0 .3rem; }
.follow p { margin: 0; color: var(--mut); }

/* Contatti */
.contact-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: .9fr 1.1fr; } }
.contact-card { background: var(--sea); color: #fff; border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 2.5rem); border-top: 6px solid var(--rust); }
.contact-card h2 { color: #fff; font-size: var(--step-2); }
.contact-list { list-style: none; padding: 0; margin: 1.4rem 0; }
.contact-list li { display: grid; grid-template-columns: 40px 1fr; gap: .9rem; padding: .95rem 0; border-top: 1px solid var(--line-w); }
.contact-list li:last-child { border-bottom: 1px solid var(--line-w); }
.contact-list svg { width: 22px; height: 22px; color: var(--sky); margin-top: 3px; }
.contact-list small { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.62); font-weight: 700; margin-bottom: .1rem; }
.contact-list a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); word-break: break-word; }
.contact-list a:hover { border-color: #fff; }
.map-link { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; padding: 1rem 1.15rem; border: 1px solid var(--line-w); border-radius: var(--radius); color: #fff; text-decoration: none; }
.map-link:hover { background: rgba(255,255,255,.08); color: #fff; }
.map-link svg { width: 34px; height: 34px; flex: 0 0 auto; color: var(--sky); }
.map-link small { display: block; color: rgba(255,255,255,.7); font-size: .82rem; }

/* 8) FOOTER */
.site-footer { background: var(--sea-3); color: rgba(255,255,255,.75); font-size: .95rem; padding-top: clamp(3.5rem, 7vw, 5rem); }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1fr; padding-bottom: 3rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.35fr .9fr 1.3fr 1fr; } }
.site-footer h2 { font-size: .78rem; font-weight: 700; font-stretch: 100%; letter-spacing: .16em; text-transform: uppercase; color: var(--sky); margin: 0 0 1.2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: rgba(255,255,255,.9); text-decoration: none; }
.site-footer a:hover { color: var(--sky); }
.footer-brand img { height: 48px; width: auto; margin-bottom: 1.2rem; }
.footer-brand p { max-width: 34ch; }
.footer-brand .payoff { font-weight: 800; font-stretch: 90%; color: #fff; font-size: 1.1rem; }
.footer-contacts li { display: grid; grid-template-columns: 20px 1fr; gap: .7rem; }
.footer-contacts svg { width: 16px; height: 16px; color: var(--sky); margin-top: 4px; }
.footer-social { display: flex; gap: .6rem; margin-bottom: 1.2rem; }
.footer-social .icon-btn { color: #fff; border-color: var(--line-w); }
.footer-social .icon-btn:hover { background: #fff; color: var(--sea); }
.footer-langs { display: flex; gap: .4rem; margin-top: 1.4rem; }
.footer-langs a { font-size: .82rem; font-weight: 700; padding: .25rem .55rem; border: 1px solid var(--line-w); border-radius: var(--radius); }
.footer-langs a[aria-current="true"] { background: #fff; color: var(--sea); }
.footer-bottom { border-top: 1px solid var(--line-w); padding-block: 1.5rem 2rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; font-size: .85rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.footer-bottom button { background: none; border: 0; padding: 0; color: rgba(255,255,255,.9); font: inherit; cursor: pointer; }
.footer-bottom button:hover { color: var(--sky); }
.footer-legal { font-size: .8rem; color: rgba(255,255,255,.55); width: 100%; }
.site-footer .ph { color: #fff; background: rgba(255,255,255,.12); }

/* 9) MODULI */
.form { background: #fff; border-radius: var(--radius); padding: clamp(1.6rem, 4vw, 2.5rem); box-shadow: var(--shadow); }
.form h2 { font-size: var(--step-2); }
.form-grid { display: grid; gap: 1.1rem 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .9rem; font-weight: 700; color: var(--sea); }
.field .opt { font-weight: 400; color: var(--mut); }
.field input:not([type="checkbox"]), .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--sand); border: 1px solid rgba(11,57,84,.25); border-radius: var(--radius); padding: .8rem .9rem; min-height: 48px; width: 100%; transition: border-color .2s, background .2s, box-shadow .2s; }
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230B3954' stroke-width='1.8'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px; padding-right: 2.5rem; }
.field input:not([type="checkbox"]):focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--az); background: #fff; box-shadow: 0 0 0 3px rgba(42,159,214,.22); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--err); }
.field .error { color: var(--err); font-size: .86rem; }
.field .error:empty { display: none; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: .7rem; align-items: start; font-size: .94rem; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--sea); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.6rem; }
.form-hint { font-size: .86rem; color: var(--mut); margin: 0; }
.form-status { margin-top: 1.4rem; padding: 1rem 1.2rem; border-radius: var(--radius); font-size: .95rem; }
.form-status:empty { display: none; }
.form-status.is-ok { background: #E8F4EC; color: var(--ok); border: 1px solid #BFDFCB; }
.form-status.is-err { background: #FBEAE8; color: var(--err); border: 1px solid #F0C4BF; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.btn[aria-busy="true"]::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 10) COOKIE */
.cookie-banner { position: fixed; z-index: 150; left: 1rem; right: 1rem; bottom: 1rem; max-width: 760px; margin-inline: auto; background: #fff; border-radius: 6px; box-shadow: 0 18px 50px -20px rgba(8,40,59,.5); padding: 1.4rem 1.5rem; display: grid; gap: 1rem; border-top: 4px solid var(--rust); }
.cookie-banner[hidden], .cookie-modal[hidden] { display: none; }
.cookie-banner h2 { font-size: 1.1rem; margin: 0; }
.cookie-banner p { margin: 0; font-size: .92rem; }
.cookie-banner .btn-row .btn { flex: 1 1 140px; }
.cookie-modal { position: fixed; inset: 0; z-index: 160; background: rgba(8,40,59,.55); display: grid; place-items: center; padding: 1rem; }
.cookie-modal__box { background: #fff; border-radius: 6px; max-width: 620px; width: 100%; max-height: 90vh; overflow: auto; padding: clamp(1.4rem, 4vw, 2.2rem); }
.cookie-modal h2 { font-size: var(--step-2); }
.cookie-cat { border-top: 1px solid var(--line); padding: 1rem 0; display: grid; grid-template-columns: 1fr auto; gap: .3rem 1rem; align-items: center; }
.cookie-cat p { grid-column: 1 / -1; margin: 0; font-size: .9rem; color: var(--mut); }
.cookie-cat strong { color: var(--sea); }
.switch { position: relative; width: 46px; height: 26px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #C9C2B5; transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.switch input:checked + span { background: var(--sea); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled + span { background: var(--az); opacity: .6; }
.switch input:focus-visible + span { outline: 2px solid var(--rust); outline-offset: 2px; }

/* 11) WHATSAPP */
.wa-float { position: fixed; z-index: 90; right: clamp(.9rem, 2.5vw, 1.6rem); bottom: calc(clamp(.9rem, 2.5vw, 1.6rem) + var(--banner-offset)); width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(15,80,45,.55); transition: transform .3s var(--ease), opacity .3s var(--ease), bottom .3s var(--ease); }
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float svg { width: 28px; height: 28px; }
.wa-float.is-hidden { opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; }
.wa-float .wa-tip { position: absolute; right: calc(100% + 10px); white-space: nowrap; background: var(--sea); color: #fff; font-size: .8rem; font-weight: 600; padding: .45rem .7rem; border-radius: var(--radius); opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; pointer-events: none; }
.wa-float:hover .wa-tip, .wa-float:focus-visible .wa-tip { opacity: 1; transform: none; }
@media (hover: none) { .wa-float .wa-tip { display: none; } }

/* 12) UTILITY / MOTION */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.muted { color: var(--mut); }
[data-fb][hidden], [data-wa][hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .wa-float, .cookie-banner, .cta { display: none !important; } }

/* Categoria residuale (home) */
.cat-other { margin-top: 1.4rem; background: var(--sea); color: rgba(255,255,255,.85); border-radius: var(--radius); padding: 1.8rem 2rem; display: grid; gap: 1.2rem 2.5rem; align-items: center; border-left: 6px solid var(--rust); }
@media (min-width: 900px) { .cat-other { grid-template-columns: 1fr auto; } }
.cat-other .eyebrow { color: var(--sky); margin-bottom: .4rem; }
.cat-other h3 { color: #fff; font-size: var(--step-2); margin-bottom: .4rem; }
.cat-other p { margin: 0; max-width: 62ch; }

@media (min-width: 700px) { .sector--open { grid-column: 1 / -1; } .sector--open .sector__body { padding: 2rem 2.2rem; } }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ===== 20) OTTIMIZZAZIONE SMARTPHONE ===== */
@media (max-width: 699px) {
  .section { padding-block: 3.2rem; }
  .section--tight { padding-block: 2.6rem; }
  h2 { overflow-wrap: break-word; hyphens: auto; }
  /* aree di tocco comode (min. 44px) */
  .text-link { min-height: 44px; padding-block: .55rem .35rem; }
  .lang a, .nav .lang a { padding: .75rem .8rem; min-height: 44px; display: inline-flex; align-items: center; }
  .site-footer button { padding-block: .6rem; }
  .site-footer li a, .footer-legal a, .site-footer nav a { display: inline-block; padding-block: .55rem; }
  .contact-list a { display: inline-block; padding-block: .5rem; }
  .btn { min-height: 48px; }
  .hero .btn, .cta .btn, .cat-other .btn { width: 100%; justify-content: center; }
  /* testi piccoli più leggibili */
  small, .footer-legal { font-size: .82rem; }
  /* mappa Europa nella sezione azienda: più compatta */
  .map-figure > img[src*="europe-light"] { max-height: 260px; object-fit: contain; }
  /* trasporti: illustrazione accanto al titolo invece che sopra */
  .mode { display: grid; grid-template-columns: 96px 1fr; }
  .mode .box__top { grid-column: 1 / -1; }
  .mode__art { padding: 1.3rem 0 0 1.1rem; align-self: start; }
  .mode__art img { width: 96px; height: auto; }
  .mode .box__body { padding-left: 1rem; }
  .mode .mode__best { grid-column: auto; }
  /* settori in home: una colonna, icona a sinistra */
  .cats { grid-template-columns: 1fr; gap: 1rem; }
  .cat { display: grid; grid-template-columns: 76px 1fr; column-gap: 1.1rem; padding: 1.2rem; align-items: start; }
  .cat img { grid-row: 1 / span 3; width: 76px; height: 76px; margin: 0; }
  .cat p { margin-bottom: .4rem; }
  .cat .text-link, .box__body .text-link { justify-self: start; align-self: start; min-height: 40px; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: calc(14px + var(--banner-offset)); }
  /* pagina settori: illustrazione meno alta */
  .sector__art { aspect-ratio: auto; height: 150px; }
  .sector__body { padding: 1.3rem 1.3rem 1.5rem; }
  .cat-other { padding: 1.5rem 1.3rem; }
  /* hero delle pagine interne: illustrazione dentro lo schermo */
  .page-hero { overflow: hidden; }
  .page-hero__art { width: 90%; right: -20%; }
  /* modulo: campi più alti, niente zoom automatico su iPhone */
  input, select, textarea { font-size: 16px !important; }
  .field input[type="checkbox"], .check input { width: 24px; height: 24px; }
  .steps li { padding-right: 0; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 2.05rem; }
  .wrap { padding-inline: 1rem; }
}

/* ===== 21) Contrasto testi (WCAG AA) ===== */
:root { --az-text: #1B7DB0; --rust-text: #A8461F; }
h1 em, h2 em, .statement em { color: var(--az-text); }
.eyebrow, .sector__art .label { color: var(--rust-text); }
.section--sea h2 em, .page-hero h1 em, .page-hero h2 em, .sector--open h2 em, .cat-other h3 em { color: var(--sky); }
.section--sea .eyebrow, .page-hero .eyebrow, .sector--open .eyebrow, .cat-other .eyebrow { color: var(--sky); }
