/* =========================================================
   Transervice — stylesheet
   Palette, tipografia e layout estratti dall'originale,
   convertiti in CSS reale con hover, responsive e type fluido.
   ========================================================= */

:root {
  --bg:      #FAFAF8;
  --accent:  #2E78C7;
  --accent-d:#256aae;            /* accent scurito per hover */
  --accent-2:#44A0D1;            /* azzurro del logo */
  --accent-2d:#3387b6;           /* azzurro logo scurito */
  --sky:     #cfe6f3;            /* azzurro chiarissimo per bordi/tinte */
  --sky-2:   #eaf4fb;            /* sfondo azzurrato leggerissimo */
  --ink:     #1C1B16;
  --ink-2:   #20201B;
  --text:    #615C51;
  --text-2:  #6B665B;
  --muted:   #8A857A;
  --muted-2: #9A958A;
  --line:    #E6E2D5;
  --line-2:  #E2DECF;
  --card:    #ffffff;
  --band:    #ECEAE2;
  --band-2:  #F5F3EC;
  --maxw:    1240px;
  --pad:     40px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Public Sans', system-ui, -apple-system, sans-serif;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

img { max-width: 100%; }
a { color: inherit; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.eyebrow .rule { width: 30px; height: 1px; background: var(--accent); flex: none; }
.eyebrow span:last-child {
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  padding: 14px 26px; border-radius: 4px; border: 1px solid transparent;
  transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
  cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 6px 16px -10px var(--accent); }
.btn-primary:hover { background: linear-gradient(135deg, var(--accent-d), var(--accent-2d)); box-shadow: 0 10px 22px -10px var(--accent); transform: translateY(-1px); }
.btn-ghost { color: var(--ink-2); border-color: var(--sky); }
.btn-ghost:hover { border-color: var(--accent-2); color: var(--accent-2d); }
.btn-outline {
  font-size: 14px; padding: 10px 18px;
  color: var(--accent); border-color: var(--accent-2);
}
.btn-outline:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn-white { background: #fff; color: var(--accent); font-size: 16px; padding: 16px 32px; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(0,0,0,0.4); }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,250,248,0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 82px;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; justify-self: start; }
.brand img { height: 48px; width: auto; display: block; border-radius: 4px; }
.brand .badge {
  font-size: 10px; font-weight: 600; letter-spacing: 0.24em; color: var(--muted);
  border-left: 1px solid var(--line-2); padding-left: 14px; line-height: 1.4;
}
.main-nav { justify-self: center; display: flex; align-items: center; gap: 38px; }
.main-nav a { font-size: 15px; font-weight: 500; color: #3D3A33; text-decoration: none; transition: color .18s; }
.main-nav a:hover { color: var(--accent); }
.header-inner .btn-outline { justify-self: end; }

/* ---- Hero ---- */
.hero { padding: 84px 0 92px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 64px; align-items: center; }
.hero-title {
  font-family: 'Spectral', serif; font-weight: 600;
  font-size: clamp(30px, 6vw, 56px); line-height: 1.07;
  letter-spacing: -0.01em; color: var(--ink); text-wrap: balance;
}
.lead { margin-top: 26px; font-size: 17.5px; line-height: 1.6; color: var(--text); max-width: 496px; }
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-note { margin-top: 24px; font-size: 13px; color: var(--muted); }
.hero-media {
  position: relative; aspect-ratio: 4/5; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line-2); background: #E9E5DA;
}
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---- Stats ---- */
.stats { background: var(--band); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.stats-inner { padding: 52px var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.stat { text-align: center; }
.stat-num { font-family: 'Spectral', serif; font-weight: 600; font-size: clamp(40px, 8vw, 54px); line-height: 1; color: var(--ink); }
.stat-label { margin-top: 12px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #7C776B; }
.stat-div { width: 1px; height: 78px; background: rgba(28,27,22,0.14); justify-self: center; }

/* ---- Sezioni con titolo ---- */
.section { padding: 100px 0 90px; }
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-title {
  font-family: 'Spectral', serif; font-weight: 600;
  font-size: clamp(28px, 4.6vw, 40px); line-height: 1.12;
  letter-spacing: -0.01em; color: var(--ink);
}
.section-sub { margin-top: 18px; font-size: 16.5px; line-height: 1.6; color: var(--text); }

/* ---- Cards servizi ---- */
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card {
  background: var(--card); border: 1px solid var(--sky); border-radius: 8px; padding: 34px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px -18px rgba(46,120,199,0.30); border-color: var(--accent-2); }
.card svg { stroke: var(--accent); }
.card h3 { margin-top: 22px; font-family: 'Spectral', serif; font-weight: 600; font-size: 21px; color: var(--ink); }
.card p { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }

/* ---- Partners / rete corrispondenti ---- */
.partners { border-top: 1px solid var(--line); background: var(--band-2); }
.partners-inner { padding: 72px 0; }
.partners-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.partners h2 {
  font-family: 'Spectral', serif; font-weight: 600;
  font-size: clamp(26px, 4vw, 34px); line-height: 1.14; letter-spacing: -0.01em; color: var(--ink);
}
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  font-size: 14.5px; font-weight: 500; color: #3D3A33; background: #fff;
  border: 1px solid var(--sky); padding: 10px 18px; border-radius: 999px;
  transition: border-color .18s, color .18s, background .18s;
}
.chip:hover { border-color: var(--accent-2); color: var(--accent-2d); background: var(--sky-2); }

/* ---- CTA band ---- */
.cta { background: var(--accent); }
.cta-inner { padding: 74px 0; display: flex; align-items: center; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.cta-text { max-width: 620px; }
.cta h2 {
  font-family: 'Spectral', serif; font-weight: 600;
  font-size: clamp(26px, 4.2vw, 36px); line-height: 1.14; letter-spacing: -0.01em; color: #fff;
}
.cta p { margin-top: 16px; font-size: 17px; line-height: 1.55; color: rgba(255,255,255,0.85); }

/* ---- Footer ---- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); }
.footer-inner { padding: 56px 0 44px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr; gap: 48px; align-items: start; }
.foot-brand img { height: 44px; width: auto; display: block; border-radius: 4px; }
.foot-brand p { margin-top: 14px; font-size: 13px; line-height: 1.55; color: var(--muted); max-width: 260px; }
.foot-title { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.foot-contacts { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--text); }
.foot-contacts a { text-decoration: none; transition: color .18s; }
.foot-contacts a:hover { color: var(--accent); }
.hours { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; }
.hours-row { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; font-size: 13.5px; }
.hours-row span:first-child { color: #3D3A33; }
.hours-row .val { font-variant-numeric: tabular-nums; color: var(--text); }
.hours-row .closed { color: var(--muted-2); }
.footer-bottom {
  margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.copyright { font-size: 12.5px; color: var(--muted-2); }
.legal { display: flex; gap: 24px; align-items: center; }
.legal a { text-decoration: none; font-size: 13.5px; color: var(--text); transition: color .18s; }
.legal a:hover { color: var(--accent); }

/* =========================================================
   Mappa arco alpino (rete corrispondenti)
   ========================================================= */
.map-wrap {
  margin-top: 40px;
  background: linear-gradient(180deg, var(--sky-2), #fff);
  border: 1px solid var(--sky);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 24px 48px -34px rgba(46,120,199,0.45);
}
.map-svg { width: 100%; height: auto; display: block; }
.map-svg .link { fill: none; stroke: var(--accent-2); stroke-width: 1.6; stroke-dasharray: 3 5; opacity: .55; }
.map-svg .link-flow { animation: dashflow 9s linear infinite; }
.map-svg .peak { fill: #dbe9f4; stroke: var(--accent-2); stroke-width: 1.2; }
.map-svg .ridge { fill: #eef5fb; }
.map-svg .city-dot { fill: #fff; stroke: var(--accent-2); stroke-width: 2.5; }
.map-svg .city-name { font: 600 15px/1 'Public Sans', sans-serif; fill: var(--ink); }
.map-svg .city-sub { font: 600 9.5px/1 'Public Sans', sans-serif; fill: var(--muted); letter-spacing: .14em; }
.map-svg .hub-ring { fill: none; stroke: var(--accent); stroke-width: 2; opacity: .35; }
.map-svg .hub-ring.pulse { animation: hubpulse 2.8s ease-out infinite; transform-origin: center; transform-box: fill-box; }
.map-svg .hub-dot { fill: var(--accent); stroke: #fff; stroke-width: 3; }
.map-svg .hub-name { font: 700 18px/1 'Spectral', serif; fill: var(--ink); }
.map-svg .hub-sub { font: 600 10px/1 'Public Sans', sans-serif; fill: var(--accent); letter-spacing: .18em; }
.map-svg .pass-tag { font: 600 9px/1 'Public Sans', sans-serif; fill: var(--accent-2d); letter-spacing: .04em; }
.map-svg .reg-it { fill: #e8f1e4; }
.map-svg .reg-fr { fill: #ece9f6; }
.map-svg .reg-ch { fill: #f8e9ea; }
.map-svg .water  { fill: #d4eaf6; }
.map-svg .border-line { fill: none; stroke: #a7afbd; stroke-width: 1.6; }
.map-svg .country-label { font: 700 12px 'Public Sans', sans-serif; fill: #a9aebb; letter-spacing: .22em; }

@keyframes dashflow { to { stroke-dashoffset: -160; } }
@keyframes hubpulse { 0% { transform: scale(.7); opacity: .5; } 100% { transform: scale(1.9); opacity: 0; } }

.map-legend {
  margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px 22px;
  font-size: 13px; color: var(--text);
}
.map-legend .key { display: inline-flex; align-items: center; gap: 8px; }
.map-legend .swatch { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.map-legend .swatch.hub { background: var(--accent); }
.map-legend .swatch.node { background: #fff; border: 2px solid var(--accent-2); }

/* =========================================================
   Come raggiungerci (mini-mappa stradale)
   ========================================================= */
.reach { border-top: 1px solid var(--line); background: #fff; }
.reach-inner { padding: 90px 0; }
.reach-grid { display: grid; grid-template-columns: 0.82fr 1.18fr; gap: 56px; align-items: center; }
.reach-card {
  background: linear-gradient(180deg, var(--sky-2), #fff);
  border: 1px solid var(--sky); border-radius: 16px; padding: 18px;
  box-shadow: 0 24px 48px -34px rgba(46,120,199,0.45);
}
.route-svg { width: 100%; height: auto; display: block; }
.route-svg .road { fill: none; stroke: #cfd3cf; stroke-width: 20; stroke-linecap: round; stroke-linejoin: round; }
.route-svg .road-line { fill: none; stroke: #fff; stroke-width: 2.5; stroke-dasharray: 10 12; stroke-linecap: round; }
.route-svg .road-flow { animation: dashflow 6s linear infinite; }
.route-svg .sign { fill: #1f7a4d; }
.route-svg .sign-txt { font: 700 13px/1 'Public Sans', sans-serif; fill: #fff; letter-spacing: .04em; }
.route-svg .sign-sub { font: 600 8.5px/1 'Public Sans', sans-serif; fill: #cfe9da; letter-spacing: .12em; }
.route-svg .pin-body { fill: var(--accent); }
.route-svg .pin-dot { fill: #fff; }
.route-svg .label { font: 700 13px/1.2 'Public Sans', sans-serif; fill: var(--ink); }
.route-svg .hill { fill: #e8f2e9; }
.route-svg .tree { fill: #2f8f5b; }

.reach-addr { margin-top: 18px; }
.reach-addr .pin-row { display: flex; align-items: flex-start; gap: 10px; }
.reach-addr .pin-ic { color: var(--accent); flex: none; margin-top: 2px; }
.reach-addr address { font-style: normal; font-size: 16px; line-height: 1.55; color: var(--ink); font-weight: 600; }
.reach-addr .muted { color: var(--muted); font-weight: 500; font-size: 14px; }
.reach-steps { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.reach-step { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--text); }
.reach-step .num {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--sky-2); border: 1px solid var(--accent-2); color: var(--accent-2d);
  font-size: 13px; font-weight: 700; display: grid; place-items: center;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-grid .eyebrow { justify-content: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-media { width: 100%; max-width: 460px; margin-inline: auto; }
  .partners-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .foot-brand { grid-column: 1 / -1; }
  .reach-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 760px) {
  :root { --pad: 22px; }
  .main-nav, .brand .badge { display: none; }       /* header compatto su mobile */
  .header-inner { grid-template-columns: 1fr auto; }
  .hero { padding: 56px var(--pad) 64px; }
  .section { padding: 68px var(--pad) 60px; }
  .partners-inner { padding: 56px var(--pad); }
  .reach-inner { padding: 64px var(--pad); }
  .cta-inner { padding: 54px var(--pad); }
  .footer-inner { padding: 56px var(--pad) 44px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .foot-brand { grid-column: auto; }

  /* --- tutto centrato su telefono --- */
  .section-head { text-align: center; margin-left: auto; margin-right: auto; }
  .section-head .eyebrow,
  .partners .eyebrow,
  .reach .eyebrow { justify-content: center; }
  .section-sub { margin-left: auto; margin-right: auto; }
  .card { text-align: center; }
  .map-legend { justify-content: center; }
  .reach-grid { text-align: center; }
  .reach-addr .pin-row { justify-content: center; }
  .reach-steps { align-items: center; }
  .reach-step { text-align: left; }
  .cta-inner { flex-direction: column; text-align: center; align-items: center; }
  .footer-grid { text-align: center; }
  .foot-brand img { display: block; margin-left: auto; margin-right: auto; }
  .foot-brand p { margin-left: auto; margin-right: auto; }
  .foot-contacts { align-items: center; }
  .legal { justify-content: center; }
}

@media (max-width: 600px) {
  .cards { grid-template-columns: 1fr; }
  .stats-inner { padding: 40px var(--pad); }
  .stat-div { height: 60px; }
  .cta-inner { gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =========================================================
   Pagine legali (privacy / cookie)
   ========================================================= */
.doc-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.doc-header .container {
  height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.doc-header .brand img { height: 44px; width: auto; display: block; border-radius: 4px; }
.doc-back { font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; }
.doc-back:hover { text-decoration: underline; }

.doc {
  max-width: 760px; margin: 0 auto; padding: 64px var(--pad) 80px;
}
.doc h1 {
  font-family: 'Spectral', serif; font-weight: 600;
  font-size: clamp(30px, 5vw, 44px); line-height: 1.1; letter-spacing: -0.01em; color: var(--ink);
}
.doc .updated { margin-top: 14px; font-size: 13px; color: var(--muted); }
.doc h2 {
  font-family: 'Spectral', serif; font-weight: 600; font-size: 22px; color: var(--ink);
  margin: 44px 0 0;
}
.doc p, .doc li { font-size: 15.5px; line-height: 1.7; color: var(--text); }
.doc p { margin-top: 14px; }
.doc ul { margin: 14px 0 0; padding-left: 22px; }
.doc li { margin-top: 8px; }
.doc a { color: var(--accent); }
.doc .box {
  margin-top: 18px; padding: 18px 22px; background: var(--band-2);
  border: 1px solid var(--line-2); border-radius: 8px;
}
.doc-foot {
  border-top: 1px solid var(--line); background: var(--bg);
}
.doc-foot .container {
  padding: 28px var(--pad); font-size: 12.5px; color: var(--muted-2);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.doc-foot a { color: var(--text); text-decoration: none; }
.doc-foot a:hover { color: var(--accent); }
