/* ============================================
   Top Sport Italia — Football Prediction Challenge
   Mobile First · HTML5/CSS3 · min-width 300px
   ============================================ */

:root {
  --navy: #0e1f3d;
  --navy-2: #16294d;
  --navy-3: #1d3461;
  --green: #22c55e;
  --green-dark: #15803d;
  --white: #ffffff;
  --light: #f5f7fa;
  --grey: #64748b;
  --line: #e2e8f0;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(14, 31, 61, 0.10);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }

/* ---------- Accessibility helpers ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  background: #22c55e;
  color: #0e1f3d;
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { left: 0; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #22c55e;
  outline-offset: 2px;
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--white);
  min-width: 300px;
  overflow-wrap: break-word;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--green-dark); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}

.section { padding: 48px 0; }
.section--alt { background: var(--light); }

.section-title {
  font-size: clamp(1.45rem, 4.5vw, 2.2rem);
  line-height: 1.2;
  margin: 0 0 8px;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--grey);
  max-width: 640px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  border: 0;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.btn--primary { background: var(--green); color: var(--navy); }
.btn--primary:hover { background: #34d56d; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(34,197,94,.35); }

.btn--ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.5); }
.btn--ghost:hover { border-color: var(--white); }

.btn--small { padding: 9px 18px; font-size: .9rem; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 8px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .3px;
  flex-shrink: 1;
  min-width: 0;
}
.logo svg { width: 32px; height: 32px; flex-shrink: 0; }
.logo span em { color: var(--green); font-style: normal; }

.nav {
  position: fixed;
  inset: 64px 0 auto 0;
  background: var(--navy-2);
  padding: 12px 16px 20px;
  display: none;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  box-shadow: 0 16px 24px rgba(0,0,0,.3);
}
.nav.is-open { display: block; }
.nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav__list a {
  display: block;
  padding: 12px 10px;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
}
.nav__list a:hover, .nav__list a[aria-current="page"] { background: var(--navy-3); color: var(--green); }
.nav__cta { margin-top: 10px; }

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.burger span {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 2px;
  background: var(--white);
  transition: transform .25s ease, opacity .25s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 480px at 88% -12%, rgba(34,197,94,.30), transparent 60%),
    radial-gradient(760px 420px at -12% 112%, rgba(34,197,94,.18), transparent 55%),
    linear-gradient(150deg, #091530 0%, var(--navy) 45%, var(--navy-3) 100%);
  color: var(--white);
  padding: 56px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 480px at 88% -12%, rgba(34,197,94,.18), transparent 60%),
    linear-gradient(150deg, rgba(9,21,48,.78) 0%, rgba(14,31,61,.66) 45%, rgba(29,52,97,.55) 100%);
}
.hero__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .07;
  pointer-events: none;
  z-index: 1;
}
.hero > .container { position: relative; z-index: 2; }
.hero__grid {
  position: relative;
  display: grid;
  gap: 44px;
  grid-template-columns: 1fr;
  align-items: center;
}
.hero__eyebrow {
  display: flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 8px;
  font-size: clamp(.6rem, 2.4vw, .8rem);
  font-weight: 700;
  letter-spacing: clamp(.5px, .5vw, 2px);
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
  padding: 7px 14px;
  border: 1px solid rgba(34,197,94,.4);
  border-radius: 999px;
  background: rgba(34,197,94,.10);
}
.hero__eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: .6; }
}
.hero h1 {
  font-size: clamp(1.8rem, 6vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 16px;
  max-width: 720px;
  letter-spacing: -.5px;
}
.hero h1 .accent {
  background: linear-gradient(90deg, var(--green), #7ef0a8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.18rem);
  color: rgba(255,255,255,.85);
  max-width: 560px;
  margin: 0 0 28px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn--hero {
  padding: 15px 34px;
  font-size: 1.05rem;
  box-shadow: 0 10px 30px rgba(34,197,94,.35);
}
.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--white);
  font-weight: 800;
  font-size: .95rem;
  background: #c0392b;
  color: var(--white);
  flex-shrink: 0;
}
.hero__pitch {
  margin-top: 38px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
.hero__stat {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  padding: 14px 16px;
  backdrop-filter: blur(4px);
}
.hero__stat svg { width: 30px; height: 30px; flex-shrink: 0; }
.hero__stat strong { display: block; font-size: 1.45rem; line-height: 1.1; color: var(--green); }
.hero__stat span { font-size: .82rem; color: rgba(255,255,255,.72); }

/* Hero match preview card */
.hero__card {
  background: rgba(255,255,255,.97);
  color: var(--navy);
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  padding: 24px 22px;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}
.hero__card::before {
  content: "";
  position: absolute;
  top: 0; left: 22px; right: 22px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--green), #7ef0a8);
}
.hero__card-tag {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 16px;
}
.hero__card-tag span:last-child { color: var(--grey); letter-spacing: .3px; text-transform: none; font-weight: 600; }
.hero__card .match__teams { margin-bottom: 14px; }
.hero__score {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.hero__score b {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: var(--light);
  border: 2px solid var(--line);
  border-radius: 12px;
}
.hero__score i { font-style: normal; font-weight: 800; color: var(--grey); }
.hero__card-hint {
  text-align: center;
  font-size: .8rem;
  color: var(--grey);
  margin: 0 0 14px;
}
.hero__card-hint strong { color: var(--green-dark); }
.hero__card .btn { width: 100%; }

/* ---------- Cards (Come Funziona / Perché) ---------- */
.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  text-align: center;
}
.card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green);
  color: var(--navy);
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 12px;
}
.card__icon { width: 48px; height: 48px; margin: 0 auto 12px; }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--grey); font-size: .95rem; }

/* ---------- Matches ---------- */
.matches {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
.match {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.match__league {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green-dark);
  text-align: center;
}
.match__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.team { text-align: center; min-width: 0; }
.team__crest { display: block; width: 52px; height: 52px; margin: 0 auto 6px; }
.team__crest img { width: 100%; height: 100%; object-fit: contain; }
.team__name { font-weight: 700; font-size: .88rem; line-height: 1.25; }
.match__vs { font-weight: 800; color: var(--grey); font-size: .9rem; }
.match__when {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: .9rem;
  color: var(--grey);
  flex-wrap: wrap;
}
.match__when strong { color: var(--navy); }
.match .btn { width: 100%; }

/* ---------- Punteggi ---------- */
.points {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  max-width: 860px;
  margin: 0 auto;
}
.point-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.point-card__value {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--green);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  line-height: 1;
}
.point-card__value b { font-size: 1.4rem; }
.point-card__value small { font-size: .6rem; letter-spacing: 1px; text-transform: uppercase; }
.point-card h3 { margin: 0 0 4px; font-size: 1.05rem; }
.point-card p { margin: 0; color: var(--grey); font-size: .9rem; }

/* ---------- Leaderboard ---------- */
.tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tab {
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--white);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  color: var(--grey);
  transition: all .15s ease;
}
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--green); }

.board {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.board { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.board table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: .92rem; }
.board th, .board td { padding: 12px 14px; text-align: left; }
.board th {
  background: var(--navy);
  color: var(--white);
  font-size: .75rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.board tbody tr:nth-child(even) { background: var(--light); }
.board td:last-child, .board th:last-child { text-align: right; }
.board .pos {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--light);
  font-weight: 800;
  font-size: .8rem;
}
.board tr:nth-child(1) .pos { background: #ffd700; }
.board tr:nth-child(2) .pos { background: #d7dee8; }
.board tr:nth-child(3) .pos { background: #e8b97e; }
.board .pts { font-weight: 800; color: var(--green-dark); }
.board-panel[hidden] { display: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.faq__q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: none;
  border: 0;
  padding: 18px 20px;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  color: var(--navy);
}
.faq__q::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--green-dark);
  transition: transform .2s ease;
  flex-shrink: 0;
}
.faq__item.is-open .faq__q::after { transform: rotate(45deg); }
.faq__a { display: none; padding: 0 20px 18px; color: var(--grey); margin: 0; }
.faq__item.is-open .faq__a { display: block; }

/* ---------- Forms ---------- */
.form {
  max-width: 560px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}
.form label { font-weight: 700; font-size: .9rem; display: block; margin-bottom: 6px; }
.form input, .form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: var(--white);
  color: var(--navy);
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--green); }
.form textarea { min-height: 130px; resize: vertical; }
.form__note { font-size: .8rem; color: var(--grey); margin: 0; }
.form__success {
  background: #ecfdf5;
  border: 1px solid var(--green);
  color: var(--green-dark);
  border-radius: 10px;
  padding: 14px 16px;
  font-weight: 600;
}

/* ---------- Footer ---------- */
.footer {
  background:
    radial-gradient(800px 360px at 100% 0%, rgba(34,197,94,.10), transparent 60%),
    linear-gradient(160deg, #091530 0%, var(--navy) 60%);
  border-top: 3px solid var(--green);
  color: rgba(255,255,255,.8);
  padding: 52px 0 24px;
  font-size: .9rem;
}
.footer__top {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer .logo { margin-bottom: 14px; }
.footer__tagline {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  margin: 0 0 18px;
  max-width: 380px;
}
.footer h3 {
  color: var(--white);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 16px;
  padding-bottom: 10px;
  position: relative;
}
.footer h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 28px;
  height: 3px;
  border-radius: 2px;
  background: var(--green);
}
.footer__badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.footer .badge-18 { width: 40px; height: 40px; font-size: .85rem; }
.footer__tag {
  border: 1px solid rgba(34,197,94,.45);
  background: rgba(34,197,94,.10);
  color: #9fe8bd;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .5px;
}
.footer__disclaimer p {
  margin: 0 0 7px;
  font-size: .82rem;
  line-height: 1.55;
  color: rgba(255,255,255,.62);
  padding-left: 14px;
  position: relative;
}
.footer__disclaimer p::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  opacity: .7;
}
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  color: rgba(255,255,255,.78);
  text-decoration: none;
  transition: color .15s ease, transform .15s ease;
}
.footer__links a::before {
  content: "›";
  color: var(--green);
  font-weight: 800;
  transition: transform .15s ease;
}
.footer__links a:hover { color: var(--green); transform: translateX(3px); }
.footer__bottom {
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.5);
}
.footer__bottom p { margin: 0; }
.footer__bottom .heart { color: var(--green); }

/* ---------- Settings (Impostazioni) ---------- */
.settings-list {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
}
.setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--light);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.setting:hover { border-color: var(--green); box-shadow: 0 4px 14px rgba(34,197,94,.12); }
.setting__text { min-width: 0; }
.setting__text strong { display: block; font-size: .95rem; }
.setting__text span { display: block; font-size: .8rem; color: var(--grey); }
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch__slider {
  position: absolute;
  inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: background .2s ease;
  pointer-events: none;
}
.switch__slider::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.switch input:checked + .switch__slider { background: var(--green); }
.switch input:checked + .switch__slider::before { transform: translateX(20px); }
.switch input:focus-visible + .switch__slider { outline: 3px solid rgba(34,197,94,.5); outline-offset: 2px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1000;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
  padding: 20px;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner__title { margin: 0 0 8px; font-size: 1.05rem; font-weight: 700; }
.cookie-banner p { margin: 0 0 14px; font-size: .88rem; color: var(--grey); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner__actions .btn { flex: 1 1 120px; }
.btn--outline {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn--outline:hover { background: var(--light); }
.cookie-prefs { display: none; margin: 0 0 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.cookie-prefs.is-visible { display: block; }
.cookie-prefs label { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; margin-bottom: 10px; cursor: pointer; }
.cookie-prefs input { margin-top: 3px; }

/* ---------- Page (inner) ---------- */
.page-head {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-3) 100%);
  color: var(--white);
  padding: 44px 0;
  text-align: center;
}
.page-head h1 { margin: 0 0 8px; font-size: clamp(1.5rem, 5vw, 2.4rem); }
.page-head p { margin: 0 auto; max-width: 620px; color: rgba(255,255,255,.8); }
.page-body { padding: 44px 0; max-width: 820px; margin: 0 auto; }
.page-body h2 { font-size: 1.35rem; margin: 32px 0 12px; }
.page-body h3 { font-size: 1.1rem; margin: 24px 0 10px; }
.page-body p, .page-body li { color: #3b4a63; }
.page-body ul { padding-left: 22px; }
.notice {
  background: #fff7ed;
  border: 2px solid #f59e0b;
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0;
}
.notice--green { background: #ecfdf5; border-color: var(--green); }
.notice h2, .notice h3 { margin-top: 0; }

/* ---------- Account (Area Personale) ---------- */
.account {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  padding: 40px 0 56px;
}
.account__nav {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.account__nav button {
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  padding: 11px 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  color: var(--grey);
}
.account__nav button[aria-selected="true"] { background: var(--navy); color: var(--green); }
.account__panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 20px;
}
.account__panel[hidden] { display: none; }
.account__panel h2 { margin-top: 0; }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.stat {
  background: var(--light);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.stat b { display: block; font-size: 1.5rem; color: var(--green-dark); }
.stat span { font-size: .8rem; color: var(--grey); }
.pred-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pred-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: var(--light);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: .9rem;
}
.pred-list .ok { color: var(--green-dark); font-weight: 700; }
.pred-list .pending { color: var(--grey); font-weight: 700; }

/* ---------- Breakpoints ---------- */
@media (min-width: 480px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .section { padding: 72px 0; }
  .matches { grid-template-columns: repeat(2, 1fr); }
  .cards--5 { grid-template-columns: repeat(3, 1fr); }
  .points { grid-template-columns: repeat(3, 1fr); }
  .point-card { flex-direction: column; text-align: center; }
  .footer__top { grid-template-columns: 2fr 1fr 1fr; }
  .cookie-banner { left: auto; right: 24px; bottom: 24px; max-width: 440px; }
  .account { grid-template-columns: 240px 1fr; align-items: start; }
  .account__nav { flex-direction: column; }
  .account__nav button { text-align: left; flex: 0 0 auto; }
}

@media (min-width: 992px) {
  .burger { display: none; }
  .nav {
    position: static;
    display: block;
    background: transparent;
    padding: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }
  .nav__list { flex-direction: row; align-items: center; gap: 4px; }
  .nav__list a { padding: 8px 12px; font-size: .92rem; }
  .nav__cta { margin: 0 0 0 10px; }
  .hero { padding: 96px 0; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; }
  .hero__card { margin: 0 0 0 auto; }
  .hero__pitch { grid-template-columns: repeat(3, 1fr); }
  .matches { grid-template-columns: repeat(3, 1fr); }
  .cards--5 { grid-template-columns: repeat(5, 1fr); }
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 360px) {
  .container { padding: 0 12px; }
  .match__teams { grid-template-columns: 1fr; }
  .match__vs { padding: 2px 0; }
  .board th, .board td { padding: 9px 8px; font-size: .8rem; }
  .point-card { flex-direction: column; text-align: center; }
  .btn { padding: 12px 20px; font-size: .92rem; }
  .hero__card { padding: 18px 14px; }
  .hero__score b { width: 44px; height: 44px; font-size: 1.2rem; }
  .setting { flex-direction: column; align-items: flex-start; }
}

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