/* ==========================================================
   SKY SRL — Logistic & Quality
   Stylesheet condiviso — Exa Studio Digitale
   ========================================================== */

:root {
  --navy: #071633;        /* base scura (hero, footer) */
  --navy-2: #0C2352;      /* navy più chiaro per superfici */
  --azure: #2B8CFF;       /* colore principale */
  --azure-2: #5CB8FF;     /* azzurro chiaro (hover, glow) */
  --azure-soft: #E4F1FF;  /* fondo azzurrino */
  --paper: #F5F8FD;       /* sezioni chiare */
  --white: #FFFFFF;
  --ink: #0E1B36;         /* testo */
  --ink-2: #4A5875;       /* testo secondario */
  --line: #D6E0F0;
  --chrome-a: #D08BFF;    /* accenti dal logo (uso minimo) */
  --chrome-b: #FF8FD8;

  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius: 18px;
  --radius-s: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: var(--azure); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--azure-2); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); font-weight: 300; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 300; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { margin: 0 0 1em; max-width: 62ch; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); }
.muted { color: var(--ink-2); }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy); color: #DCE7F8; }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy .muted { color: #9DB2D6; }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500; font-size: 1rem;
  border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--azure); color: var(--white); }
.btn--primary:hover { background: #1D7BEB; }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { border-color: var(--white); }
.btn--ghost-dark { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost-dark:hover { background: var(--navy); color: var(--white); }
.btn--wa { background: #25D366; color: #052E16; }
.btn--wa:hover { background: #1FC15A; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 22, 51, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--white); }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: auto; }
.brand__name { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; line-height: 1; }
.brand__tag { display: block; font-size: .72rem; color: #9DB2D6; font-weight: 400; margin-top: 3px; letter-spacing: .02em; }

.nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 34px); }
.nav a { color: #C9D7EE; font-family: var(--font-display); font-weight: 400; font-size: 1rem; position: relative; padding: 6px 0; }
.nav a:hover { color: var(--white); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--azure-2); border-radius: 2px;
}
.nav .btn { padding: 10px 18px; font-size: .95rem; }

.nav-toggle {
  display: none; background: none; border: 0; color: var(--white);
  width: 44px; height: 44px; cursor: pointer; padding: 0;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px auto; transition: transform .2s, 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: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 76px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy);
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav a[aria-current="page"]::after { display: none; }
  .nav .btn { margin-top: 14px; justify-content: center; }
}

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy);
  color: var(--white);
}
.hero::before {
  /* alone azzurro dietro il logo */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 78% 45%, rgba(43,140,255,.35), transparent 65%),
    radial-gradient(35% 35% at 82% 40%, rgba(208,139,255,.22), transparent 70%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-height: calc(100svh - 76px);
  padding-block: clamp(56px, 8vw, 96px);
}
.hero h1 { color: var(--white); margin-bottom: .6em; }
.hero .lead { color: #C9D7EE; max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__visual { position: relative; display: grid; place-items: center; }
.hero__visual img { width: min(100%, 520px); filter: drop-shadow(0 30px 60px rgba(43,140,255,.35)); }

@media (prefers-reduced-motion: no-preference) {
  .hero__visual img { animation: float 9s ease-in-out infinite; }
  @keyframes float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }
}
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; }
  .hero__visual { order: -1; }
  .hero__visual img { width: min(70%, 320px); }
}

/* ---------- Rotta Milano — Sky — Torino (elemento firma) ---------- */
.route { padding-block: clamp(48px, 7vw, 88px); background: var(--paper); border-block: 1px solid var(--line); }
.route__intro { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: 36px; }
.route__intro h2 { margin: 0; }
.route svg { width: 100%; height: auto; display: block; }
.route .r-line { stroke: var(--azure); stroke-width: 3; fill: none; stroke-linecap: round; }
.route .r-dash { stroke: var(--line); stroke-width: 3; fill: none; stroke-dasharray: 2 8; stroke-linecap: round; }
.route .r-city { fill: var(--navy); }
.route .r-hub { fill: var(--azure); }
.route .r-hub-ring { fill: none; stroke: var(--azure-2); stroke-width: 2; opacity: .6; }
.route text { font-family: var(--font-display); fill: var(--ink); }
.route .r-name { font-size: 22px; font-weight: 500; }
.route .r-km { font-size: 16px; fill: var(--ink-2); }
.route .r-note { font-size: 15px; fill: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .route .r-line { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 1.8s ease-out .3s forwards; }
  @keyframes draw { to { stroke-dashoffset: 0 } }
  .route .r-hub-ring { animation: ring 2.6s ease-out infinite; transform-origin: center; transform-box: fill-box; }
  @keyframes ring { 0% { transform: scale(.7); opacity: .8 } 100% { transform: scale(2.1); opacity: 0 } }
}
.route .route__svg--mobile { display: none; max-width: 390px; margin-inline: auto; }
.route .route__svg--mobile .r-name { font-size: 20px; } .route .route__svg--mobile .r-km { font-size: 15px; } .route .route__svg--mobile .r-note { font-size: 14px; }
@media (max-width: 720px) {
  .route__intro { grid-template-columns: 1fr; }
  .route .route__svg--desktop { display: none; }
  .route .route__svg--mobile { display: block; }
}

/* ---------- Servizi: righe alternate, non card ---------- */
.service-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px);
  align-items: center; padding-block: clamp(36px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.service-row:first-of-type { border-top: 0; }
.service-row:nth-child(even) .service-row__media { order: -1; }
.service-row h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 400; }
.service-row ul { padding-left: 1.1em; margin: 0 0 1em; color: var(--ink-2); }
.service-row li { margin-bottom: .35em; }
@media (max-width: 760px) {
  .service-row { grid-template-columns: 1fr; }
  .service-row:nth-child(even) .service-row__media { order: 0; }
}

/* ---------- Griglia servizi in home ---------- */
.services-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.services-grid > a {
  background: var(--white); padding: clamp(24px, 3vw, 40px); color: var(--ink);
  display: flex; flex-direction: column; gap: 12px; min-height: 240px;
  transition: background .2s;
}
.services-grid > a:hover { background: var(--azure-soft); text-decoration: none; }
.services-grid h3 { margin: 0; }
.services-grid p { margin: 0; color: var(--ink-2); font-size: 1rem; }
.services-grid .more { margin-top: auto; color: var(--azure); font-family: var(--font-display); font-weight: 500; }
.icon { width: 40px; height: 40px; color: var(--azure); }
@media (max-width: 640px) { .services-grid { grid-template-columns: 1fr; } }

/* ---------- Numeri ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fact strong { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1; color: var(--white); }
.fact span { color: #9DB2D6; font-size: .95rem; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Citazione ---------- */
.quote {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.3;
  max-width: 24ch; margin: 0; color: var(--white);
}
.quote--dark { color: var(--navy); }

/* ---------- Timeline (storia: sequenza reale) ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 92px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 80px 1fr; gap: 40px; padding-block: 28px; position: relative; }
.timeline li::after {
  content: ""; position: absolute; left: 87px; top: 40px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--azure); box-shadow: 0 0 0 5px var(--paper);
}
.timeline time { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; color: var(--navy); line-height: 1.6; }
.timeline h3 { margin-bottom: .3em; }
.timeline p { margin: 0; color: var(--ink-2); }
@media (max-width: 640px) {
  .timeline::before { left: 8px; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; padding-left: 32px; }
  .timeline li::after { left: 3px; top: 34px; }
}

/* ---------- Parco mezzi ---------- */
.fleet { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.fleet__item { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--white); }
.fleet__item h4 { margin: 0 0 .2em; font-size: 1.1rem; }
.fleet__item p { margin: 0; color: var(--ink-2); font-size: .98rem; }
@media (max-width: 640px) { .fleet { grid-template-columns: 1fr; } }

/* ---------- Placeholder foto (da sostituire) ---------- */
.ph {
  position: relative; margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--azure-soft);
  background-image:
    linear-gradient(135deg, rgba(43,140,255,.10) 25%, transparent 25%, transparent 50%, rgba(43,140,255,.10) 50%, rgba(43,140,255,.10) 75%, transparent 75%);
  background-size: 28px 28px;
  border: 1px dashed rgba(43,140,255,.45);
  display: grid; place-items: center;
}
.ph--wide { aspect-ratio: 16 / 9; }
.ph--tall { aspect-ratio: 3 / 4; }
.ph--square { aspect-ratio: 1; }
.ph figcaption {
  font-family: var(--font-display); font-size: .9rem; color: var(--azure);
  background: rgba(255,255,255,.85); padding: 8px 14px; border-radius: 999px;
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Galleria ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery .ph { aspect-ratio: 1; }
.gallery .ph:first-child { grid-column: span 2; aspect-ratio: auto; }
@media (max-width: 720px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Contatti ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.contact-list svg { width: 24px; height: 24px; color: var(--azure); margin-top: 3px; }
.contact-list strong { display: block; font-family: var(--font-display); font-weight: 500; }
.contact-list a { word-break: break-word; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--paper); min-height: 380px; display: grid; place-items: center; text-align: center; padding: 24px; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.map p { margin-bottom: 14px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- CTA finale ---------- */
.cta {
  background: linear-gradient(120deg, var(--navy) 0%, #0F2E66 60%, #17418F 100%);
  color: var(--white);
}
.cta .wrap { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 32px; }
.cta h2 { color: var(--white); margin-bottom: .3em; }
.cta p { color: #C9D7EE; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 760px) { .cta .wrap { grid-template-columns: 1fr; } .cta__actions { justify-content: flex-start; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #9DB2D6; padding-block: 56px 32px; font-size: .95rem; }
.site-footer a { color: #C9D7EE; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-grid h4 { color: var(--white); font-weight: 500; font-size: 1rem; margin-bottom: .8em; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand img { width: 56px; margin-bottom: 14px; }
.footer-brand p { color: #9DB2D6; font-size: .92rem; }
.footer-legal { padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; color: #7E93B8; }
.footer-legal p { margin: 0; max-width: none; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Pagine interne: intestazione ---------- */
.page-head { background: var(--navy); color: var(--white); padding-block: clamp(56px, 8vw, 96px); position: relative; overflow: hidden; }
.page-head::after {
  content: ""; position: absolute; right: -8%; top: -30%; width: 520px; height: 520px;
  background: url("../img/logo-s.png") center / contain no-repeat; opacity: .12; pointer-events: none;
}
.page-head h1 { color: var(--white); font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
.page-head .lead { color: #C9D7EE; }

/* ---------- Testo lungo (privacy) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.6rem; margin-top: 2em; font-weight: 500; }
.prose h3 { font-size: 1.15rem; margin-top: 1.6em; }
.prose ul { color: var(--ink-2); }

/* ---------- WhatsApp flottante ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(37,211,102,.4);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); text-decoration: none; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Cookie banner ---------- */
.cookie {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 70;
  max-width: 560px; margin-inline: auto;
  background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(7,22,51,.25);
  padding: 22px;
  display: none;
}
.cookie.is-visible { display: block; }
.cookie p { font-size: .95rem; margin-bottom: 14px; max-width: none; }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie .btn { padding: 10px 18px; font-size: .92rem; }
@media (max-width: 640px) { .cookie { left: 12px; right: 12px; bottom: 90px; } }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Riquadri con foto reale: niente bordo/tratteggio */
.ph:has(img) { border: 0; background: var(--paper); }
