/* =========================================================================
   D&D Trasporti — foglio di stile
   I colori sono quelli del logo (cerchio magenta, 05-11-2026):
   magenta #E6007E, magenta scuro #BE0C74, grigio del testo #3C3C3C.
   Le superfici scure sono quel grigio portato in profondita'. Un solo colore
   per l'azione, ovunque: #BE0C74.
   Contrasti misurati (WCAG AA):
     bianco su #BE0C74 = 6,01 · #FF5FAE su #1C1C1C = 6,09
     #666666 su bianco = 5,74 · #BE0C74 su #FCE8F2 = 5,14
   Inter e' servito dal nostro dominio: nessuna chiamata a Google.
   ========================================================================= */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter.woff2") format("woff2-variations"), url("fonts/inter.woff2") format("woff2");
}

:root {
  /* marchio */
  --brand: #BE0C74;          /* azione: il magenta scuro del logo (bianco sopra 6,01) */
  --brand-ink: #A00A62;      /* hover */
  --brand-logo: #E6007E;     /* il magenta del logo: accenti, linee */
  --brand-light: #FF5FAE;    /* magenta per testo e spunte su fondo scuro (6,09) */
  --brand-soft: #FCE8F2;     /* fondi tenui di icone e chip */

  /* superfici scure: il grigio del logo portato in profondita' */
  --ink: #1C1C1C;
  --ink-deep: #141414;
  --ink-line: #363636;

  /* neutri */
  --ink-2: #3C3C3C;
  --muted: #666666;          /* su bianco fa 5,74 */
  --paper: #FFFFFF;
  --paper-2: #F5F5F5;
  --field: #FAFAFA;
  --white: #FFFFFF;
  --line: #E5E5E5;
  --line-2: #CFCFCF;
  --ok: #2F6B4F;
  --err: #B3261E;

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-s: 4px;
  --r-m: 6px;
  --r-l: 10px;

  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 40px);
  --sec: clamp(64px, 8.5vw, 112px);

  --shadow: 0 1px 2px rgba(28, 28, 28, .05), 0 10px 30px rgba(28, 28, 28, .08);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--brand); color: #fff; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-s); }
.skip:focus { top: 16px; }

/* Sulle superfici scure il grassetto non eredita il colore quasi nero */
.section-dark strong, .hero strong, .facts-band strong, .cta strong, .page-hero strong, .site-footer strong { color: #fff; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; letter-spacing: -.022em; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(36px, 4.8vw, 60px); }
h2 { font-size: clamp(28px, 3.1vw, 40px); }
h3 { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.3; letter-spacing: -.012em; font-weight: 650; }
h1 em, h2 em { font-style: normal; color: var(--brand); }
.hero h1 em, .page-hero h1 em, .section-dark h2 em, .cta h2 em { color: var(--brand-light); }
p { margin: 0 0 1em; }
.lead { font-size: clamp(16.5px, 1.25vw, 18.5px); line-height: 1.6; color: var(--ink-2); max-width: 40em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--brand-logo); }
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--brand-light); }
.muted { color: var(--muted); }

/* ---------- Bottoni ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: var(--r-m); border: 1px solid transparent; font-weight: 650; font-size: 15px; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn-brand { background: var(--brand); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 6px 16px rgba(190, 12, 116, .22); }
.btn-brand:hover { background: var(--brand-ink); }
.btn-ink { background: var(--brand); color: #fff; }
.btn-ink:hover { background: var(--brand-ink); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper-2); }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,.06); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; font-size: 15px; color: var(--brand); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Barra superiore e header ---------- */
.topbar { background: var(--ink-deep); color: rgba(255,255,255,.72); font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar-links, .topbar-info { display: flex; gap: 22px; align-items: center; }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--brand-light); }
.topbar svg { width: 14px; height: 14px; color: var(--brand-light); flex: none; }
.topbar-info span { display: inline-flex; align-items: center; gap: 7px; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .3s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(28, 28, 28, .07); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
/* Il logo esce dal bianco: pannello scuro con il taglio obliquo, come una fiancata */
.logo { position: relative; display: inline-flex; align-items: center; gap: 12px; flex: none; align-self: stretch; padding-right: 40px; isolation: isolate; }
.logo::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; left: -100vw; background: var(--ink); clip-path: polygon(0 0, 100% 0, calc(100% - 26px) 100%, 0 100%); z-index: -1; }
.logo-mark { display: block; width: 56px; height: 56px; flex: none; }
.logo-mark img { width: 100%; height: 100%; border-radius: 50%; }
.logo-text { display: flex; flex-direction: column; line-height: 1; color: #fff; }
.logo-text strong { font-weight: 750; font-size: 19px; letter-spacing: -.02em; }
.logo-text span { font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 5px; }
.site-footer .logo { align-self: auto; padding-right: 0; }
.site-footer .logo::before { display: none; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a:not(.btn) { position: relative; padding: 9px 13px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); border-radius: var(--r-s); transition: color .2s var(--ease), background-color .2s var(--ease); }
.nav a:not(.btn):hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"]:not(.btn) { color: var(--brand); background: var(--brand-soft); }
.nav .btn { margin-left: 12px; min-height: 44px; padding: 0 18px; font-size: 14.5px; }
.menu-toggle { display: none; }

@media (max-width: 1060px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: #fff; cursor: pointer; }
  .menu-toggle span { position: relative; width: 18px; height: 1.5px; background: var(--ink); transition: background .2s; }
  .menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
  .menu-toggle span::before { top: -6px; }
  .menu-toggle span::after { top: 6px; }
  .menu-open .menu-toggle span { background: transparent; }
  .menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); }
  .menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
}
@media (max-width: 760px) {
  .topbar-info, .topbar .topbar-hide-m { display: none; }
  .site-header .wrap { height: 66px; }
  .logo { padding-right: 32px; gap: 10px; }
  .logo-mark { width: 46px; height: 46px; }
  .logo-text strong { font-size: 17px; }
}

.mobile-menu { position: fixed; inset: 0; z-index: 45; background: #fff; padding: 118px var(--gut) 40px; display: flex; flex-direction: column; gap: 28px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; overflow-y: auto; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
.menu-open { overflow: hidden; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a { display: flex; justify-content: space-between; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 21px; font-weight: 650; letter-spacing: -.015em; }
.mobile-menu nav a small { font-size: 12px; font-weight: 700; color: var(--brand); letter-spacing: .1em; }
.mobile-menu .btn { width: 100%; }
.mobile-menu-contacts { display: grid; gap: 10px; }

/* ---------- Hero home ---------- */
.hero { position: relative; color: #fff; background: var(--ink); isolation: isolate; overflow: hidden; }
.hero-frame { position: relative; min-height: min(80svh, 740px); display: flex; align-items: center; }
.hero-frame picture, .hero-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-frame::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,20,20,.92) 0%, rgba(20,20,20,.78) 40%, rgba(20,20,20,.25) 75%, rgba(20,20,20,.1) 100%); }
.hero-content { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--gut); }
.hero h1 { max-width: 15ch; }
.hero .lead { color: rgba(255,255,255,.82); margin: 20px 0 30px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-checks { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 12px 36px; }
.hero-checks li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 550; color: rgba(255,255,255,.9); }
.hero-checks svg { width: 18px; height: 18px; color: var(--brand-light); flex: none; }
@media (max-width: 720px) {
  .hero-frame { min-height: 0; }
  .hero-frame img { object-position: 30% center; }
  .hero-frame::after { background: linear-gradient(180deg, rgba(20,20,20,.55) 0%, rgba(20,20,20,.82) 45%, rgba(20,20,20,.95) 100%); }
  .hero-content { padding-top: 120px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-checks { grid-template-columns: 1fr; margin-top: 28px; }
}

/* Striscia dei fatti */
.facts-band { background: var(--ink-deep); color: #fff; border-top: 1px solid var(--ink-line); }
.facts-band ul { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-band li { padding: 26px 24px 26px 0; }
.facts-band li + li { padding-left: 24px; border-left: 1px solid var(--ink-line); }
.facts-band strong { display: block; font-size: clamp(22px, 2.2vw, 28px); font-weight: 750; letter-spacing: -.02em; line-height: 1.15; }
.facts-band strong em { font-style: normal; color: var(--brand-light); }
.facts-band span { display: block; font-size: 13.5px; color: rgba(255,255,255,.62); margin-top: 6px; }
@media (max-width: 860px) {
  .facts-band ul { grid-template-columns: 1fr 1fr; }
  .facts-band li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts-band li:nth-child(n+3) { border-top: 1px solid var(--ink-line); }
}
@media (max-width: 420px) { .facts-band li, .facts-band li + li { padding: 20px 10px 20px 0; } .facts-band li + li { padding-left: 14px; } .facts-band li:nth-child(3) { padding-left: 0; } }

/* ---------- Sezioni ---------- */
.section { padding: var(--sec) 0; }
.section-alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--ink); color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { margin: 16px 0 0; }
.section-dark .lead { color: rgba(255,255,255,.72); }

/* Servizi */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 24px); }
.service-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; transition: box-shadow .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.service-card:hover { box-shadow: var(--shadow); border-color: var(--line-2); transform: translateY(-2px); }
.service-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.service-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.03); }
.service-num { position: absolute; top: 14px; left: 14px; padding: 4px 9px; border-radius: var(--r-s); background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.service-body { padding: clamp(22px, 2.6vw, 30px); display: flex; flex-direction: column; gap: 12px; flex: 1; }
.service-body h3 { font-size: clamp(20px, 1.8vw, 23px); }
.service-body p { color: var(--ink-2); margin: 0; font-size: 15.5px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 4px; padding: 0; list-style: none; }
.service-tags li { font-size: 12.5px; font-weight: 550; padding: 3px 9px; border-radius: var(--r-s); background: var(--paper-2); border: 1px solid var(--line); color: var(--ink-2); }
.service-body .link-arrow, .service-body .btn { margin-top: auto; padding-top: 6px; }
.service-card .stretched::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 760px) { .services { grid-template-columns: 1fr; } }

/* Perche' sceglierci + mappa */
.why { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.why-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.why-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.why-list svg { width: 20px; height: 20px; color: var(--brand); margin-top: 2px; }
.why-list strong { color: var(--ink); font-weight: 650; }
.map-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(14px, 2vw, 20px); }
.map-card svg.mappa { display: block; width: 100%; height: auto; }
.mappa .terra { fill: #F2F2F2; stroke: #D6D6D6; stroke-width: 1.2; }
.mappa .terra.coperta { fill: #FBE3EF; stroke: #EFA6CB; }
.mappa .reticolo { stroke: #F0F0F0; }
.mappa .tratta { fill: none; stroke: var(--brand); stroke-width: 1.6; stroke-dasharray: 4 4; opacity: .85; }
.mappa .estero { fill: none; stroke: var(--ink); stroke-width: 1.8; }
.mappa .freccia { fill: var(--ink); }
.mappa .arrivo { fill: #fff; stroke: var(--brand); stroke-width: 2; }
.mappa .sede-alone { fill: rgba(230, 0, 126, .16); }
.mappa .sede { fill: var(--brand); stroke: #fff; stroke-width: 3; }
.mappa .nome { font: 700 16px var(--sans); fill: var(--ink); }
.mappa .ruolo { font: 600 13px var(--sans); fill: var(--ink-2); }
/* alone bianco: le scritte restano leggibili anche sopra le tratte */
.mappa text { paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.map-legend { list-style: none; margin: 14px 0 0; padding: 14px 4px 2px; border-top: 1px solid var(--line); display: grid; gap: 9px; font-size: 13.5px; color: var(--ink-2); }
.map-legend strong { color: var(--ink); }
.map-legend li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: start; }
.map-legend i { display: block; margin-top: 9px; }
.map-legend .k-sede { width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: var(--brand); }
.map-legend .k-tratta { width: 22px; border-top: 2px dashed var(--brand); }
.map-legend .k-estero { width: 22px; border-top: 2px solid var(--ink); }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }

/* Come funziona: un percorso, non un elenco */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 28px; counter-reset: s; }
.path li { position: relative; counter-increment: s; }
.path li::before { content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-m); background: var(--ink); color: #fff; font-weight: 750; font-size: 15px; margin-bottom: 20px; position: relative; z-index: 1; }
.path li::after { content: ""; position: absolute; top: 20px; left: 52px; right: -16px; height: 2px; background: var(--brand-logo); }
.path li:last-child::after { display: none; }
.path h3 { margin-bottom: 8px; }
.path p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 900px) {
  .path { grid-template-columns: 1fr; gap: 0; }
  .path li { display: grid; grid-template-columns: 40px 1fr; gap: 0 18px; padding-bottom: 28px; }
  .path li::before { grid-row: span 2; margin: 0; }
  .path li::after { top: 48px; bottom: 6px; left: 19px; right: auto; width: 2px; height: auto; }
}

/* Clienti */
.clients { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: #fff; }
.clients li { list-style: none; display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 22px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients img { max-height: 50px; max-width: 100%; width: auto; opacity: .6; transition: opacity .3s var(--ease); }
.clients li:hover img { opacity: 1; }
.clients .tall img { max-height: 70px; }
.clients .thin img { max-height: 20px; }
.clients-grid { margin: 0; padding: 0; }
@media (max-width: 900px) { .clients { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .clients { grid-template-columns: repeat(2, 1fr); } .clients li { padding: 18px; } .clients img { max-height: 38px; } .clients .tall img { max-height: 56px; } .clients .thin img { max-height: 15px; } }

/* Domande frequenti */
.faq { max-width: 860px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 2px; cursor: pointer; list-style: none; font-weight: 650; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 9px; height: 9px; flex: none; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq summary:hover { color: var(--brand); }
.faq .faq-a { padding: 0 2px 22px; color: var(--ink-2); font-size: 15.5px; max-width: 70ch; }
.faq .faq-a p:last-child { margin-bottom: 0; }
.faq .faq-a a { color: var(--brand); font-weight: 600; }

/* CTA */
.cta { position: relative; border-radius: var(--r-l); overflow: hidden; background: var(--ink); color: #fff; padding: clamp(36px, 5.5vw, 64px) clamp(28px, 5vw, 64px); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px 48px; align-items: center; isolation: isolate; }
.cta::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--brand-logo); }
.cta p { color: rgba(255,255,255,.74); margin: 14px 0 0; }
.cta-actions { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: rgba(255,255,255,.68); padding: clamp(56px, 7vw, 88px) 0 0; font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 56px; }
.footer-grid h4 { font-size: 12px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a:hover { color: #fff; }
.footer-about p { margin: 20px 0 0; max-width: 32ch; }
.footer-bottom { border-top: 1px solid var(--ink-line); padding: 22px 0 26px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 12.5px; color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Pagine servizio ---------- */
.page-hero { background: var(--ink); color: #fff; padding: clamp(32px, 4vw, 52px) 0 clamp(48px, 6vw, 80px); }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 28px; }
.crumbs a:hover { color: #fff; }
.page-hero h1 { font-size: clamp(34px, 4.2vw, 54px); }
.page-hero .lead { color: rgba(255,255,255,.78); margin: 20px 0 26px; }
.page-hero .service-tags li { background: rgba(255,255,255,.06); border-color: var(--ink-line); color: rgba(255,255,255,.85); }
.page-hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.page-hero .btn-ghost:hover { border-color: #fff; }
.page-hero-media { position: relative; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 4 / 3; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-actions-inline { display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero.doc-hero { background: var(--paper-2); color: var(--ink); border-bottom: 1px solid var(--line); }
.doc-hero .crumbs { color: var(--muted); }
.doc-hero .crumbs a:hover { color: var(--ink); }
.page-hero.doc-hero .eyebrow { color: var(--brand); }
.page-hero.doc-hero .lead { color: var(--ink-2); }
.page-hero.doc-hero h1 em { color: var(--brand); }
@media (max-width: 900px) {
  .page-hero-grid { grid-template-columns: 1fr; }
  .page-hero-media { order: -1; }
  .crumbs { margin-bottom: 16px; }
}
@media (max-width: 520px) { .hero-actions-inline .btn { flex: 1 1 100%; } }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.features li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(22px, 2.6vw, 30px); }
.features svg { width: 42px; height: 42px; padding: 10px; border-radius: var(--r-m); background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; }
.features h3 { font-size: 17.5px; margin-bottom: 8px; }
.features p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 24px); }
.mode { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(26px, 3.4vw, 44px); display: flex; flex-direction: column; }
.mode-kicker { font-size: 12px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.mode h3 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 12px; }
.mode p { color: var(--ink-2); }
.mode ul { list-style: none; padding: 20px 0 0; margin: auto 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.mode li { display: flex; gap: 12px; font-size: 15px; }
.mode li svg { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: 2px; }
.mode-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.mode-dark p { color: rgba(255,255,255,.74); }
.mode-dark .mode-kicker, .mode-dark li svg { color: var(--brand-light); }
.mode-dark ul { border-color: var(--ink-line); }
@media (max-width: 760px) { .modes { grid-template-columns: 1fr; } }

/* ---------- Modulo preventivo ---------- */
.quote-grid { display: grid; grid-template-columns: 1fr 330px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.quote-aside { position: sticky; top: 104px; display: grid; gap: 14px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: 24px; }
.aside-card h4 { font-size: 16.5px; font-weight: 700; margin-bottom: 14px; }
.aside-card ol { margin: 0; padding: 0; list-style: none; counter-reset: a; display: grid; gap: 12px; }
.aside-card ol li { counter-increment: a; display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.aside-card ol li::before { content: counter(a); width: 24px; height: 24px; border-radius: var(--r-s); background: var(--brand-soft); color: var(--brand); font-weight: 750; font-size: 12.5px; display: grid; place-items: center; }
.aside-contact { display: grid; gap: 8px; }
.aside-contact a { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: var(--r-m); border: 1px solid var(--line); font-weight: 600; font-size: 14.5px; transition: border-color .2s var(--ease); }
.aside-contact a:hover { border-color: var(--ink); }
.aside-contact svg { width: 19px; height: 19px; color: var(--brand); flex: none; }
@media (max-width: 1000px) { .quote-grid { grid-template-columns: 1fr; } .quote-aside { position: static; grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .quote-aside { grid-template-columns: 1fr; } }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(22px, 4vw, 48px); }
.form-intro { margin-bottom: 30px; }
.form-intro h2 { font-size: clamp(26px, 2.8vw, 34px); margin-bottom: 10px; }
.form-intro p { color: var(--ink-2); margin: 0; }
.fs { border: 0; margin: 0; padding: 28px 0 0; border-top: 1px solid var(--line); }
.fs + .fs { margin-top: 32px; }
.fs legend { display: flex; align-items: center; gap: 12px; float: left; width: 100%; padding: 0; margin-bottom: 20px; font-size: 18px; font-weight: 700; letter-spacing: -.012em; }
.fs legend + * { clear: both; }
.fs legend .n { width: 28px; height: 28px; flex: none; border-radius: var(--r-s); background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 750; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.row + .row, .row + .field, .field + .row, .field + .field { margin-top: 16px; }
.row > .field + .field { margin-top: 0; }
.row-3 { grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 640px) { .row, .row-3 { grid-template-columns: 1fr; } .row > .field + .field { margin-top: 0; } }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label, .field > .label { font-size: 14px; font-weight: 650; color: var(--ink); }
.field .hint { font-size: 13.5px; color: var(--muted); margin-top: -2px; line-height: 1.5; }
.req { color: var(--brand); }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--field); font-size: 16px; line-height: 1.4; appearance: none; -webkit-appearance: none; transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease); }
.textarea { min-height: 132px; resize: vertical; }
.select { padding-right: 42px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%231C1C1C' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(190, 12, 116, .14); }
.input::placeholder, .textarea::placeholder { color: #A3A3A3; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--err); background: #fdf6f5; }
.field .err { display: none; font-size: 13.5px; color: var(--err); font-weight: 600; }
.field.invalid .err { display: block; }

.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; gap: 4px; border: 1px solid var(--line-2); border-radius: var(--r-m); background: var(--field); min-height: 48px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { display: grid; place-items: center; padding: 0 20px; min-width: 70px; border-radius: var(--r-s); font-weight: 650; font-size: 14.5px; cursor: pointer; color: var(--ink-2); transition: background-color .2s var(--ease), color .2s var(--ease); }
.seg input:checked + label { background: var(--ink); color: #fff; }
.seg input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; }
.field.invalid .seg { border-color: var(--err); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: var(--r-m); font-size: 14px; font-weight: 550; cursor: pointer; color: var(--ink-2); background: var(--field); transition: all .2s var(--ease); user-select: none; }
.chip label::before { content: ""; width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid var(--line-2); transition: all .2s var(--ease); flex: none; }
.chip input:checked + label { border-color: var(--brand); color: var(--ink); background: #fff; }
.chip input:checked + label::before { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M3.5 7.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") center/12px no-repeat; border-color: var(--brand); }
.chip input:focus-visible + label { outline: 2px solid var(--brand); outline-offset: 2px; }

.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 28px 20px; border: 1.5px dashed var(--line-2); border-radius: var(--r-m); background: var(--field); text-align: center; cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.drop:hover, .drop.is-over { border-color: var(--brand); background: var(--brand-soft); }
.drop svg { width: 28px; height: 28px; color: var(--brand); }
.drop strong { font-size: 15px; }
.drop span { font-size: 13.5px; color: var(--muted); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.files { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.files li { position: relative; aspect-ratio: 1; border-radius: var(--r-m); overflow: hidden; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; color: var(--muted); padding: 6px; text-align: center; word-break: break-all; }
.files img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.files button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(28,28,28,.8); color: #fff; cursor: pointer; display: grid; place-items: center; font-size: 15px; line-height: 1; }

.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); line-height: 1.55; cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.consent a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.field.invalid .consent { color: var(--err); }
.form-submit { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.form-submit .btn { min-width: 250px; }
.form-submit p { margin: 0; font-size: 13.5px; color: var(--muted); }
@media (max-width: 520px) { .form-submit .btn { width: 100%; min-width: 0; } }
.hp { position: absolute; left: -9999px; }
.is-hidden { display: none !important; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
.btn .spin { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; display: none; }
.btn[aria-busy="true"] .spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-alert { margin-top: 18px; padding: 13px 16px; border-radius: var(--r-m); background: #fdf1f0; color: var(--err); font-weight: 600; font-size: 15px; }

.done { text-align: center; padding: clamp(36px, 6vw, 64px) 12px; }
.done-icon { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: var(--r-l); background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.done-icon svg { width: 30px; height: 30px; }
.done h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 12px; }
.done p { color: var(--ink-2); max-width: 32em; margin: 0 auto 26px; }

.others { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.other { position: relative; display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.other:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.other img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--r-m); }
.other strong { display: block; font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; line-height: 1.2; margin-bottom: 4px; }
.other span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 900px) { .others { grid-template-columns: 1fr; } }

.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .35s var(--ease); }
  .mobile-cta.is-visible { transform: none; }
  .mobile-cta .btn { min-height: 48px; padding: 0 14px; }
  .mobile-cta .btn-ghost { padding: 0; }
  body.has-mobile-cta .site-footer { padding-bottom: 76px; }
}

/* ---------- Pagine testo (CGT / privacy) ---------- */
.doc { display: grid; grid-template-columns: 250px 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.doc-toc { position: sticky; top: 104px; font-size: 14px; }
.doc-toc h4 { font-size: 12px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.doc-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.doc-toc a { display: block; padding: 5px 0 5px 14px; color: var(--ink-2); margin-left: -1px; border-left: 2px solid transparent; }
.doc-toc a:hover { color: var(--brand); border-left-color: var(--brand); }
.doc-body { max-width: 760px; }
.doc-body h2 { font-size: clamp(20px, 2vw, 24px); margin: 48px 0 16px; scroll-margin-top: 110px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body li { color: var(--ink-2); font-size: 16px; }
.doc-body .clause { display: grid; grid-template-columns: 44px 1fr; gap: 6px; }
.doc-body .clause b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.doc-body .note { padding: 14px 18px; border-radius: var(--r-m); background: var(--brand-soft); color: var(--brand-ink); font-size: 15px; }
.doc-body a { color: var(--brand); }
.doc.doc-single { grid-template-columns: 1fr; }
/* Policy di cancellazione: un caso per riga, l'entita' della penale a colpo d'occhio */
.policy { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.policy-case { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: start; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); }
.policy-case p { margin: 0; }
.policy-tag { display: inline-block; padding: 5px 10px; border-radius: var(--r-s); background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.policy-tag.ok { background: #E6F4EC; color: #1F7046; }
.policy-tag.alto { background: #FDECEC; color: #A61B1B; }
@media (max-width: 560px) { .policy-case { grid-template-columns: 1fr; gap: 10px; } }
@media (max-width: 900px) { .doc { grid-template-columns: 1fr; } .doc-toc { position: static; } }
@media (max-width: 520px) { .doc-body .clause { grid-template-columns: 1fr; gap: 0; } }

/* Modulo di acquisizione dati (il modulo storico in dedtrasporti/, dentro la pagina) */
.webform-box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(16px, 3vw, 32px); }
.webform-box iframe { display: block; width: 100%; height: 2400px; border: 0; }

/* ---------- Animazioni ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .06s; } .reveal-d2 { transition-delay: .12s; } .reveal-d3 { transition-delay: .18s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
