/* 360° THE GRID — stile "anime racing": inchiostro, retini, linee di velocità. */

:root {
  /* palette presa dall'illustrazione */
  --sky: #4FB3F0;
  --sky-d: #2C8FD3;
  --night: #13203D;
  --night-2: #1E3060;
  --yellow: #FFD21E;
  --yellow-d: #F2B705;
  --red: #E8202A;
  --white: #FFFFFF;
  --suit: #A9D4F5;
  --ink: #0B0E1A;
  --paper: #FFFDF6;
  --paper-2: #FFF3CC;
  --pos: #12A150;
  --neg: #E8202A;
  --neu: #8B95AA;
  --muted: #56607A;

  --b: 3px;            /* spessore inchiostro */
  --sh: 5px;           /* ombra piena */
  --r: 6px;

  --f-title: "Bangers", Impact, "Arial Black", sans-serif;
  --f-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-text: "Barlow", system-ui, -apple-system, sans-serif;
  --f-hand: "Permanent Marker", "Comic Sans MS", cursive;

  --dots: radial-gradient(circle, rgba(19, 32, 61, .28) 1.15px, transparent 1.7px);
  --dots-w: radial-gradient(circle, rgba(255, 255, 255, .35) 1.15px, transparent 1.7px);
  --paper-tex: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .15 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --checker: conic-gradient(var(--ink) 25%, #fff 0 50%, var(--ink) 0 75%, #fff 0);

  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0;
  min-height: 100dvh;
  font: 500 16px/1.45 var(--f-text);
  color: var(--ink);
  background: var(--sky);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* carta + retino su tutto il fondo */
body::before {
  content: "";
  position: fixed; inset: 0;
  background: var(--dots-w) 0 0 / 7px 7px;
  -webkit-mask: linear-gradient(180deg, #000 0%, transparent 55%, #000 120%);
  mask: linear-gradient(180deg, #000 0%, transparent 55%, #000 120%);
  pointer-events: none; z-index: 0;
}
body::after {
  content: "";
  position: fixed; inset: 0;
  background: var(--paper-tex);
  mix-blend-mode: multiply;
  opacity: .9;
  pointer-events: none; z-index: 1000;
}
img { max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { overflow: visible; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ------------------------------------------------------------ primitive */

.panel {
  position: relative;
  background: var(--paper);
  border: var(--b) solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--sh) var(--sh) 0 var(--ink);
  padding: 22px 16px 16px;
}
.panel--night { background: var(--night); color: #fff; }
.panel--yellow { background: var(--yellow); }
.panel--dots { background-image: var(--dots); background-size: 7px 7px; }

.panel-cap {
  position: absolute; top: -15px; left: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 11px 2px;
  font: italic 800 13px/1.2 var(--f-cond);
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: skewX(-10deg);
  white-space: nowrap; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis;
  z-index: 2;
}
.panel-cap--red { background: var(--red); color: #fff; }
.panel-cap--white { background: #fff; }
.panel-cap--night { background: var(--night); color: #fff; }
.panel-cap a { text-decoration: none; }

.comic {
  font-family: var(--f-title);
  font-weight: 400;
  letter-spacing: .03em;
  line-height: .95;
  color: #fff;
  -webkit-text-stroke: 6px var(--ink);
  paint-order: stroke fill;
  text-shadow: 3px 4px 0 var(--ink);
  margin: 0;
}
.comic--y { color: var(--yellow); }
.comic--r { color: var(--red); }

.h-sec {
  display: flex; align-items: center; gap: 10px;
  margin: 34px 0 18px;
  font: 400 clamp(30px, 7vw, 46px)/1 var(--f-title);
  letter-spacing: .03em;
  color: #fff;
  -webkit-text-stroke: 6px var(--ink); paint-order: stroke fill;
  text-shadow: 3px 4px 0 var(--ink);
}
.h-sec small {
  font: italic 700 14px/1.1 var(--f-cond); letter-spacing: .04em;
  -webkit-text-stroke: 0; text-shadow: none;
  color: var(--night);
  background: #fff; border: 2px solid var(--ink); padding: 2px 8px;
  transform: skewX(-10deg); white-space: nowrap;
}
.h-sec::after { content: ""; flex: 1; height: 8px; min-width: 20px; background: var(--checker) 0 0 / 8px 8px; border: 2px solid var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 16px;
  font: italic 800 16px/1.1 var(--f-cond); letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); background: var(--yellow);
  border: var(--b) solid var(--ink); border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none;
  transition: transform .08s, box-shadow .08s;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--white { background: #fff; }
.btn--sm { padding: 5px 10px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px 1px;
  font: 700 13px/1.35 var(--f-cond); letter-spacing: .03em; text-transform: uppercase;
  background: #fff; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 999px;
  white-space: nowrap;
}
.chip--pos { background: #D7F5E3; border-color: #0B6B35; color: #0B5A2D; }
.chip--neg { background: #FFDCDD; border-color: #A3121A; color: #8E0F16; }
.chip--neu { background: #EEF1F6; border-color: #737D93; color: #3E475C; }
.chip--live { background: var(--red); color: #fff; animation: blink 1.2s steps(2) infinite; }
.chip--done { background: var(--checker) 0 0 / 6px 6px; color: var(--ink); }
.chip--done span { background: #fff; padding: 0 4px; border-radius: 3px; }
.chip--next { background: var(--yellow); }
.chip--night { background: var(--night); color: #fff; }
button.chip { cursor: pointer; }
button.chip[aria-pressed="true"] { background: var(--night); color: var(--yellow); }

@keyframes blink { 50% { filter: brightness(1.25); box-shadow: 0 0 0 3px rgba(232, 32, 42, .3); } }

.checker-strip { height: 10px; background: var(--checker) 0 0 / 10px 10px; border-bottom: 3px solid var(--ink); position: relative; z-index: 5; }

.muted { color: var(--muted); }
.mono { font-family: var(--f-cond); font-variant-numeric: tabular-nums; font-weight: 700; }
.nowrap { white-space: nowrap; }

.empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 22px 12px; text-align: center;
  font: italic 700 17px/1.25 var(--f-cond); color: var(--muted);
}
.empty b { font: 400 28px/1 var(--f-title); letter-spacing: .04em; color: var(--night); }

.skeleton {
  min-height: 120px; border-radius: 4px;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.7) 50%, transparent 70%) 0 0 / 200% 100%, var(--dots) 0 0 / 7px 7px, #F1EEE3;
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0, 0 0, 0 0; } }

/* bandiera */
.flag { display: inline-block; line-height: 1; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
img.flag { width: 1.4em; height: auto; vertical-align: -.15em; border: 1.5px solid var(--ink); border-radius: 2px; }

/* stripe colore team */
.team-bar { display: inline-block; width: 6px; height: 1.25em; border: 1.5px solid var(--ink); background: var(--c, #999); transform: skewX(-12deg); flex: none; }

/* ------------------------------------------------------------ fumetti */

.bubble {
  position: relative;
  margin: 0;
  background: #fff;
  border: var(--b) solid var(--ink);
  border-radius: 28px;
  padding: 12px 20px;
  box-shadow: 4px 4px 0 var(--ink);
}
/* coda del fumetto: nero sotto, bianco sopra */
.bubble::before, .bubble::after {
  content: ""; position: absolute;
  clip-path: polygon(0 0, 100% 0, 18% 100%);
}
.bubble::before { left: 46px; bottom: -27px; width: 36px; height: 28px; background: var(--ink); }
.bubble::after { left: 49.5px; bottom: -19px; width: 26px; height: 22px; background: inherit; }

.bubble--payoff {
  display: inline-block;
  padding: 16px 30px 14px;
  border-radius: 50% / 46%;
  border-width: 4px;
  box-shadow: 6px 6px 0 var(--ink);
  transform: rotate(-2.2deg);
}
.bubble--payoff p {
  margin: 0;
  font: 400 clamp(26px, 7.6vw, 40px)/1 var(--f-title);
  letter-spacing: .03em;
  color: var(--night);
}
.bubble--payoff::before { left: auto; right: 64px; bottom: -32px; width: 44px; height: 34px; clip-path: polygon(0 0, 100% 0, 88% 100%); }
.bubble--payoff::after { left: auto; right: 69px; bottom: -22px; width: 33px; height: 26px; clip-path: polygon(0 0, 100% 0, 88% 100%); }

.bubble--shout {
  background: var(--yellow);
  border-radius: 14px;
  font: italic 800 17px/1.25 var(--f-cond);
  padding: 10px 14px 10px 46px;
  transform: rotate(-1.2deg);
}
.bubble--shout::before { top: -21px; bottom: auto; left: 40px; width: 30px; height: 22px; clip-path: polygon(30% 0, 100% 100%, 0 100%); }
.bubble--shout::after { top: -14px; bottom: auto; left: 44px; width: 22px; height: 17px; clip-path: polygon(30% 0, 100% 100%, 0 100%); }
.bubble--shout .bang {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%) rotate(-8deg);
  font: 400 30px/1 var(--f-title); color: var(--red); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill;
}

/* ------------------------------------------------------------ logo */

.logo { display: block; width: 100%; height: auto; }
.logo text { font-family: var(--f-title); }
.logo .l-tag { font-family: var(--f-cond); font-style: italic; font-weight: 800; }

/* ------------------------------------------------------------ boot */

.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--night); z-index: 50; transition: opacity .3s; }
.boot.gone { opacity: 0; pointer-events: none; }
.boot-lights, .lights { display: flex; gap: 8px; padding: 8px 10px; background: var(--ink); border-radius: 10px; border: 3px solid var(--ink); }
.boot-lights i, .lights i { display: block; width: 22px; height: 22px; border-radius: 50%; background: #3A0B0E; box-shadow: inset 0 -3px 0 rgba(0,0,0,.4); }
.boot-lights i { animation: light 1.6s infinite; }
.boot-lights i:nth-child(2) { animation-delay: .15s } .boot-lights i:nth-child(3) { animation-delay: .3s }
.boot-lights i:nth-child(4) { animation-delay: .45s } .boot-lights i:nth-child(5) { animation-delay: .6s }
@keyframes light { 0%, 20% { background: #3A0B0E; } 30%, 70% { background: var(--red); box-shadow: 0 0 14px var(--red); } 80%, 100% { background: #3A0B0E; } }
.lights i.on { background: var(--red); box-shadow: 0 0 12px var(--red), inset 0 -3px 0 rgba(0,0,0,.25); }
.lights.go i { background: #3A0B0E; box-shadow: none; transition: background .05s; }
.lights.err i { background: var(--yellow); box-shadow: 0 0 10px var(--yellow); animation: blink .5s steps(2) 3; }

/* ============================================================ LOGIN */

.login {
  position: relative; min-height: 100dvh; overflow: hidden;
  background:
    linear-gradient(180deg, transparent 60%, rgba(19,32,61,.25)),
    var(--sky);
  z-index: 1;
}
.login-burst {
  position: absolute; inset: -30%;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,.55) 0 1.6deg, transparent 1.6deg 7deg);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 12%, #000 45%);
  mask: radial-gradient(circle at 50% 50%, transparent 12%, #000 45%);
  animation: spin 120s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.login::after { /* striscia a scacchi in basso */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 14px;
  background: var(--checker) 0 0 / 14px 14px; border-top: 3px solid var(--ink);
}

.login-grid {
  position: relative;
  display: grid; gap: 8px;
  max-width: 1180px; margin: 0 auto;
  padding: 18px 16px 48px;
}
.login-hero { margin: 0; position: relative; }
.hero-frame {
  position: relative;
  border: 5px solid var(--ink);
  background: #fff;
  box-shadow: 9px 9px 0 var(--night);
  transform: rotate(-1.6deg);
  aspect-ratio: 1 / .86;
}
.hero-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.hero-frame::after { /* retino d'angolo */
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle, rgba(11,14,26,.55) 1.3px, transparent 1.9px) 0 0 / 7px 7px;
  -webkit-mask: linear-gradient(20deg, #000 0%, transparent 28%);
  mask: linear-gradient(20deg, #000 0%, transparent 28%);
  pointer-events: none;
}
.hero-tag {
  position: absolute; z-index: 2;
  font: italic 800 12px/1.1 var(--f-cond); letter-spacing: .08em;
  padding: 4px 9px; border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.hero-tag--top { top: -12px; left: 14px; background: var(--yellow); transform: rotate(-1.5deg); }
.hero-tag--bottom { right: 10px; bottom: -13px; background: #fff; transform: rotate(1deg); }
.hero-sfx {
  position: absolute; right: -6px; top: 10%;
  font: 400 clamp(34px, 10vw, 64px)/1 var(--f-title); letter-spacing: .02em;
  color: var(--yellow);
  -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill;
  text-shadow: 4px 4px 0 var(--red);
  transform: rotate(9deg);
  z-index: 3;
}

.login-side { position: relative; display: flex; flex-direction: column; align-items: center; margin-top: -26px; z-index: 4; }
.logo-wrap { width: min(100%, 420px); filter: drop-shadow(5px 6px 0 var(--night)); }
.tagline {
  margin: 2px 0 0;
  font: italic 900 clamp(17px, 4.8vw, 22px)/1 var(--f-cond); letter-spacing: .14em;
  color: var(--night);
  background: #fff; border: 3px solid var(--ink); padding: 6px 14px 5px;
  box-shadow: 4px 4px 0 var(--ink);
  transform: skewX(-12deg);
}
.payoff { display: flex; flex-direction: column; align-items: center; margin: 26px 0 10px; }
.payoff-sign {
  align-self: flex-end;
  margin: 26px 8px 0 0;
  font: 400 20px/1 var(--f-hand); font-style: normal;
  color: var(--night);
  transform: rotate(-4deg);
}

.login-card { width: min(100%, 420px); margin-top: 18px; display: grid; gap: 12px; padding: 26px 18px 20px; }
.field { display: grid; gap: 4px; }
.field span { font: italic 800 14px/1 var(--f-cond); letter-spacing: .08em; text-transform: uppercase; }
.field input {
  width: 100%; padding: 12px 12px;
  font: 600 18px/1.2 var(--f-text);
  background: #fff; border: 3px solid var(--ink); border-radius: 8px;
  box-shadow: inset 3px 3px 0 rgba(19,32,61,.12);
}
.field input:focus { outline: none; border-color: var(--night); box-shadow: inset 3px 3px 0 rgba(19,32,61,.12), 0 0 0 4px var(--yellow); }
.login-card .lights { justify-self: center; margin-top: 4px; }
.btn-go {
  display: grid; justify-items: center; gap: 0;
  padding: 12px 10px 10px;
  background: var(--red); color: #fff;
  border: 4px solid var(--ink); border-radius: 14px;
  box-shadow: 6px 6px 0 var(--ink);
  transition: transform .08s, box-shadow .08s;
}
.btn-go span { font: 400 34px/1 var(--f-title); letter-spacing: .06em; -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; }
.btn-go small { font: italic 700 14px/1.2 var(--f-cond); letter-spacing: .1em; text-transform: uppercase; color: #FFE3E4; }
.btn-go:hover { transform: translate(-1px, -2px); box-shadow: 7px 8px 0 var(--ink); }
.btn-go:active, .btn-go[disabled] { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--ink); }
.login-error { margin-top: 16px; }

@media (min-width: 860px) {
  .login-grid { grid-template-columns: 1.08fr 1fr; align-items: center; gap: 56px; padding: 56px 32px 64px; min-height: 100dvh; }
  .hero-frame { aspect-ratio: 1 / 1; }
  .login-side { margin-top: 0; }
  .login-burst { inset: -40%; background-position: 70% 30%; }
  .payoff { margin-top: 30px; }
}

/* ============================================================ APP SHELL */

.app { position: relative; z-index: 1; min-height: 100dvh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 12px;
  background: var(--night);
  background-image: var(--dots-w); background-size: 6px 6px;
  border-bottom: 3px solid var(--ink);
}
.topbar-logo { display: block; width: 150px; flex: none; }
.topnav { display: none; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.feed-status { display: none; font: 700 13px/1.1 var(--f-cond); color: var(--suit); letter-spacing: .03em; text-align: right; }
.feed-status b { color: #fff; }
.feed-status .ok { color: #5BE38F; } .feed-status .ko { color: #FF8A8F; }

.btn-radio {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px 5px;
  font: 400 19px/1 var(--f-title); letter-spacing: .06em;
  color: var(--ink); background: var(--yellow);
  border: 3px solid var(--ink); border-radius: 999px;
  box-shadow: 3px 3px 0 #000;
}
.btn-radio svg { width: 20px; height: 20px; }
.btn-radio:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.btn-icon {
  display: inline-grid; place-items: center;
  min-width: 38px; height: 38px; padding: 0 8px;
  background: #fff; color: var(--ink);
  border: 3px solid var(--ink); border-radius: 10px;
  font: italic 800 13px/1 var(--f-cond); letter-spacing: .06em;
}
.btn-icon svg { width: 20px; height: 20px; }
.btn-icon--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.topbar #logout { display: none; }

.view { position: relative; z-index: 1; flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; padding: 8px 16px calc(96px + var(--safe-b)); outline: none; }
.view > :first-child { margin-top: 18px; }

.foot { position: relative; z-index: 1; padding: 14px 16px calc(84px + var(--safe-b)); text-align: center; font: 600 13px/1.4 var(--f-cond); letter-spacing: .03em; color: var(--night); }

.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px 6px calc(6px + var(--safe-b));
  background: var(--night);
  border-top: 3px solid var(--ink);
  box-shadow: 0 -4px 0 rgba(11,14,26,.25);
}
.bottomnav a, .bottomnav button {
  display: grid; justify-items: center; gap: 1px;
  padding: 5px 2px 3px; border-radius: 10px;
  background: none; border: 0;
  color: var(--suit); text-decoration: none;
  font: italic 800 12px/1.1 var(--f-cond); letter-spacing: .06em; text-transform: uppercase;
  min-width: 0;
}
.bottomnav span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bottomnav svg { width: 24px; height: 24px; }
.bottomnav .on { color: var(--ink); background: var(--yellow); box-shadow: inset 0 0 0 2.5px var(--ink); }
.bottomnav .bn-radio { color: var(--yellow); }

@media (min-width: 900px) {
  .topbar { height: 66px; padding: 0 20px; gap: 22px; }
  .topbar-logo { width: 178px; }
  .topnav { display: flex; gap: 6px; }
  .topnav a {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 14px 6px;
    font: italic 800 17px/1 var(--f-cond); letter-spacing: .05em; text-transform: uppercase;
    color: #fff; text-decoration: none;
    border: 2.5px solid transparent; border-radius: 8px;
    transform: skewX(-10deg);
  }
  .topnav a > * { transform: skewX(10deg); }
  .topnav svg { width: 18px; height: 18px; }
  .topnav a:hover { border-color: rgba(255,255,255,.4); }
  .topnav a.on { background: var(--yellow); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 #000; }
  .feed-status { display: block; }
  .topbar #logout { display: inline-grid; }
  .bottomnav { display: none; }
  .view { padding: 12px 24px 48px; }
  .foot { padding-bottom: 24px; }
}

/* ============================================================ HOME */

.home { display: grid; gap: 30px; }
.home-grid { display: grid; gap: 30px; }
@media (min-width: 900px) {
  .home-grid { grid-template-columns: 1.25fr 1fr 1fr; align-items: start; }
}

/* eroe del weekend */
.gp-hero {
  position: relative; overflow: hidden;
  display: grid; gap: 18px;
  padding: 26px 16px 18px;
  background: var(--night); color: #fff;
  border: 4px solid var(--ink); border-radius: 8px;
  box-shadow: 7px 7px 0 var(--ink);
  isolation: isolate;
}
.gp-hero::before { /* linee di velocità */
  content: ""; position: absolute; inset: -60%; z-index: -1;
  background: repeating-conic-gradient(from 3deg at 30% 45%, rgba(79,179,240,.42) 0 1.3deg, transparent 1.3deg 6deg);
  -webkit-mask: radial-gradient(circle at 30% 45%, transparent 8%, #000 40%);
  mask: radial-gradient(circle at 30% 45%, transparent 8%, #000 40%);
}
.gp-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--checker) 0 0 / 12px 12px; border-top: 3px solid var(--ink); }
.gp-hero-main { display: grid; gap: 10px; align-content: start; }
.gp-hero .round-tag { justify-self: start; }
.round-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px 3px;
  font: italic 800 14px/1.1 var(--f-cond); letter-spacing: .1em; text-transform: uppercase;
  background: var(--yellow); color: var(--ink);
  border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 #000;
  transform: skewX(-10deg);
}
.gp-hero-title { display: flex; align-items: center; gap: 12px; }
.gp-hero-title .flag { font-size: clamp(44px, 12vw, 76px); filter: drop-shadow(3px 3px 0 #000); }
.gp-hero-title img.flag { width: clamp(56px, 14vw, 92px); border-width: 3px; box-shadow: 4px 4px 0 #000; }
.gp-hero h1 { font-size: clamp(44px, 12.5vw, 92px); }
.gp-hero .official { margin: 0; font: italic 600 15px/1.25 var(--f-cond); color: var(--suit); letter-spacing: .02em; }
.gp-hero .where { display: flex; flex-wrap: wrap; gap: 8px; }
.gp-hero .where .chip { background: rgba(255,255,255,.1); color: #fff; border-color: var(--suit); }
.gp-hero .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.gp-hero .circuit {
  position: absolute; right: -20px; top: 8px; width: 46%; max-width: 330px; opacity: .2; z-index: -1;
  filter: invert(1) brightness(2);
}

.sessions { display: grid; gap: 8px; align-content: start; }
.sess {
  display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: #fff; color: var(--ink);
  border: 3px solid var(--ink); border-radius: 8px;
  box-shadow: 3px 3px 0 #000;
  text-decoration: none;
}
.sess .code { font: 400 24px/1 var(--f-title); letter-spacing: .03em; text-align: center; color: var(--night); }
.sess .what { min-width: 0; }
.sess .what b { display: block; font: 800 16px/1.1 var(--f-cond); letter-spacing: .02em; text-transform: uppercase; }
.sess .what span { font: 600 13px/1.2 var(--f-cond); color: var(--muted); }
.sess.is-live { background: var(--yellow); }
.sess.is-done { background: #EEF4FB; }
.sess.is-done .code { color: var(--muted); }
.sess .cd { font: 800 17px/1 var(--f-cond); font-variant-numeric: tabular-nums; color: var(--night); text-align: right; white-space: nowrap; }
.sess .cd small { display: block; font-size: 11px; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
a.sess:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 #000; }

@media (min-width: 900px) {
  .gp-hero { grid-template-columns: 1.2fr 1fr; padding: 32px 28px 30px; gap: 28px; }
}

/* classifiche e tabelle compatte */
.rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.rank li {
  display: grid; grid-template-columns: 30px 8px 1fr auto auto; align-items: center; gap: 8px;
  padding: 5px 6px; border-radius: 4px;
}
.rank li:nth-child(odd) { background: rgba(169, 212, 245, .22); }
.rank .p { font: 400 21px/1 var(--f-title); text-align: center; color: var(--night); }
.rank li:nth-child(1) .p { color: var(--ink); background: var(--yellow); border: 2px solid var(--ink); border-radius: 4px; }
.rank .n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 16px/1.15 var(--f-cond); }
.rank .n small { font-weight: 600; color: var(--muted); margin-left: 4px; }
.rank .pts { font: 800 17px/1 var(--f-cond); font-variant-numeric: tabular-nums; text-align: right; }
.rank .d { font: 700 12px/1 var(--f-cond); color: var(--pos); min-width: 30px; text-align: right; font-variant-numeric: tabular-nums; }
.rank .d.z { color: transparent; }
.more { margin-top: 10px; display: flex; justify-content: center; }

/* sentiment preview */
.senti-row { display: grid; gap: 24px; }
@media (min-width: 760px) { .senti-row { grid-template-columns: repeat(3, 1fr); } }
.senti-card { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.senti-card h3 { margin: 0 0 4px; font: 800 19px/1.15 var(--f-cond); }
.senti-card p { margin: 0; font-size: 14px; color: var(--muted); }
a.senti-card:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }

/* indicatore -1..+1 */
.gauge { display: block; width: 100%; height: auto; }
.gauge .val { font: 800 21px var(--f-cond); }
.gauge .lab { font: 700 10px var(--f-cond); letter-spacing: .08em; fill: var(--muted); }

/* ============================================================ STAGIONE */

.season-grid { display: grid; gap: 22px 16px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .season-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .season-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .season-grid { grid-template-columns: repeat(4, 1fr); } }

.gp-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; gap: 6px;
  min-height: 168px;
  padding: 12px 12px 10px;
  background: var(--paper);
  border: 3px solid var(--ink); border-radius: 6px;
  box-shadow: 5px 5px 0 var(--ink);
  text-decoration: none; color: inherit;
  transition: transform .1s, box-shadow .1s;
  isolation: isolate;
}
.gp-card:hover { transform: translate(-2px, -2px) rotate(-.4deg); box-shadow: 7px 7px 0 var(--ink); }
.gp-card .rn {
  position: absolute; right: 8px; top: -2px; z-index: -1;
  font: 400 76px/1 var(--f-title); color: rgba(79,179,240,.32);
  -webkit-text-stroke: 2px rgba(19,32,61,.25);
}
.gp-card .top { display: flex; align-items: center; gap: 10px; }
.gp-card .top .flag { font-size: 34px; }
.gp-card .top img.flag { width: 44px; border-width: 2px; }
.gp-card h3 { margin: 0; font: 400 26px/.95 var(--f-title); letter-spacing: .03em; color: var(--night); }
.gp-card .sub { font: 600 14px/1.2 var(--f-cond); color: var(--muted); }
.gp-card .dates { font: italic 800 15px/1 var(--f-cond); letter-spacing: .04em; text-transform: uppercase; }
.gp-card .foot-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.podium { display: flex; gap: 4px; align-items: flex-end; }
.podium span {
  display: grid; place-items: center; width: 44px;
  font: 800 13px/1 var(--f-cond); letter-spacing: .02em;
  background: #fff; border: 2px solid var(--ink); border-top: 5px solid var(--c, #999);
}
.podium span:nth-child(1) { height: 34px; order: 2; background: var(--yellow); }
.podium span:nth-child(2) { height: 28px; order: 1; }
.podium span:nth-child(3) { height: 22px; order: 3; }
.gp-card.is-done { background: #F3F6FB; }
.gp-card.is-current {
  background: var(--yellow);
  box-shadow: 6px 6px 0 var(--red);
  border-width: 4px;
}
.gp-card.is-current::before {
  content: ""; position: absolute; inset: -50%; z-index: -2;
  background: repeating-conic-gradient(from 0deg at 70% 40%, rgba(255,255,255,.6) 0 1.5deg, transparent 1.5deg 7deg);
}
.gp-card.is-next { border-style: dashed; background: #fff; }
.gp-card.is-testing { min-height: 120px; background: #E9EEF6; }
.gp-card .sticker {
  position: absolute; right: -4px; bottom: 12px;
  padding: 3px 10px; font: 400 18px/1 var(--f-title); letter-spacing: .05em;
  background: var(--red); color: #fff; border: 2.5px solid var(--ink);
  transform: rotate(-6deg); box-shadow: 3px 3px 0 var(--ink);
}
.gp-card .sticker--next { background: var(--night); }

/* ============================================================ PAGINA GP */

.gp-head {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 8px;
  padding: 20px 16px 22px;
  background: var(--night); color: #fff;
  border: 4px solid var(--ink); border-radius: 8px;
  box-shadow: 6px 6px 0 var(--ink);
}
.gp-head::before {
  content: ""; position: absolute; inset: -60%; z-index: -1;
  background: repeating-conic-gradient(from 0deg at 85% 50%, rgba(79,179,240,.35) 0 1.2deg, transparent 1.2deg 6deg);
}
.gp-head-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gp-head .flag { font-size: 46px; filter: drop-shadow(3px 3px 0 #000); }
.gp-head img.flag { width: 60px; border-width: 3px; }
.gp-head h1 { font-size: clamp(38px, 10vw, 66px); }
.gp-head .meta { display: flex; flex-wrap: wrap; gap: 8px; }
.gp-head .meta .chip { background: rgba(255,255,255,.1); color: #fff; border-color: var(--suit); }
.gp-head .switch { position: relative; }
.gp-head select {
  appearance: none; -webkit-appearance: none;
  padding: 6px 30px 6px 10px;
  font: italic 800 14px/1.1 var(--f-cond); letter-spacing: .05em; text-transform: uppercase;
  background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%230B0E1A'/%3E%3C/svg%3E") right 9px center / 10px no-repeat;
  color: var(--ink); border: 2.5px solid var(--ink); border-radius: 8px; box-shadow: 3px 3px 0 #000;
  max-width: 100%;
}

.tabs {
  position: sticky; top: 58px; z-index: 20;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px;
  margin: 18px -16px 0; padding: 10px 16px 10px;
  background: linear-gradient(var(--sky) 80%, transparent);
}
.tabs a {
  display: grid; place-items: center; text-align: center;
  padding: 8px 4px 7px; min-width: 0;
  font: italic 800 13px/1.05 var(--f-cond); letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ink);
}
.tabs a .ico { font-size: 17px; font-style: normal; line-height: 1.1; }
.tabs a.on { background: var(--yellow); transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
@media (min-width: 900px) {
  .tabs { top: 66px; display: flex; gap: 10px; margin: 22px 0 0; padding: 10px 0; }
  .tabs a { display: inline-flex; gap: 8px; padding: 9px 18px 8px; font-size: 17px; }
}

.tab-body { margin-top: 18px; display: grid; gap: 30px; }

.sess-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.sess-pick button {
  position: relative;
  padding: 7px 13px 6px;
  font: 400 20px/1 var(--f-title); letter-spacing: .05em;
  background: #fff; color: var(--night);
  border: 2.5px solid var(--ink); border-radius: 8px; box-shadow: 3px 3px 0 var(--ink);
}
.sess-pick button[aria-pressed="true"] { background: var(--night); color: var(--yellow); }
.sess-pick button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.sess-pick button .dot { position: absolute; top: -6px; right: -6px; width: 13px; height: 13px; border-radius: 50%; background: var(--red); border: 2px solid var(--ink); animation: blink 1s steps(2) infinite; }

.split { display: grid; gap: 30px; }
@media (min-width: 1000px) { .split { grid-template-columns: 1.7fr 1fr; align-items: start; } }

/* tabella risultati */
.res { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.res th {
  padding: 6px 6px; text-align: left;
  font: italic 800 12px/1 var(--f-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  border-bottom: 3px solid var(--ink);
}
.res td { padding: 6px 6px; border-bottom: 1.5px dashed rgba(19,32,61,.2); font: 700 15px/1.15 var(--f-cond); vertical-align: middle; }
.res tr:last-child td { border-bottom: 0; }
.res .num { text-align: right; white-space: nowrap; }
.res td.pos { width: 34px; font: 400 21px/1 var(--f-title); text-align: center; color: var(--night); }
.res tr:nth-child(1) td.pos span { display: inline-block; min-width: 26px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 4px; }
.res .drv { display: flex; align-items: center; gap: 7px; min-width: 0; }
.res .drv b { font-weight: 800; font-size: 16px; letter-spacing: .02em; }
.res .drv small { font-weight: 600; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res .gap { color: var(--muted); }
.res .q { font-size: 13px; color: var(--muted); }
.res .q.best { color: var(--ink); font-weight: 800; }
.res .pts { color: var(--pos); font-weight: 800; }
.res tr.out td { opacity: .65; }
.badge { display: inline-block; padding: 1px 5px; font: 800 11px/1.2 var(--f-cond); letter-spacing: .05em; color: #fff; background: var(--red); border: 1.5px solid var(--ink); border-radius: 3px; }
.badge--dns { background: var(--muted); }
.badge--dsq { background: var(--ink); }
.hide-sm { display: none; }
@media (min-width: 640px) {
  .hide-sm { display: table-cell; }
  span.hide-sm, small.hide-sm { display: inline; }
}
@media (max-width: 420px) {
  .res td, .res th { padding-left: 3px; padding-right: 3px; }
  .res .q { font-size: 12px; }
}

/* meteo */
.wx { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; }
.wx div { padding: 8px 8px 6px; background: #fff; border: 2.5px solid var(--ink); border-radius: 8px; text-align: center; }
.wx i { display: block; font-style: normal; font-size: 22px; line-height: 1; }
.wx b { display: block; font: 800 22px/1.05 var(--f-cond); font-variant-numeric: tabular-nums; }
.wx span { font: 700 11px/1 var(--f-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.wx .rain { background: var(--suit); }

/* direzione gara */
.rc { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 520px; overflow-y: auto; overscroll-behavior: contain; }
.rc li { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; font: 600 14px/1.3 var(--f-text); }
.rc .when { font: 800 12px/1.2 var(--f-cond); color: var(--muted); letter-spacing: .04em; }
.rc .fl { display: inline-block; width: 16px; height: 22px; border: 2px solid var(--ink); border-radius: 2px; margin-top: 2px; background: #fff; }
.fl--GREEN, .fl--CLEAR { background: #19B24B !important; }
.fl--YELLOW, .fl--DOUBLE.YELLOW { background: var(--yellow) !important; }
.fl--RED { background: var(--red) !important; }
.fl--BLUE { background: #2B6DE8 !important; }
.fl--CHEQUERED { background: var(--checker) 0 0 / 6px 6px !important; }
.fl--BLACK, .fl--BLACK.AND.WHITE { background: var(--ink) !important; }

/* passo gara */
.pace-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pace { display: grid; gap: 6px; }
.pace-row {
  display: grid; align-items: center; gap: 8px;
  grid-template-columns: 22px 48px 26px 1fr;
  grid-template-areas: "pos drv tyre bar" "pos meta meta spark";
  padding: 7px 8px; background: #fff; border: 2px solid var(--ink); border-radius: 6px;
}
.pace-row > .pos { grid-area: pos; font: 400 18px/1 var(--f-title); color: var(--muted); text-align: center; }
.pace-row > .drv { grid-area: drv; display: flex; align-items: center; gap: 6px; font: 800 16px/1 var(--f-cond); }
.pace-row > .tyre { grid-area: tyre; }
.pace-row > .barbox { grid-area: bar; position: relative; height: 26px; }
.pace-row > .meta { grid-area: meta; font: 600 12.5px/1.2 var(--f-cond); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pace-row > .spark { grid-area: spark; height: 24px; }
.barbox .bar {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--c); border: 2px solid var(--ink); border-radius: 0 6px 6px 0;
  background-image: linear-gradient(90deg, transparent, rgba(255,255,255,.35));
}
.barbox .t {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 800 15px/1 var(--f-cond); font-variant-numeric: tabular-nums;
  background: #fff; padding: 2px 5px; border: 2px solid var(--ink); border-radius: 4px;
}
.barbox .t small { color: var(--muted); font-weight: 700; margin-left: 4px; }
.pace-row.best { background: var(--paper-2); }
@media (min-width: 760px) {
  .pace-row { grid-template-columns: 28px 70px 30px 1fr 210px 130px; grid-template-areas: "pos drv tyre bar meta spark"; }
}

.tyre {
  display: inline-grid; place-items: center;
  width: 25px; height: 25px; border-radius: 50%;
  font: 800 12px/1 var(--f-cond); color: #fff;
  background: #222; border: 4px solid var(--tc, #888);
  box-shadow: 0 0 0 2px var(--ink);
}
.tyre--SOFT { --tc: #E8202A; } .tyre--MEDIUM { --tc: #FFD21E; } .tyre--HARD { --tc: #FFFFFF; }
.tyre--INTERMEDIATE { --tc: #23B14D; } .tyre--WET { --tc: #2B6DE8; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; font: 700 13px/1.2 var(--f-cond); color: var(--muted); align-items: center; }

/* telemetria */
.tele-pick { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.tele-pick .vs { font: 400 28px/1 var(--f-title); color: var(--red); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.pick { position: relative; }
.pick select {
  width: 100%; appearance: none; -webkit-appearance: none;
  padding: 9px 26px 9px 12px;
  font: 800 16px/1.1 var(--f-cond); letter-spacing: .02em;
  background: #fff; color: var(--ink);
  border: 3px solid var(--ink); border-left: 12px solid var(--c, var(--ink)); border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ink);
}
.pick::after { content: "▾"; position: absolute; right: 10px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 14px; }
.tele-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tele-card { padding: 10px 10px 8px; background: #fff; border: 3px solid var(--ink); border-top: 8px solid var(--c); border-radius: 8px; box-shadow: 3px 3px 0 var(--ink); min-width: 0; }
.tele-card .lap { font: 400 clamp(24px, 7vw, 34px)/1 var(--f-title); letter-spacing: .03em; }
.tele-card .who { font: 800 15px/1.1 var(--f-cond); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tele-card .sec { display: flex; flex-wrap: wrap; gap: 4px 10px; font: 700 12.5px/1.2 var(--f-cond); color: var(--muted); font-variant-numeric: tabular-nums; }
.tele-card .sec b { color: var(--ink); }
.tele-card .sec b.fast { color: #8A2BE2; }
.tele-readout { display: flex; flex-wrap: wrap; gap: 4px 14px; min-height: 22px; font: 700 14px/1.3 var(--f-cond); font-variant-numeric: tabular-nums; }
.tele-readout i { font-style: normal; color: var(--muted); }
.tele-chart { position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.tele-chart svg { display: block; width: 100%; }
.tele-chart .lbl { font: 800 11px var(--f-cond); letter-spacing: .08em; fill: var(--night); }
.tele-chart .tick { font: 600 10px var(--f-cond); fill: var(--muted); }

/* ============================================================ NOTIZIE E SENTIMENT */

.zone-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.zone-switch button {
  padding: 8px 4px 6px;
  font: 400 21px/1 var(--f-title); letter-spacing: .05em;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 8px; box-shadow: 3px 3px 0 var(--ink);
}
.zone-switch button[aria-pressed="true"] { background: var(--night); color: var(--yellow); }
.zones { display: grid; gap: 34px; }
@media (min-width: 1100px) {
  .zone-switch { display: none; }
  .zones { grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
  .zones > .zone[hidden] { display: grid !important; }
}

.zone { display: grid; gap: 14px; padding-top: 26px; }
.zone-top { display: grid; grid-template-columns: 1fr 118px; gap: 10px; align-items: center; }
.zone-top .desc { font: 600 14px/1.3 var(--f-cond); color: var(--muted); }
.zone h3.titolo { margin: 0; font: 400 clamp(26px, 6.6vw, 32px)/1 var(--f-title); letter-spacing: .02em; color: var(--night); }
.zone .sintesi { margin: 0; font-size: 15.5px; line-height: 1.5; }
.zone .umore { justify-self: start; }
.zone h4 { margin: 4px 0 0; font: italic 800 13px/1 var(--f-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.zone h4::after { content: ""; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 10px); opacity: .35; }

.temi { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.temi li { display: grid; gap: 3px; }
.temi .row { display: flex; align-items: center; gap: 8px; }
.temi .row b { font: 800 16px/1.15 var(--f-cond); flex: 1; min-width: 0; }
.temi .w { height: 8px; background: var(--suit); border: 1.5px solid var(--ink); border-radius: 4px; overflow: hidden; }
.temi .w i { display: block; height: 100%; background: var(--night); }
.temi p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.35; }

/* spunti: per Carlo, in risalto */
.spunti {
  position: relative;
  margin: 10px -4px 6px;
  padding: 26px 14px 14px;
  background: var(--yellow);
  background-image: radial-gradient(circle, rgba(232,32,42,.22) 1.2px, transparent 1.8px);
  background-size: 8px 8px;
  border: 4px solid var(--ink); border-radius: 10px;
  box-shadow: 6px 6px 0 var(--red);
  transform: rotate(-.6deg);
}
.spunti .onair {
  position: absolute; top: -17px; left: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 3px;
  font: 400 19px/1 var(--f-title); letter-spacing: .06em;
  color: #fff; background: var(--red);
  border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-2deg);
}
.spunti .onair svg { width: 16px; height: 16px; }
.spunti .onair::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; animation: blink 1.4s steps(2) infinite; }
.spunti ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.spunti li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 8px; font: 700 16.5px/1.3 var(--f-text); }
.spunti li::before {
  content: counter(s); display: grid; place-items: center;
  width: 28px; height: 28px; font: 400 20px/1 var(--f-title); color: var(--yellow);
  background: var(--night); border: 2px solid var(--ink); border-radius: 50%;
}
.spunti .for { position: absolute; right: 10px; top: 4px; font: 400 15px/1 var(--f-hand); color: var(--night); transform: rotate(3deg); }

.citati { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.citati a { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: start; text-decoration: none; padding: 6px 8px; background: #fff; border: 2px solid var(--ink); border-radius: 6px; font: 600 14px/1.3 var(--f-text); }
.citati a:hover { background: var(--paper-2); }
.citati small { display: block; font: 700 12px/1.2 var(--f-cond); color: var(--muted); letter-spacing: .03em; }
.citati .sdot { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--ink); margin-top: 4px; }

.countries { display: grid; gap: 5px; }
.country { display: grid; grid-template-columns: 26px 1fr 34px; gap: 8px; align-items: center; font: 700 14px/1 var(--f-cond); }
.country .flag { font-size: 20px; }
.country .cb { position: relative; height: 18px; background: rgba(169,212,245,.35); border: 1.5px solid var(--ink); border-radius: 3px; overflow: hidden; }
.country .cb i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--sc, var(--neu)); }
.country .cb span { position: absolute; left: 6px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 12.5px; text-shadow: 0 0 3px #fff, 0 0 3px #fff; }
.country .n { text-align: right; font-variant-numeric: tabular-nums; }

.people { display: flex; flex-wrap: wrap; gap: 6px; }
.people .chip { text-transform: none; font-size: 14px; }
.people .chip em { font-style: normal; opacity: .75; font-size: 12px; }

/* elenco notizie */
.news-filters { display: grid; gap: 10px; }
.news-filters .row { display: flex; flex-wrap: wrap; gap: 8px; }
.news-filters select {
  flex: 1 1 140px; min-width: 0; appearance: none; -webkit-appearance: none;
  padding: 8px 28px 8px 10px;
  font: 700 15px/1.1 var(--f-cond);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0h10L5 6z' fill='%230B0E1A'/%3E%3C/svg%3E") right 10px center / 10px no-repeat;
  border: 2.5px solid var(--ink); border-radius: 8px; box-shadow: 2px 2px 0 var(--ink);
}
.news { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.news-item {
  display: grid; grid-template-columns: 34px 1fr; gap: 10px;
  padding: 10px 12px; background: #fff;
  border: 2.5px solid var(--ink); border-left: 8px solid var(--sc, var(--neu)); border-radius: 6px;
  box-shadow: 3px 3px 0 var(--ink);
}
.news-item .flag { font-size: 26px; line-height: 1; }
.news-item img.flag { width: 30px; }
.news-item a.t { display: block; text-decoration: none; font: 700 16.5px/1.28 var(--f-text); }
.news-item a.t:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.news-item a.t svg { width: 13px; height: 13px; vertical-align: -1px; margin-left: 4px; opacity: .55; }
.news-item .orig { margin: 3px 0 0; font: italic 500 13px/1.3 var(--f-text); color: var(--muted); }
.news-item .meta { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; font: 700 13px/1.2 var(--f-cond); color: var(--muted); }
.news-item .meta .src { color: var(--night); letter-spacing: .03em; text-transform: uppercase; }
.news-item .meta .chip { font-size: 12px; padding: 0 7px; }
.news-item .about { cursor: pointer; background: var(--suit); border-color: var(--night); text-transform: none; }

/* ============================================================ RADIO BOX */

.radio {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
  width: 100vw; height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--night);
  background-image: var(--dots-w); background-size: 7px 7px;
  color: #fff;
  border-left: 4px solid var(--ink);
  transform: translateX(105%);
  transition: transform .28s cubic-bezier(.2,.9,.25,1.05);
  visibility: hidden;
}
.radio.open { transform: none; visibility: visible; }
.radio-scrim { display: none; }
@media (min-width: 760px) {
  .radio { width: 460px; box-shadow: -8px 0 0 rgba(11,14,26,.35); }
  .radio-scrim { position: fixed; inset: 0; z-index: 55; background: rgba(19,32,61,.25); }
  .radio.open + .radio-scrim { display: block; }
}
.radio-head {
  display: flex; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
  background: var(--ink); border-bottom: 3px solid var(--yellow);
}
.radio-title { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; min-width: 0; flex: 1; }
.radio-title strong { font: 400 26px/1 var(--f-title); letter-spacing: .07em; color: var(--yellow); }
.radio-led { grid-row: span 2; width: 14px; height: 14px; border-radius: 50%; background: #3BE37A; box-shadow: 0 0 10px #3BE37A; border: 2px solid #000; }
.radio.busy .radio-led { background: var(--red); box-shadow: 0 0 12px var(--red); animation: blink .6s steps(2) infinite; }
.radio-ch { font: 700 12px/1.2 var(--f-cond); letter-spacing: .08em; color: var(--suit); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.radio-wave { display: flex; align-items: center; gap: 3px; height: 26px; }
.radio-wave i { width: 3px; height: 30%; background: var(--suit); border-radius: 2px; opacity: .5; }
.radio.busy .radio-wave i { animation: wave .9s ease-in-out infinite; opacity: 1; background: var(--yellow); }
.radio-wave i:nth-child(2n) { animation-delay: -.3s !important; } .radio-wave i:nth-child(3n) { animation-delay: -.6s !important; }
@keyframes wave { 50% { height: 100%; } }

.radio-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 14px 8px; display: flex; flex-direction: column; gap: 18px; }
.radio-hello { text-align: center; padding: 10px 6px; }
.radio-hello .comic { font-size: 34px; }
.radio-hello p { margin: 10px auto 0; max-width: 34ch; font: 600 15px/1.4 var(--f-text); color: var(--suit); }

.msg { max-width: 92%; }
.msg--user { align-self: flex-end; }
.msg--bot { align-self: flex-start; width: 92%; }
.msg .who { font: italic 800 11px/1 var(--f-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--suit); margin: 0 0 5px 6px; }
.msg--user .who { text-align: right; margin-right: 6px; }
.msg .bubble { color: var(--ink); padding: 10px 14px; font: 500 15.5px/1.45 var(--f-text); border-radius: 16px; box-shadow: 3px 3px 0 #000; }
.msg--user .bubble { background: var(--yellow); }
.msg--user .bubble::before { left: auto; right: 18px; bottom: -16px; width: 22px; height: 17px; clip-path: polygon(0 0, 100% 0, 85% 100%); }
.msg--user .bubble::after { left: auto; right: 21px; bottom: -11px; width: 15px; height: 12px; clip-path: polygon(0 0, 100% 0, 85% 100%); }
.msg--bot .bubble::before { left: 16px; bottom: auto; top: -16px; width: 22px; height: 17px; clip-path: polygon(0 100%, 100% 100%, 15% 0); }
.msg--bot .bubble::after { left: 19px; bottom: auto; top: -10px; width: 15px; height: 12px; clip-path: polygon(0 100%, 100% 100%, 15% 0); }
.msg--bot .who { margin-bottom: 12px; }
.msg--err .bubble { background: #FFDCDD; }

.tools { display: grid; gap: 3px; margin-bottom: 8px; }
.tool { display: flex; gap: 6px; align-items: baseline; font: 700 13px/1.3 var(--f-cond); letter-spacing: .02em; color: var(--muted); }
.tool::after { content: "…"; animation: blink 1s steps(2) infinite; }
.tool.ok::after { content: " ✓"; color: var(--pos); animation: none; }

.md p { margin: 0 0 .6em; } .md p:last-child { margin-bottom: 0; }
.md ul, .md ol { margin: .2em 0 .6em; padding-left: 1.3em; }
.md li { margin: .15em 0; }
.md h3, .md h4 { margin: .4em 0 .3em; font: 800 17px/1.2 var(--f-cond); text-transform: uppercase; letter-spacing: .04em; }
.md code { font: 600 .9em ui-monospace, Menlo, monospace; background: rgba(19,32,61,.08); padding: 0 3px; border-radius: 3px; }
.md a { color: var(--sky-d); font-weight: 700; }
.md .tbl { max-width: 100%; overflow-x: auto; margin: .3em 0 .6em; }
.md table { border-collapse: collapse; font: 600 13.5px/1.25 var(--f-cond); font-variant-numeric: tabular-nums; }
.md th, .md td { border: 1.5px solid var(--ink); padding: 3px 6px; text-align: left; }
.md th { background: var(--night); color: #fff; letter-spacing: .04em; }
.md tr:nth-child(even) td { background: rgba(169,212,245,.3); }
.caret { display: inline-block; width: 8px; height: 1em; background: var(--red); vertical-align: -2px; animation: blink .7s steps(2) infinite; margin-left: 2px; }

.radio-suggest { display: flex; gap: 6px; padding: 8px 12px 4px; overflow-x: auto; scrollbar-width: none; }
.radio-suggest::-webkit-scrollbar { display: none; }
.radio-suggest button {
  flex: none; padding: 6px 11px; max-width: 260px;
  font: 700 13.5px/1.2 var(--f-cond); text-align: left;
  background: #fff; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 14px 14px 14px 3px;
  box-shadow: 2px 2px 0 #000;
}
.radio-hello .radio-suggest { flex-wrap: wrap; justify-content: center; overflow: visible; padding: 16px 0 0; }
.radio-hello .radio-suggest button { flex: 0 1 auto; white-space: normal; }

.radio-input {
  display: flex; gap: 8px; align-items: flex-end;
  padding: 10px 12px calc(12px + var(--safe-b));
  background: var(--ink);
  border-top: 3px solid var(--night-2);
}
.radio-input textarea {
  flex: 1; resize: none; max-height: 140px; min-height: 46px;
  padding: 11px 12px;
  font: 500 16px/1.35 var(--f-text);
  background: #fff; color: var(--ink);
  border: 3px solid var(--yellow); border-radius: 12px;
}
.radio-input textarea:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,210,30,.45); }
.ptt {
  flex: none; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  border: 3px solid #000; box-shadow: 0 0 0 3px var(--yellow), 3px 4px 0 3px #000;
}
.ptt svg { width: 22px; height: 22px; }
.ptt:active { transform: translateY(2px); }
.radio.busy .ptt { background: var(--yellow); color: var(--ink); }

body.radio-open { overflow: hidden; }
@media (min-width: 760px) { body.radio-open { overflow: auto; } }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(86px + var(--safe-b)); transform: translateX(-50%); z-index: 70; max-width: calc(100vw - 32px); }
@media (min-width: 900px) { .toast { bottom: 28px; } }

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

/* ============================================================ SITO PUBBLICO: IL GIORNALE */

.mast { position: relative; z-index: 2; }
.mast-line {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 14px;
  background: var(--night); color: var(--suit);
  font: italic 700 13px/1.2 var(--f-cond); letter-spacing: .06em; text-transform: uppercase;
  border-bottom: 3px solid var(--ink);
}
.mast-line #today { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.live-state { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: #fff; }
.live-state i { width: 10px; height: 10px; border-radius: 50%; background: var(--neu); border: 2px solid #000; }
.live-state.on i { background: #3BE37A; box-shadow: 0 0 8px #3BE37A; animation: blink 1.6s steps(2) infinite; }
.live-state.off i { background: var(--red); }
.area-link {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px; flex: none;
  padding: 3px 10px; border: 2px solid rgba(169,212,245,.45); border-radius: 999px;
  color: var(--suit); text-decoration: none; font: italic 700 12.5px/1.2 var(--f-cond); letter-spacing: .06em; text-transform: uppercase;
}
.area-link svg { width: 13px; height: 13px; }
.area-link:hover { color: var(--ink); background: var(--yellow); border-color: var(--ink); }
.mast-main {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: center;
  padding: 18px 16px 22px;
}
.mast-burst {
  position: absolute; inset: -80% -20%; z-index: -1;
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255,255,255,.5) 0 1.5deg, transparent 1.5deg 7deg);
  -webkit-mask: radial-gradient(ellipse at 50% 50%, transparent 14%, #000 50%);
  mask: radial-gradient(ellipse at 50% 50%, transparent 14%, #000 50%);
}
.mast-logo { display: block; width: min(86vw, 440px); filter: drop-shadow(5px 6px 0 var(--night)); }
.mast-main .tagline { margin-top: 4px; }
.mast-sub { margin: 12px 0 0; font: italic 800 15px/1.2 var(--f-cond); letter-spacing: .12em; text-transform: uppercase; color: var(--night); text-align: center; }
@media (min-width: 900px) {
  .mast-main { padding: 26px 16px 30px; }
  .mast-logo { width: 470px; }
}

.ticker {
  display: flex; align-items: stretch; overflow: hidden;
  background: var(--red); color: #fff;
  border-top: 3px solid var(--ink);
  font: 700 15px/1 var(--f-cond); letter-spacing: .02em;
}
.tk-label { flex: none; display: grid; place-items: center; padding: 8px 12px 7px; background: var(--yellow); color: var(--ink); font: 400 19px/1 var(--f-title); letter-spacing: .06em; border-right: 3px solid var(--ink); }
.tk-track { flex: 1; overflow: hidden; min-width: 0; display: flex; align-items: center; }
.tk-move { display: flex; gap: 48px; padding-left: 24px; white-space: nowrap; animation: tick 38s linear infinite; }
.tk-move a { color: #fff; text-decoration: none; }
.tk-move b { color: var(--yellow); margin-right: 4px; }
@keyframes tick { to { transform: translateX(-50%); } }

.page { position: relative; z-index: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 4px 16px 40px; outline: none; }
.front { display: grid; gap: 34px; }
.front-main { min-width: 0; }
.front-main .h-sec { margin-top: 26px; }
.front-aside { display: grid; gap: 30px; align-content: start; min-width: 0; }
@media (min-width: 1000px) {
  .front { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); gap: 34px; }
  .front-aside { padding-top: 92px; }
}
.kind-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 22px; }
.kind-filter .chip { padding: 4px 12px 3px; font-size: 14px; box-shadow: 2px 2px 0 var(--ink); }
.feed { display: grid; gap: 26px; }
.post-grid { display: grid; gap: 24px; }
@media (min-width: 700px) { .post-grid { grid-template-columns: 1fr 1fr; } }

.post {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 16px 14px;
  background: var(--paper);
  border: 3px solid var(--ink); border-radius: 6px;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .1s, box-shadow .1s;
}
.post:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.post-link { position: absolute; inset: 0; z-index: 1; }
.post-link:focus-visible { outline-offset: -6px; }
.post-img { margin: -16px -16px 2px; border-bottom: 3px solid var(--ink); aspect-ratio: 16 / 9; overflow: hidden; background: var(--night); }
.post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.post-title { margin: 0; font: 800 22px/1.12 var(--f-cond); letter-spacing: .005em; color: var(--ink); }
.post-sum { margin: 0; font-size: 15px; line-height: 1.45; color: #2C3347; }
.post-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: auto; font: 700 13px/1.2 var(--f-cond); color: var(--muted); letter-spacing: .03em; }
.post-meta .tag, .story .tag { color: var(--sky-d); }
.post--lead { padding: 20px 18px 18px; gap: 12px; background-image: linear-gradient(var(--paper), var(--paper)); }
.post--lead::before {
  content: ""; position: absolute; right: 0; top: 0; width: 55%; height: 70%; z-index: 0; pointer-events: none;
  background: var(--dots) 0 0 / 7px 7px;
  -webkit-mask: linear-gradient(225deg, #000, transparent 60%); mask: linear-gradient(225deg, #000, transparent 60%);
}
.post--lead > * { position: relative; }
.post--lead .post-link { position: absolute; }
.post--lead .post-img { margin: -20px -18px 4px; }
.post--lead .post-title { font: 400 clamp(32px, 8.4vw, 50px)/.98 var(--f-title); letter-spacing: .02em; color: var(--night); }
.post--lead .post-sum { font-size: 17px; }
.post--urgent { border-color: var(--red); box-shadow: 5px 5px 0 var(--red); border-width: 4px; }
.post--urgent:hover { box-shadow: 7px 7px 0 var(--red); }
.post-sticker {
  position: absolute; right: -6px; top: 12px; z-index: 2;
  padding: 3px 12px; font: 400 17px/1 var(--f-title); letter-spacing: .06em;
  background: var(--yellow); border: 2.5px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(5deg); pointer-events: none;
}
.post.fresh { animation: fresh 1.6s ease-out; }
@keyframes fresh {
  0% { transform: scale(.92) rotate(-1deg); background-color: var(--yellow); }
  25% { transform: scale(1.02) rotate(.4deg); }
  100% { transform: none; }
}

.ktag {
  display: inline-block; padding: 3px 9px 2px;
  font: italic 800 12.5px/1.1 var(--f-cond); letter-spacing: .1em;
  border: 2px solid var(--ink); transform: skewX(-10deg); box-shadow: 2px 2px 0 var(--ink);
}
.k-breaking { background: var(--red); color: #fff; animation: blink 1.4s steps(2) infinite; }
.k-fia { background: #0B2E83; color: #fff; }
.k-carlo { background: var(--yellow); color: var(--ink); }
.k-analysis { background: var(--suit); color: var(--ink); }

.by { display: inline-flex; align-items: center; gap: 6px; font: 700 13.5px/1.1 var(--f-cond); letter-spacing: .03em; color: var(--night); }
.by b { font-weight: 800; letter-spacing: .08em; }
.by .face { width: 30px; height: 30px; border-radius: 50%; border: 2.5px solid var(--ink); object-fit: cover; background: var(--sky); box-shadow: 2px 2px 0 var(--ink); }
.by--carlo b { color: var(--red); }
.by--fonte { padding: 2px 8px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; }
.by--ai .ai-dot { display: grid; place-items: center; width: 24px; height: 24px; font: 400 13px/1 var(--f-title); letter-spacing: .04em; font-style: normal; color: var(--yellow); background: var(--night); border: 2px solid var(--ink); border-radius: 6px; }
.by--big { font-size: 16px; }
.by--big .face { width: 56px; height: 56px; border-width: 3px; }

/* GP corrente e striscia della stagione */
.cur-gp {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 8px; padding: 18px 16px 24px;
  background: var(--night); color: #fff;
  border: 4px solid var(--ink); border-radius: 8px; box-shadow: 6px 6px 0 var(--ink);
}
.cur-gp::before { content: ""; position: absolute; inset: -70%; z-index: -1; background: repeating-conic-gradient(from 0deg at 75% 40%, rgba(79,179,240,.4) 0 1.3deg, transparent 1.3deg 6deg); }
.cur-gp::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--checker) 0 0 / 10px 10px; border-top: 3px solid var(--ink); }
.cur-gp .round-tag { justify-self: start; }
.cur-gp-title { display: flex; align-items: center; gap: 10px; }
.cur-gp-title .flag { font-size: 44px; }
.cur-gp-title img.flag { width: 56px; border-width: 3px; box-shadow: 3px 3px 0 #000; }
.cur-gp h2 { font-size: clamp(38px, 10vw, 52px); }
.cur-gp p { margin: 0; font: 700 15px/1.3 var(--f-cond); color: var(--suit); letter-spacing: .03em; }
.cur-gp .prev { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: #fff; }
.cur-gp .pd { padding: 1px 7px; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-left: 6px solid var(--c); font-weight: 800; }

.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 5px; }
.strip li {
  display: grid; justify-items: center; gap: 1px; padding: 3px 0 2px;
  background: #fff; border: 2px solid var(--ink); border-radius: 4px;
  font: 800 11px/1.1 var(--f-cond);
}
.strip .r { color: var(--muted); }
.strip .f { font-size: 18px; line-height: 1.1; }
.strip .w { min-height: 12px; font-size: 10.5px; color: var(--ink); border-bottom: 3px solid var(--c, transparent); }
.strip .st-done { background: #EEF3F9; }
.strip .st-current { background: var(--yellow); box-shadow: 0 0 0 2px var(--red); animation: blink 1.6s steps(2) infinite; }
.strip .st-next { border-style: dashed; }
.after { margin: 0 0 8px; font: 600 13px/1.2 var(--f-cond); color: var(--muted); }

.empty-press { display: grid; justify-items: center; gap: 10px; padding: 40px 18px 30px; text-align: center; overflow: hidden; }
.empty-press .comic { font-size: clamp(30px, 8vw, 44px); }
.empty-press p { margin: 0; max-width: 42ch; font: 600 16px/1.4 var(--f-text); color: var(--muted); }
.press-art { position: relative; width: 100%; height: 70px; background: repeating-linear-gradient(90deg, var(--night) 0 3px, transparent 3px 14px) 0 50% / 100% 6px no-repeat; }
.press-art span { position: absolute; font: 400 34px/1 var(--f-title); color: var(--yellow); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; text-shadow: 3px 3px 0 var(--red); }
.press-art span:first-child { left: 10%; top: 4px; transform: rotate(-9deg); animation: shake .5s steps(2) infinite; }
.press-art span:last-child { right: 10%; top: 18px; transform: rotate(7deg); color: #fff; }
@keyframes shake { 50% { translate: 2px -2px; } }

/* articolo */
.story { max-width: 820px; margin: 0 auto; display: grid; gap: 26px; padding-top: 22px; }
.story .back { justify-self: start; }
.story-head { display: grid; gap: 14px; padding: 22px 18px 18px; }
.story-title { margin: 0; font: 400 clamp(34px, 8.6vw, 58px)/.98 var(--f-title); letter-spacing: .02em; color: var(--night); }
.story-sum { margin: 0; font: 600 19px/1.4 var(--f-text); color: #2C3347; }
.story-by { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 12px; border-top: 2px dashed rgba(19,32,61,.25); }
.story-when { font: 700 14px/1.2 var(--f-cond); color: var(--muted); letter-spacing: .03em; }
.story-by .btn { margin-left: auto; }
.story.post--urgent .story-head { border-color: var(--red); box-shadow: 6px 6px 0 var(--red); }
.story-img { margin: 0; border: 4px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); background: var(--night); }
.story-img img { display: block; width: 100%; }
.story-body { padding: 20px 18px; font: 500 18px/1.62 var(--f-text); }
.story-body h3, .story-body h4 { font: 800 22px/1.2 var(--f-cond); text-transform: none; letter-spacing: .01em; margin: 1em 0 .4em; color: var(--night); }
.story-body h3:first-child, .story-body h4:first-child { margin-top: 0; }
.story-body p { margin: 0 0 .9em; }
.story-body table { font-size: 15px; }
.story-src ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.story-src li { display: flex; gap: 8px; align-items: center; font: 700 16px/1.3 var(--f-cond); }
.story-src a { color: var(--night); }
.story-src a svg { width: 13px; height: 13px; margin-left: 4px; opacity: .6; }
.story-more .h-sec { margin-top: 10px; }

/* breaking in diretta */
.breaking {
  position: fixed; left: 0; right: 0; top: 0; z-index: 80; overflow: hidden; isolation: isolate;
  background: var(--red); color: #fff;
  border-bottom: 5px solid var(--ink);
  box-shadow: 0 8px 0 rgba(11,14,26,.35);
}
.breaking.in { animation: brkIn .5s cubic-bezier(.2,1.4,.4,1); }
@keyframes brkIn { from { transform: translateY(-110%); } }
.brk-burst { position: absolute; inset: -200% -10%; z-index: -1; background: repeating-conic-gradient(from 0deg at 18% 50%, rgba(255,210,30,.45) 0 2deg, transparent 2deg 8deg); animation: spin 30s linear infinite; }
.brk-in { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; padding: calc(12px + env(safe-area-inset-top, 0px)) 54px 14px 16px; color: #fff; text-decoration: none; max-width: 1240px; margin: 0 auto; }
.brk-word { grid-row: span 2; font: 400 clamp(34px, 9vw, 58px)/1 var(--f-title); letter-spacing: .04em; color: var(--yellow); -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--ink); transform: rotate(-4deg); animation: shake .3s steps(2) 6; }
.brk-title { font: 800 clamp(18px, 4.6vw, 24px)/1.15 var(--f-cond); text-shadow: 2px 2px 0 var(--ink); }
.brk-go { font: italic 800 14px/1 var(--f-cond); letter-spacing: .1em; text-transform: uppercase; color: var(--yellow); }
.brk-x { position: absolute; right: 10px; top: calc(10px + env(safe-area-inset-top, 0px)); width: 36px; height: 36px; display: grid; place-items: center; background: #fff; color: var(--ink); border: 3px solid var(--ink); border-radius: 50%; }
.brk-x svg { width: 18px; height: 18px; }
@media (max-width: 520px) { .brk-in { grid-template-columns: 1fr; } .brk-word { grid-row: auto; justify-self: start; } }

.pub .toast { bottom: calc(18px + var(--safe-b)); }
.bubble--toast { display: block; max-width: 520px; padding: 10px 16px; font: 700 15px/1.3 var(--f-cond); color: var(--ink); text-decoration: none; background: #fff; }
.bubble--toast::before { left: 30px; } .bubble--toast::after { left: 33.5px; }

.pub-foot { position: relative; z-index: 1; display: grid; justify-items: center; gap: 14px; padding: 30px 16px calc(36px + var(--safe-b)); text-align: center; background: var(--night); color: var(--suit); border-top: 4px solid var(--ink); font: 600 14px/1.5 var(--f-cond); letter-spacing: .02em; }
.pub-foot::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 10px; background: var(--checker) 0 0 / 10px 10px; border-top: 3px solid var(--ink); }
.pub-foot p { margin: 0; max-width: 60ch; }
.pub-foot b { color: #fff; }
.payoff--foot { margin: 6px 0 4px; }
.payoff--foot .bubble--payoff p { font-size: clamp(24px, 6.4vw, 32px); }
.payoff--foot .payoff-sign { color: var(--yellow); }
.area-link--foot { margin-left: 0; }

/* Instagram, avvisi push, invito all'installazione */
.ig-link { display: inline-flex; align-items: center; gap: 5px; color: #fff; text-decoration: none; white-space: nowrap; }
.ig-link svg { width: 16px; height: 16px; }
.ig-link:hover { color: var(--yellow); }
@media (max-width: 560px) { .ig-link span { display: none; } .mast-line #today { font-size: 12px; } }
.ig-foot { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; color: var(--ink); background: var(--yellow); border: 3px solid var(--ink); border-radius: 999px; box-shadow: 3px 3px 0 #000; text-decoration: none; font: italic 700 16px/1.1 var(--f-cond); letter-spacing: .03em; }
.ig-foot svg { width: 20px; height: 20px; }
.ig-foot b { font-weight: 900; }

.push { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -8px 0 22px; }
.push-note { font: 600 13.5px/1.3 var(--f-cond); color: var(--night); max-width: 46ch; }
.push .btn[disabled] { opacity: .6; }

.install { position: fixed; left: 12px; right: 12px; bottom: calc(14px + var(--safe-b)); z-index: 75; display: flex; justify-content: center; pointer-events: none; }
.install-card {
  pointer-events: auto;
  display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: start;
  width: min(100%, 440px); padding: 14px 44px 14px 14px;
  border-radius: 16px; animation: brkIn .45s cubic-bezier(.2,1.4,.4,1) reverse;
  animation-name: popUp;
}
@keyframes popUp { from { transform: translateY(120%); } }
.install-card::before, .install-card::after { display: none; }
.install-card img { border: 2.5px solid var(--ink); border-radius: 12px; }
.install-card p { margin: 0 0 8px; font: 600 15px/1.35 var(--f-text); }
.install-card ol { margin: 0; padding-left: 1.2em; font: 600 15px/1.45 var(--f-text); }
.install-card .ios-share { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 2px solid var(--sky-d); border-radius: 5px; color: var(--sky-d); font-size: 13px; vertical-align: -3px; }
.install-x { position: absolute; right: 8px; top: 8px; width: 32px; height: 32px; display: grid; place-items: center; background: #fff; border: 2.5px solid var(--ink); border-radius: 50%; }
.install-x svg { width: 16px; height: 16px; }
.d-short { display: none; }
@media (max-width: 560px) { .d-long { display: none; } .d-short { display: inline; } }
.push .push-note:only-child { color: var(--night); opacity: .8; }
.on-story .mast-main { padding: 10px 16px 12px; }
.on-story .mast-logo { width: min(52vw, 250px); }
.on-story .mast-main .tagline, .on-story .mast-sub { display: none; }
.sess-note { font: italic 700 12px/1 var(--f-cond); letter-spacing: .1em; text-transform: uppercase; color: var(--suit); text-align: right; }
@media (max-width: 559px) {
  .season-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .gp-card { min-height: 0; padding: 10px 9px 9px; gap: 5px; box-shadow: 4px 4px 0 var(--ink); }
  .gp-card .rn { font-size: 50px; right: 4px; }
  .gp-card .top { flex-direction: column; align-items: flex-start; gap: 4px; }
  .gp-card .top .flag { font-size: 28px; }
  .gp-card .top img.flag { width: 38px; }
  .gp-card h3 { font-size: 22px; overflow-wrap: anywhere; }
  .gp-card .sub { font-size: 12.5px; }
  .gp-card .dates { font-size: 13px; }
  .podium span { width: 38px; font-size: 12px; }
  .gp-card .sticker { font-size: 14px; bottom: auto; top: 8px; right: -4px; }
  .gp-card.is-testing { min-height: 0; }
}
@media (min-width: 640px) { .sm-only { display: none; } }
@media (max-width: 759px) {
  .pace-row { grid-template-areas: "pos drv tyre bar" "pos spark spark spark" "pos meta meta meta"; row-gap: 4px; }
  .pace-row > .meta { white-space: normal; }
  .pace-row > .spark { width: 100%; height: 22px; }
}
@keyframes fade { 50% { opacity: .15; } }
.tool::after, .caret { animation: fade 1s steps(2) infinite; }
.empty-press { overflow: visible; }
.press-art { overflow: hidden; }
.back-pub { margin-top: 18px; font: italic 800 14px/1 var(--f-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--night); background: #fff; padding: 6px 12px; border: 2.5px solid var(--ink); border-radius: 999px; text-decoration: none; box-shadow: 2px 2px 0 var(--ink); }

/* ------------------------------------------------------------------ cronometraggio (torre dei tempi) */
.tw-panel { padding: 22px 0 10px; background: var(--night); color: #fff; min-width: 0; }
.tw-box { display: grid; gap: 8px; min-width: 0; }
.tw-side { min-width: 0; }
.tw-side-grid { display: grid; gap: 30px; }
@media (min-width: 900px) { .tw-side-grid { grid-template-columns: 1fr 1.4fr; align-items: start; } }
.tw-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 0 12px; }
.tw-flag, .tw-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 2px solid #fff; border-radius: 4px;
  font: 800 13px/1.1 var(--f-cond); letter-spacing: .04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tw-chip { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.06); }
.tw-chip small { color: #B9C3D9; font-weight: 700; }
.tw-chip--q { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.tw-flag--green { background: #12813C; }
.tw-flag--yellow, .tw-flag--double_yellow, .tw-flag--vsc, .tw-flag--vsc_end { background: var(--yellow); color: var(--ink); border-color: var(--ink); }
.tw-flag--sc, .tw-flag--sc_end { background: #FF8A00; color: var(--ink); border-color: var(--ink); animation: blink 1.2s steps(2) infinite; }
.tw-flag--red { background: var(--red); animation: blink 1s steps(2) infinite; }
.tw-flag--chequered { background: #fff; color: var(--ink); }
.tw-ago { margin-left: auto; font: 700 12px/1 var(--f-cond); color: #B9C3D9; letter-spacing: .04em; }
.tw-ago.stale { color: var(--yellow); }
.tw-qline { padding: 0 12px; font: 600 14px/1.3 var(--f-cond); color: #DDE3F0; }
.tw-qline .danger-t { color: #FF6B72; }

.tw-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.tw { border-collapse: separate; border-spacing: 0; width: 100%; font: 700 14px/1.1 var(--f-cond); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tw th { position: sticky; top: 0; padding: 6px 6px; text-align: left; font: italic 800 11px/1 var(--f-cond); letter-spacing: .08em; text-transform: uppercase;
  color: #9AA6C2; background: var(--night); border-bottom: 2px solid rgba(255,255,255,.5); }
.tw td { padding: 5px 6px; border-bottom: 1px solid rgba(255,255,255,.09); vertical-align: middle; }
.tw .num { text-align: right; }
.tw .sticky0, .tw .sticky1 { position: sticky; z-index: 1; background: var(--night); }
.tw .sticky0 { left: 0; width: 40px; min-width: 40px; text-align: center; }
.tw .sticky1 { left: 40px; box-shadow: 4px 0 6px -4px rgba(0,0,0,.6); }
.tw td.pos { font: 400 19px/1 var(--f-title); color: #fff; }
.tw td.pos small { display: block; font: 800 10px/1 var(--f-cond); margin-top: 1px; }
.tw td.pos .up { color: #3FE07F; } .tw td.pos .down { color: #FF6B72; }
.tw .drv { display: flex; align-items: center; gap: 6px; }
.tw .drv b { font-weight: 800; font-size: 16px; letter-spacing: .03em; filter: brightness(1.35) saturate(1.1); }
.tw .team-bar { flex: none; }
.tw-row { cursor: pointer; }
.tw-row:hover td, .tw-row.open td { background: #22325A; }
.tw-row:focus-visible { outline: 2px solid var(--yellow); outline-offset: -2px; }
.tw-row.danger td.sticky0 { background: #7A121A; }
.tw-row.danger td { box-shadow: inset 0 -1px 0 rgba(255,107,114,.35); }
.tw-row.cut td { border-bottom: 2px dashed #FF6B72; }
.tw-row.elim td:not(.sticky0):not(.sticky1), .tw-row.outd td:not(.sticky0):not(.sticky1) { opacity: .55; }
.tw .gap { color: #C9D2E6; }
.tw .strong { font-weight: 800; }
.tw .cur { box-shadow: inset 0 -2px 0 var(--yellow); }
.tw .ideal small { color: #9AA6C2; font-size: 11px; }
.tw .del { text-decoration: line-through; opacity: .7; }
.sc--p { color: #C76BFF !important; } .sc--g { color: #3FE07F !important; } .sc--y { color: #FFE066; } .sc--n { color: inherit; }
.sc.old { color: #6F7C99 !important; }
.tw-st { display: inline-block; padding: 1px 4px; font: 800 10px/1.2 var(--f-cond); letter-spacing: .05em; color: var(--ink); background: #fff; border-radius: 3px; }
.tw-st--pit { background: var(--yellow); }

.mini { display: inline-flex; align-items: center; gap: 1px; vertical-align: middle; }
.mini .m, .tw-legend .m { display: inline-block; width: 4px; height: 12px; border-radius: 1px; background: #3A4767; }
.mini-sep { display: inline-block; width: 4px; }
.m--p { background: #B138DD !important; } .m--g { background: #19C25B !important; } .m--y { background: #F2C200 !important; } .m--l { background: #4FB3F0 !important; } .m--n { background: #3A4767; }

.tyre-cell { display: inline-flex; align-items: center; gap: 4px; }
.tyre-cell small { color: #C9D2E6; font-size: 12px; }
.tyre { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 3px solid; font: 800 11px/1 var(--f-cond); font-style: normal; background: #151A2B; color: #fff; }
.tyre--S { border-color: #E8202A; } .tyre--M { border-color: #FFD21E; } .tyre--H { border-color: #F2F2F2; } .tyre--I { border-color: #19B24B; } .tyre--W { border-color: #2B6DE8; }

.tw-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0 12px; font: 600 12px/1.3 var(--f-cond); color: #B9C3D9; }
.tw-legend span { display: inline-flex; align-items: center; gap: 5px; }
.tw-legend .muted { color: #8D98B3; }

.tw-detail td { padding: 0; background: #0E1830; white-space: normal; }
.tw-laps { position: sticky; left: 0; width: min(100vw - 40px, 720px); padding: 10px 12px 12px; display: grid; gap: 8px; }
.tw-facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 600 13px/1.3 var(--f-cond); color: #C9D2E6; }
.tw-facts b { color: #fff; }
.tw-strip { display: flex; gap: 2px; height: 20px; }
.tw-strip .stint { display: grid; place-items: center; min-width: 26px; border: 0; border-top: 4px solid; border-radius: 3px; background: #1E2A48; font: 800 11px/1 var(--f-cond); }
.tw-strip .stint.tyre--S { border-color: #E8202A; } .tw-strip .stint.tyre--M { border-color: #FFD21E; } .tw-strip .stint.tyre--H { border-color: #F2F2F2; }
.tw-strip .stint.tyre--I { border-color: #19B24B; } .tw-strip .stint.tyre--W { border-color: #2B6DE8; }
.tw-laps-scroll { max-height: 360px; overflow: auto; overscroll-behavior: contain; }
.tw-laps table { border-collapse: collapse; width: 100%; font: 700 13px/1.1 var(--f-cond); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tw-laps th { position: sticky; top: 0; background: #0E1830; padding: 4px 6px; font: italic 800 10px/1 var(--f-cond); letter-spacing: .08em; color: #9AA6C2; text-align: left; }
.tw-laps th.num, .tw-laps td.num { text-align: right; }
.tw-laps td { padding: 3px 6px; border-top: 1px solid rgba(255,255,255,.07); }
.tw-laps tr.del td.num { text-decoration: line-through; opacity: .7; }
.tw-laps .notes { display: flex; gap: 3px; }
.tw-laps .tyre { width: 17px; height: 17px; border-width: 2.5px; font-size: 10px; }

@media (max-width: 640px) {
  .tw td { padding: 5px 4px; }
  .tw th { padding: 6px 4px; }
  .tw .sticky0 { width: 32px; min-width: 32px; }
  .tw .sticky1 { left: 32px; }
  .tw td.pos { font-size: 17px; }
}
.tyre-hist { display: inline-flex; gap: 2px; margin-right: 4px; vertical-align: middle; }
.tyre-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; border: 2.5px solid; background: #151A2B; }
.tyre-dot.tyre--S { border-color: #E8202A; } .tyre-dot.tyre--M { border-color: #FFD21E; } .tyre-dot.tyre--H { border-color: #F2F2F2; }
.tyre-dot.tyre--I { border-color: #19B24B; } .tyre-dot.tyre--W { border-color: #2B6DE8; }

/* ================================================================== I VIDEO DI CARLO (canale YouTube) ====
   Griglia in «Esclusive di Carlo», striscia orizzontale in «Tutto». L'iframe arriva solo al clic (public.js). */
.yt-box { margin: 8px 0 30px; min-width: 0; }
.yt-panel { padding: 24px 14px 14px; background-image: var(--dots); background-size: 7px 7px; }
.yt-grid { display: grid; gap: 22px; }
@media (min-width: 640px) { .yt-grid { grid-template-columns: 1fr 1fr; } }

.yt-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--paper);
  border: 3px solid var(--ink); border-radius: var(--r);
  box-shadow: 4px 4px 0 var(--ink);
}
.yt-frame { position: relative; aspect-ratio: 16 / 9; background: var(--night); border-bottom: 3px solid var(--ink); }
.yt-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.yt-play { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; background: var(--night); cursor: pointer; overflow: hidden; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.yt-play:hover img, .yt-play:focus-visible img { transform: scale(1.04); }
.yt-play:focus-visible { outline: 3px solid var(--yellow); outline-offset: -6px; }
/* il bottone play: fumetto rosso con triangolo bianco */
.yt-btn {
  position: absolute; left: 50%; top: 50%; width: 64px; height: 46px;
  transform: translate(-50%, -50%) skewX(-8deg);
  background: var(--red); border: 3px solid var(--ink); border-radius: 12px;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .1s;
}
.yt-btn::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-35%, -50%);
  border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff;
}
.yt-play:hover .yt-btn { transform: translate(-50%, -50%) skewX(-8deg) scale(1.08); }
.yt-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 10px 12px 12px; }
.yt-title { margin: 0; font: 800 19px/1.15 var(--f-cond); color: var(--ink); overflow-wrap: anywhere; }
.yt-desc {
  margin: 0; font-size: 14px; line-height: 1.4; color: #2C3347;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* striscia in prima pagina: scorre solo lei, non la pagina */
.yt-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 72%);
  gap: 14px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 2px 6px 10px 2px; margin: 0 -4px 0 0;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 640px) { .yt-strip { grid-auto-columns: minmax(200px, 31%); } }
.yt-strip > .yt-card { scroll-snap-align: start; }
.yt-card--mini { box-shadow: 3px 3px 0 var(--ink); }
.yt-card--mini .yt-body { padding: 8px 10px 10px; }
.yt-card--mini .yt-title {
  font-size: 16px; line-height: 1.15;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.yt-card--mini .yt-btn { width: 48px; height: 34px; border-radius: 9px; }
.yt-card--mini .yt-btn::after { border-width: 7px 0 7px 12px; }

.yt-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-top: 14px; }
.yt-channel { font: italic 800 15px/1.2 var(--f-cond); letter-spacing: .03em; text-transform: uppercase; color: var(--red); text-decoration: none; }
.yt-channel:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.yt-grid + .yt-foot { justify-content: flex-end; }
/* ================================================================== fine I VIDEO DI CARLO ================ */

/* ============================================================ PADDOCK CLUB: accesso, iscrizione, profilo */
.auth-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 2px; }
.auth-tabs button {
  font: italic 800 15px/1 var(--f-cond); letter-spacing: .05em; text-transform: uppercase;
  padding: 9px 4px; border: var(--b) solid var(--ink); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer;
}
.auth-tabs button[aria-selected="true"] { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.auth-pane { display: grid; gap: 12px; }
.auth-pane[hidden] { display: none; }
.auth-lead { margin: 0; font-size: 15px; line-height: 1.4; }
.field--hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.35; }
.check input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--night); }
.check a { color: var(--ink); font-weight: 700; }
.login-ok { margin-top: 4px; background: #E6FAEA; }
.is-member [data-staff], .is-staff [data-member-only] { display: none !important; }
.account-dlg { width: min(94vw, 460px); max-height: 90dvh; overflow-y: auto; padding: 26px 20px 18px; border: var(--b) solid var(--ink); }
.account-dlg::backdrop { background: rgba(11, 14, 26, .55); }
.account-close { position: absolute; top: 8px; right: 8px; margin: 0; }
.account-name { margin: 8px 0 2px; font: italic 800 28px/1.1 var(--f-cond); }
.account-mail { margin: 0 0 12px; overflow-wrap: anywhere; }
.account-sec { display: grid; gap: 10px; padding: 14px 0; border-top: 2px dashed rgba(11, 14, 26, .25); }
.account-sec h3 { margin: 0; font: italic 800 18px/1 var(--f-cond); text-transform: uppercase; }
.account-sec p { margin: 0; font-size: 14px; }
.account-sec .btn { justify-self: start; }
.btn--red { background: var(--red); color: #fff; }
.account-msg { min-height: 1.2em; margin: 6px 0 0; font-weight: 700; }
.join-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.paddock-cta { display: grid; gap: 10px; padding: 22px 16px 16px; background: var(--paper-2); }
.paddock-cta h3 { margin: 0; font: italic 800 24px/1.05 var(--f-cond); text-transform: uppercase; }
.paddock-cta p { margin: 0; font-size: 15px; line-height: 1.4; }
.btn-go:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.account-dlg .panel-cap { position: static; display: inline-block; transform: none; margin-bottom: 4px; }
/* avviso sotto i pezzi scritti dall'AI e righe legali */
.ai-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 14px 0; padding: 10px 14px; font-size: 14px; line-height: 1.4; background: var(--paper-2); border: 2px dashed var(--ink); border-radius: 10px; }
.ai-note a { color: var(--ink); font-weight: 700; }
.foot-legal { font-size: 13px; }
.foot-legal a { color: inherit; }
/* ============================================================ BANNER COOKIE (consenso.js) */
.consenso {
  position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 90;
  width: min(560px, calc(100vw - 24px)); padding: 16px 16px 14px; background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 12px; box-shadow: 5px 5px 0 var(--ink);
}
.consenso p { margin: 0 26px 12px 0; font-size: 14px; line-height: 1.45; }
.consenso a { color: var(--ink); font-weight: 700; }
.consenso-btn { display: flex; gap: 10px; justify-content: flex-end; }
.consenso-btn .btn { min-width: 110px; }
.consenso-x { position: absolute; top: 6px; right: 8px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); }
/* ============================================================ PAGINE SCRITTE DAL SERVER (seo.py) */
/* la prima pagina senza JavaScript: gli ultimi titoli come link veri; public.js la sostituisce */
.ssr-front { max-width: 820px; margin: 0 auto; padding-top: 22px; }
.ssr-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.ssr-item { padding: 14px 16px; background: var(--paper); border: 3px solid var(--ink); border-radius: 10px; box-shadow: 4px 4px 0 var(--ink); }
.ssr-item a { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; color: var(--night); text-decoration: none; }
.ssr-item a b { flex: 1 1 100%; font: italic 800 22px/1.15 var(--f-cond); }
.ssr-item p { margin: 6px 0; font-size: 15px; line-height: 1.4; }
.ssr-item time { font: 700 13px/1.2 var(--f-cond); color: var(--muted); letter-spacing: .03em; }
/* ============================================================ FINE PAGINE SCRITTE DAL SERVER */
.foot-cred { font-size: 15px; font-weight: 600; }
.foot-cred a { color: inherit; font-weight: 800; }
/* ============================================================ SU INSTAGRAM (colonna della home) */
.ig-panel { display: grid; gap: 12px; padding: 24px 12px 14px; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ig-tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border: 2px solid var(--ink); border-radius: 6px; background: var(--night); }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s; }
.ig-tile:hover img, .ig-tile:focus-visible img { transform: scale(1.05); }
.ig-video { position: absolute; right: 4px; top: 4px; color: #fff; font-size: 12px; text-shadow: 0 0 3px #000; }
.ig-follow { justify-self: start; }
/* ============================================================ PIÈ DI PAGINA PUBBLICO (in colonne) */
.pub-foot { justify-items: stretch; text-align: left; gap: 26px; padding-top: 34px; }
.pub-foot .payoff--foot { justify-self: center; }
.foot-grid { display: grid; gap: 26px; width: 100%; max-width: 1120px; margin: 0 auto; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.15fr 1fr 1fr; gap: 40px; } }
.foot-col { display: grid; align-content: start; gap: 10px; min-width: 0; }
.pub-foot .foot-col p { max-width: none; font: 500 15px/1.5 var(--f-cond); }
.pub-foot p.foot-h { font: italic 800 20px/1 var(--f-cond); letter-spacing: .06em; text-transform: uppercase; color: var(--yellow); }
.pub-foot a { color: #fff; text-underline-offset: 3px; }
.pub-foot a:hover { color: var(--yellow); }
.foot-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.pub-foot .foot-cta .ig-foot { color: var(--ink); }
.foot-sign { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font: 500 15px/1.35 var(--f-cond); }
.foot-sign b { display: inline-block; min-width: 118px; color: #fff; }
.pub-foot p.foot-ai { padding: 9px 12px; border: 2px dashed var(--suit); border-radius: 10px; font-size: 14px; }
.foot-bottom { display: grid; gap: 10px; justify-items: center; text-align: center; width: 100%; max-width: 1120px; margin: 0 auto; padding-top: 18px; border-top: 2px solid rgba(169, 212, 245, .25); }
@media (min-width: 900px) {
  .foot-bottom { grid-template-columns: 1fr auto; justify-items: start; text-align: left; align-items: center; }
  .foot-bottom .foot-copy { grid-column: 1; }
  .foot-bottom .foot-legal { grid-column: 2; grid-row: 1 / span 2; justify-content: flex-end; }
}
.pub-foot .foot-cred { font: 600 15px/1.4 var(--f-cond); }
.pub-foot .foot-copy { font: 500 13px/1.4 var(--f-cond); opacity: .8; }
.foot-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font: 600 14px/1.4 var(--f-cond); }
.foot-legal a { color: var(--suit); }
.foot-sign li { display: grid; grid-template-columns: 116px 1fr; gap: 10px; align-items: baseline; }
.foot-sign b { min-width: 0; }
.pub-foot .foot-bottom p { max-width: none; }
@media (min-width: 900px) { .pub-foot .foot-cred { white-space: nowrap; } }
.sc-dentro { font: italic 800 15px/1.3 var(--f-cond); color: var(--ink); }
