/* ============================================================
   Allservices Srl - Avviso di fusione / Merger notice
   Palette: fondo bianco + testo nero (spec cliente).
   Accenti brand Unitransports: navy #0b2336, ciano #00a1e3.
   Ciano usato solo come decorazione (contrasto AA non sufficiente
   per testo); navy per ogni elemento testuale colorato.
   ============================================================ */

:root {
  --white: #ffffff;
  --text: #000000;
  --text-soft: #555555;
  --ut-navy: #0b2336;
  --ut-navy-hover: #143150;
  --ut-cyan: #00a1e3;
  --rule: #e4e4e4;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* --- Fascia logo (navy: il logo Unitransports e' white-knockout) --- */
.brandbar {
  background: var(--ut-navy);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 20px;
}

.brandbar__link {
  display: inline-flex;
  line-height: 0;
  border-radius: 4px;
}

.brandbar__logo {
  height: 30px;
  width: auto;
  display: block;
}

.brandbar__link:focus-visible {
  outline: 3px solid var(--ut-cyan);
  outline-offset: 4px;
}

/* --- Corpo notice --- */
.notice {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 22px;
}

.notice__inner {
  width: 100%;
  max-width: 720px;
  text-align: center;
  animation: rise 0.5s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- Riga di transizione Allservices -> Unitransports --- */
.transition {
  margin: 0 0 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: clamp(1.45rem, 5.2vw, 2.4rem);
  line-height: 1.15;
}

.transition__from { color: var(--text-soft); }
.transition__to   { color: var(--ut-navy); }

.transition__arrow {
  color: var(--ut-navy);
  display: inline-flex;
}
.transition__arrow svg { display: block; }

.accent {
  display: block;
  width: 64px;
  height: 4px;
  margin: 0 auto 30px;
  background: var(--ut-cyan);
  border-radius: 2px;
}

/* --- Testo dell'avviso (IT + EN) --- */
.statement {
  max-width: 60ch;
  margin: 0 auto;
}

.statement p {
  margin: 0;
  font-size: clamp(1rem, 2.6vw, 1.18rem);
  line-height: 1.65;
  color: var(--text);
}

.statement--en p {
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
}

.statement a {
  color: var(--text);
  font-weight: 700;
  text-underline-offset: 3px;
}
.statement a:hover { color: var(--ut-navy); }
.statement a:focus-visible {
  outline: 3px solid var(--ut-cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

.divider {
  width: 80px;
  height: 1px;
  border: 0;
  background: var(--rule);
  margin: 26px auto;
}

/* --- Zona reindirizzamento --- */
.redirect { margin-top: 40px; }

.redirect__info {
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.55;
}

.redirect__info strong {
  color: var(--ut-navy);
  font-variant-numeric: tabular-nums;
}

.redirect__sep { margin: 0 8px; color: #c4c4c4; }

.progress {
  width: min(320px, 82%);
  height: 6px;
  margin: 0 auto 26px;
  background: #e9e9e9;
  border-radius: 3px;
  overflow: hidden;
}

.progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--ut-navy);
  border-radius: 3px;
}

/* --- CTA --- */
.cta {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding: 14px 30px;
  background: var(--ut-navy);
  color: var(--white);
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.cta__it { font-size: 1.02rem; font-weight: 700; }
.cta__en { font-size: 0.84rem; font-weight: 400; opacity: 0.82; }

.cta:hover { background: var(--ut-navy-hover); transform: translateY(-1px); }
.cta:active { transform: translateY(0); }
.cta:focus-visible {
  outline: 3px solid var(--ut-cyan);
  outline-offset: 3px;
}

/* --- Footer --- */
.foot {
  flex-shrink: 0;
  text-align: center;
  padding: 20px;
  font-size: 0.78rem;
  color: #8a8a8a;
  border-top: 1px solid #efefef;
}
.foot p { margin: 0; letter-spacing: 0.03em; }

/* --- Desktop --- */
@media (min-width: 700px) {
  .brandbar { padding: 22px; }
  .brandbar__logo { height: 38px; }
  .notice { padding: 64px 22px; }
}

/* --- Riduzione del movimento --- */
@media (prefers-reduced-motion: reduce) {
  .notice__inner { animation: none; }
  .cta { transition: none; }
  .cta:hover { transform: none; }
}
