/* Ita public website (SITE-1). Colours and fonts from frontend/src/index.css (@theme): brand teal, ink, amber; Nunito
   Bold for headings (served from this site, never a third party), the system font for text. */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/nunito-latin-700-normal.woff2") format("woff2");
}

:root {
  --brand-50: #e7f2f2;
  --brand-100: #cbe3e4;
  --brand-700: #0f5257;
  --brand-800: #0b4246;
  --brand-900: #073236;
  --amber: #f0a030;
  --surface: #f4f8f7;
  --raised: #ffffff;
  --sunken: #e8f0ef;
  --text: #1c2b33;
  --muted: #45545a;
  --line: #d3dfdd;
  --accent: #0f5257;
  --accent-text: #0b4246;
  --accent-soft: #e7f2f2;
  --on-accent: #ffffff;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --heading: "Nunito", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0f1719;
    --raised: #172225;
    --sunken: #121c1f;
    --text: #e6eeed;
    --muted: #a9b8b9;
    --line: #2b3a3e;
    --accent: #15646a;
    --accent-text: #82d4cd;
    --accent-soft: #143331;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-wrap: break-word;
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--heading); font-weight: 700; line-height: 1.2; margin: 1.6em 0 0.5em; }
h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); margin-top: 0.4em; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.1rem; }
p, ul, ol { margin: 0 0 1em; }
a { color: var(--accent-text); }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }

.wrap { max-width: 60rem; margin: 0 auto; padding: 0 16px; }
.sw { color: var(--muted); font-style: italic; }
h1 .sw, h2 .sw { display: block; font-size: 0.6em; font-style: normal; color: var(--muted); margin-top: 0.3em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.small { font-size: 0.9rem; color: var(--muted); }

/* Header */
.top { background: var(--brand-700); color: #fff8ec; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 36px; width: auto; }
.top nav { min-width: 0; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.nav a { color: #fff8ec; text-decoration: none; font-weight: 600; padding: 6px 0; display: inline-block; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 6px; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--brand-700), var(--brand-900)); color: #fff8ec; padding: 32px 0 40px; }
.hero h1 { color: #ffffff; }
.hero .lead, .hero .sw { color: var(--brand-100); }
.hero img { display: block; border-radius: 16px; margin-top: 24px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25); }
.dot { color: var(--amber); }

.notice {
  background: var(--accent-soft);
  border-left: 5px solid var(--amber);
  border-radius: 10px;
  padding: 14px 18px;
  margin: 24px 0;
}
.notice p:last-child { margin-bottom: 0; }

main { padding: 8px 0 40px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 16px; margin: 20px 0; padding: 0; list-style: none; }
.card { background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.card h2, .card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.btn {
  display: inline-block;
  background: var(--amber);
  color: #1c2b33;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
}
.btn:hover { background: #d98a1a; }

/* Prices */
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; }
table { width: 100%; border-collapse: collapse; background: var(--raised); border: 1px solid var(--line); border-radius: 12px; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--sunken); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.price { white-space: nowrap; font-weight: 700; }
.tag { display: inline-block; font-size: 0.8rem; font-weight: 700; border-radius: 999px; padding: 1px 9px; background: var(--sunken); color: var(--muted); white-space: nowrap; }
.tag.live { background: var(--accent-soft); color: var(--accent-text); }

.summary-mark { font-weight: 700; color: var(--accent-text); }

/* Footer */
.foot { border-top: 1px solid var(--line); background: var(--raised); padding: 24px 0 32px; font-size: 0.92rem; color: var(--muted); }
.foot ul { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 0 0 12px; }
.foot p { margin: 0.3em 0; }

/* Phones: each price row becomes a small card (plan, then price, then notes). */
@media (max-width: 40rem) {
  table, tbody, tr, td { display: block; width: 100%; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  tr:last-child { border-bottom: 0; }
  td { border-bottom: 0; padding: 2px 14px; }
  td:first-child { font-weight: 600; }
  .price { white-space: normal; }
}
