/* Uro Active – uro-active.it
   Mobile-first, no build step. All colours are custom properties (sampled from the design reference). */

:root {
  --bg: #EFF8FD;
  --surface: #FFFFFF;
  --text: #222222;
  --text-2: #444444;
  --navy: #323D55;
  --link: #2B5F96;
  --cta: #D62E22;          /* white text = ~4.9:1 (AA) */
  --cta-dark: #A8201A;
  --cta-hover: #C22A1F;
  --sticker: #E34941;
  --orange: #EE8643;       /* decorative only, never for text */
  --blue: #427DB5;
  --slate: #7692A6;
  --placeholder: #5B6670;
  --border: #D3E2EE;
  --shadow: 0 6px 24px rgba(50, 61, 85, .10);
  --radius: 20px;
  --header-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font: 400 1rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 16px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: #fff;
  padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 700;
}
.skip-link:focus { top: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  border: 0; cursor: pointer; text-decoration: none; text-align: center; font-family: inherit;
  color: #fff; background: var(--cta); border-radius: 999px; line-height: 1.15;
  box-shadow: 0 4px 0 var(--cta-dark), 0 10px 20px rgba(214, 46, 34, .25);
  transition: background-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { background: var(--cta-hover); color: #fff; }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--cta-dark); }
.btn:focus-visible { outline-color: var(--navy); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-cta { width: 100%; padding: 16px 24px 18px; }
.btn-main { font-size: 1.65rem; font-weight: 800; }
.btn-sub { font-size: 1.05rem; font-weight: 500; }
.btn-sm { padding: 9px 20px; font-size: .95rem; font-weight: 800; box-shadow: 0 3px 0 var(--cta-dark); }
.cta-row { margin: 32px 0 0; display: flex; justify-content: center; }
.cta-row .btn-cta { max-width: 420px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--border); backdrop-filter: saturate(1.4) blur(8px);
}
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; min-height: var(--header-h); }
.brand {
  font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; line-height: 1;
  text-decoration: none; color: var(--text); margin-right: auto; white-space: nowrap;
}
.brand span:last-child { color: var(--cta); }
.header-cta { order: 2; }
.menu-toggle {
  order: 3; display: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--border);
  border-radius: 12px; background: #fff; cursor: pointer; color: var(--navy);
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 24px; height: 24px; }
.menu-toggle .icon-close { display: none; }
.nav-open .menu-toggle .icon-open { display: none; }
.nav-open .menu-toggle .icon-close { display: block; }
.js .menu-toggle { display: inline-flex; }

.site-nav { order: 4; flex-basis: 100%; }
.site-nav ul { list-style: none; margin: 0; padding: 0 0 12px; display: flex; flex-wrap: wrap; gap: 4px 4px; }
.site-nav a {
  display: block; padding: 8px 12px; border-radius: 999px; color: var(--navy);
  font-weight: 600; font-size: .95rem; text-decoration: none;
}
.site-nav a:hover { background: var(--bg); }
.js .site-nav { display: none; }
.js .nav-open .site-nav { display: block; }
.js .site-nav ul { flex-direction: column; flex-wrap: nowrap; }
.js .site-nav a { padding: 12px 8px; border-radius: 8px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero { padding: 28px 0 40px; }
.hero-grid {
  display: grid; gap: 24px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "product" "card" "badges";
}
.hero-copy { grid-area: copy; }
.hero-product { grid-area: product; }
.order-card { grid-area: card; }
.hero-badges { grid-area: badges; }

h1 {
  margin: 0 0 20px; color: var(--text); font-weight: 800; letter-spacing: -.02em;
  font-size: clamp(1.85rem, 5.4vw, 2.9rem); line-height: 1.12;
}
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.benefits li { display: flex; align-items: flex-start; gap: 12px; font-size: 1.2rem; line-height: 1.35; color: var(--text-2); }
.benefits strong { color: var(--text); font-weight: 800; }
.benefits svg { flex: none; width: 30px; height: 30px; margin-top: 1px; }

.hero-product { position: relative; display: flex; justify-content: center; align-items: center; padding: 8px 0; }
.hero-product::before {
  content: ""; position: absolute; width: min(86%, 340px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #fff 0, #fff 55%, rgba(255, 255, 255, 0) 72%);
}
.pack { position: relative; width: min(50%, 230px); }
.pack picture { display: block; }
.pack img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 24px rgba(50, 61, 85, .22)); }
.sticker { position: absolute; z-index: 2; width: 104px; height: 104px; top: 2%; left: -12%; transform: rotate(-12deg); }
.sticker text { font-family: var(--font); font-weight: 800; }

.order-card {
  background: var(--surface); border: 3px solid var(--slate); border-radius: 14px;
  padding: 20px 18px 22px; box-shadow: var(--shadow); width: 100%; max-width: 480px; justify-self: center;
}
.order-price { margin: 0 0 16px; text-align: center; color: var(--text-2); font-size: 1rem; }
.price-new { color: var(--text); font-size: 1.7rem; font-weight: 800; }
.price-old s { color: var(--placeholder); }
.delivery-note { display: flex; gap: 14px; align-items: center; margin: 16px 0 0; color: var(--navy); font-style: italic; font-weight: 700; line-height: 1.4; }
.delivery-note svg { flex: none; width: 54px; height: 40px; }

.hero-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 16px 14px; justify-content: center; }
.hero-badges li { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 96px; text-align: center; font-size: .9rem; font-weight: 700; line-height: 1.25; color: var(--navy); }
.hero-badges svg { width: 84px; height: 84px; }

/* ---------- Content panels ---------- */
.content { display: grid; gap: 24px; padding-bottom: 56px; }
.panel {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 18px; width: 100%; max-width: 1000px; margin-inline: auto;
}
.panel h2 {
  margin: 0 0 16px; color: var(--text); font-size: clamp(1.5rem, 4.4vw, 2.15rem); line-height: 1.18;
  font-weight: 800; letter-spacing: -.015em;
}
.panel h3 { margin: 28px 0 10px; color: var(--navy); font-size: clamp(1.15rem, 3.2vw, 1.4rem); line-height: 1.28; font-weight: 800; }
.panel p { margin: 0 0 14px; max-width: 74ch; }
.panel h2 + p, .panel h3 + p { margin-top: 0; }

.callout {
  max-width: 74ch; padding: 14px 18px; border-left: 5px solid var(--orange); background: #FFF6EE;
  border-radius: 0 12px 12px 0; color: var(--text);
}
.panel p.callout { margin: 16px 0; }
.callout-warn { border-left-color: var(--cta); background: #FDEEEC; }

.steps { list-style: none; counter-reset: step; margin: 14px 0; padding: 0; display: grid; gap: 12px; max-width: 74ch; }
.steps li { counter-increment: step; position: relative; padding-left: 52px; min-height: 36px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center;
}
.checks { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 10px; max-width: 74ch; }
.checks li { position: relative; padding-left: 36px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%; background: var(--blue)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.500' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.500l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- Tables ---------- */
.table-wrap { margin: 18px 0 22px; }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .98rem; }
.data-table thead { display: none; }
.data-table tr { display: block; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: #fff; }
.data-table th, .data-table td { display: block; padding: 10px 14px; text-align: left; }
.data-table tbody th { background: var(--navy); color: #fff; font-weight: 800; font-size: 1.02rem; }
.data-table td { border-top: 1px solid var(--border); }
.data-table td::before { content: attr(data-label); display: block; color: var(--placeholder); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; margin-top: 8px; }
.faq details { border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.faq details[open] { border-color: var(--blue); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 16px 18px; min-height: 56px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; border-right: 3px solid var(--navy); border-bottom: 3px solid var(--navy);
  transform: rotate(45deg); transition: transform .2s; margin-top: -5px;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 5px; }
.panel .faq h3 { margin: 0; font-size: 1.08rem; }
.faq-answer { padding: 0 18px 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #fff; padding: 28px 0; text-align: center; }
.site-footer p { margin: 0; }
.footer-brand { font-size: 1.3rem; font-weight: 800; margin-bottom: 4px !important; }
.footer-copy { font-size: .92rem; }

/* ---------- 404 ---------- */
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.not-found h1 { margin-bottom: 12px; }
.not-found p { margin: 0 0 24px; font-size: 1.15rem; }
.not-found .btn { padding: 14px 32px; font-size: 1.2rem; font-weight: 800; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .container { padding-inline: 24px; }
  .panel { padding: 40px 36px; }
  .order-card { padding: 24px 24px 26px; }
  .hero-grid {
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    grid-template-areas: "product copy" "product badges" "card card";
    align-items: center; gap: 28px 32px;
  }
  .hero-badges { justify-content: flex-start; align-self: start; }
  .pack { width: 100%; }
  .sticker { left: 2%; }
  .data-table thead { display: table-header-group; }
  .data-table thead th { background: var(--navy); color: #fff; text-align: left; padding: 12px 14px; font-size: .9rem; }
  .data-table thead th:first-child { border-top-left-radius: 14px; }
  .data-table thead th:last-child { border-top-right-radius: 14px; }
  .data-table tr { display: table-row; border: 0; margin: 0; border-radius: 0; overflow: visible; background: transparent; }
  .data-table th, .data-table td { display: table-cell; padding: 14px; border-top: 0; border-bottom: 1px solid var(--border); vertical-align: top; }
  .data-table tbody th { background: transparent; color: var(--text); font-size: 1rem; }
  .data-table td::before { display: none; }
  .data-table tbody tr:nth-child(even) { background: #F7FBFE; }
  .data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
  .table-wrap { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
}

/* ---------- Desktop nav (all 8 anchors + CTA fit) ---------- */
@media (min-width: 1100px) {
  .header-inner { flex-wrap: nowrap; }
  .header-cta { order: 3; }
  .js .menu-toggle, .menu-toggle { display: none; }
  .site-nav, .js .site-nav { display: block; order: 2; flex-basis: auto; margin-left: auto; }
  .site-nav ul, .js .site-nav ul { flex-direction: row; flex-wrap: nowrap; padding: 0; gap: 0; }
  .site-nav a, .js .site-nav a { padding: 8px 11px; font-size: .92rem; border-radius: 999px; }
  .brand { margin-right: 0; }
  .hero { padding: 48px 0 56px; }
  .hero .container { max-width: 1280px; }
  .hero-grid {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) 360px;
    grid-template-areas: "product copy card" "product badges card";
    grid-template-rows: auto 1fr; align-items: center; gap: 24px 36px;
  }
  .hero-copy { align-self: end; }
  .hero-badges { align-self: start; }
  .order-card { align-self: center; justify-self: end; }
  .sticker { width: 120px; height: 120px; left: 2%; }
  .panel { padding: 48px 56px; }
}

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