:root {
 --primary: #8e1b1b; /* Rosso Roma */
 --secondary: #f0b400;
 --text-main: #111;
 --text-muted: #555;
 --bg: #ffffff;
 --header-h: 56px;
 --radius: 14px;
 --nav-h: 62px; /* altezza “utile” della barra, senza safe-area */
}

* {
 box-sizing: border-box;
 margin: 0;
 padding: 0;
}

body {
 font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
 background: var(--bg);
 color: var(--text-main);
 line-height: 1.5;
}

/* HEADER */
header {
 position: sticky;
 top: 0;
 z-index: 100;
 height: 56px;
 background: #ffffff;
 display: flex;
 align-items: center;
 justify-content: space-between;
 padding: 0 16px;
 border-bottom: 1px solid #eee;
}

header h1 {
 font-size: 18px;
 font-weight: 700;
}

header button {
 background: none;
 border: none;
 color: var(--text-muted);
 font-size: 22px;
}
header .logo-img {
 height: 34px;
 width: auto;
 display: block;
}

/* HEADER mobile */
.m-header {
position: sticky;
top: 0;
z-index: 100;
height: var(--header-h);
background: rgba(255,255,255,.92);
backdrop-filter: saturate(180%) blur(12px);
border-bottom: 1px solid rgba(0,0,0,.08);

display: grid;
grid-template-columns: 1fr auto 1fr; /* sinistra | centro | destra */
align-items: center;
padding: 0 12px;
}

.m-header__left { justify-self: start; }
.m-header__center { justify-self: center; }
.m-header__right { justify-self: end; }

.m-header__logo img {
height: 30px;
width: auto;
display: block;
}

/* Pulsanti icona */
.icon-btn {
width: 42px;
height: 42px;
border-radius: var(--radius);
border: 1px solid rgba(0,0,0,.08);
background: #fff;
color: var(--text-main);
display: inline-flex;
align-items: center;
justify-content: center;
-webkit-tap-highlight-color: transparent;
}

.icon-btn:active { transform: translateY(1px); }

.icon-btn:focus-visible {
outline: 3px solid rgba(240, 180, 0, .65);
outline-offset: 2px;
}

/* HERO */
.hero {
 padding: 16px;
}

.hero img {
 width: 100%;
 border-radius: var(--radius);
 margin-bottom: 12px;
}

/* BADGE */
.badge {
display: inline-block;
font-size: 11px;
font-weight: 700;
padding: 4px 8px;
border-radius: 6px;
color: #fff;
text-transform: uppercase;
}

.badge.live {
background: #d32f2f; /* rosso LIVE */
}

.badge.video {
background: var(--primary); /* rosso Roma */
}

/* Badge sopra immagini */
.badge-overlay {
position: absolute;
top: 10px;
left: 10px;
z-index: 2;
}

/* LIVE BADGE – PULSE ANIMATION */

.badge.live::after {
content: "";
position: absolute;
top: 50%;
left: 50%;
width: 100%;
height: 100%;
background: rgba(211, 47, 47, 0.6);
border-radius: 6px;
transform: translate(-50%, -50%);
animation: livePulse 1.6s infinite ease-out;
z-index: -1;
}

@keyframes livePulse {
0% {
transform: translate(-50%, -50%) scale(1);
opacity: 0.9;
}
70% {
transform: translate(-50%, -50%) scale(1.8);
opacity: 0;
}
100% {
opacity: 0;
}
}



.hero h2 {
 font-size: 24px;
 font-weight: 700;
 margin-bottom: 6px;
}

.meta {
 font-size: 13px;
 color: var(--text-muted);
}

/* FEED */
.feed {
 padding: 0 16px 24px;
 /* display: grid;*/
 gap: 16px;
}

.card {
 background: #fff;
 border-radius: var(--radius);
 box-shadow: 0 2px 8px rgba(0,0,0,0.06);
 overflow: hidden;
}

.card img {
 width: 100%;
 display: block;
 max-height: 250px;
 object-fit: cover;
}

.card-content {
 padding: 12px;
}

.card h3 {
 font-size: 18px;
 font-weight: 700;
 margin-bottom: 6px;
}

.card p {
 font-size: 14px;
 color: var(--text-muted);
 margin-bottom: 8px;
}

/* BOTTOM NAV */
nav {
 position: sticky;
 bottom: 0;
 background: var(--primary);
 border-top: 1px solid #ddd;
 display: flex;
 justify-content: space-around;
 padding: 2px 0;
}

nav a {
 text-decoration: none;
 color: #fff;
 font-size: 14px;
 text-align: center;
}

nav a strong {
 display: block;
 font-size: 16px;
}
nav a.active {
 color: var(--secondary);
 font-weight: 600;
}

/* Logo nell’header */
header .logo-link {
 display: flex;
 align-items: center;
}

header .logo-img {
 height: 36px;   /* Altezza consigliata per mobile */
 width: auto;
}

/* VIDEO SECTION */
.video-section {
 padding: 0 16px 24px;
}

.video-header {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-bottom: 12px;
}

.video-header h2 {
 font-size: 20px;
 font-weight: 700;
}

.video-header a {
 font-size: 13px;
 color: var(--primary);
 text-decoration: none;
}

.video-card {
 position: relative;
}

.video-card img {
 width: 100%;
 border-radius: var(--radius);
}

.video-card .play {
 position: absolute;
 top: 50%;
 left: 50%;
 transform: translate(-50%, -50%);
 background: var(--primary);
 color: #fff;
 font-size: 22px;
 padding: 12px 16px;
 border-radius: 50%;
}

.video-card h3 {
 font-size: 18px;
 font-weight: 600;
 margin-top: 10px;
}

/* LISTA ARTICOLI COMPATTA */
.list-articles {
 padding: 0 16px 24px;
 /* display: grid; */
 gap: 14px;
}

.list-item {
 display: flex;
 gap: 12px;
}

.list-item img {
 width: 120px;
 height: 85px;
 object-fit: cover;
 border-radius: 8px;
}

.list-item h4 {
 font-size: 14px;
 font-weight: 600;
 margin-bottom: 4px;
}

.list-item p {
 font-size: 13px;
 color: var(--text-muted);
}

/* Link testuali: come testo normale */
a {
  color: inherit;
  text-decoration: none;
}

/* Hover/tap: leggero feedback visivo (opzionale ma consigliato) */
a:hover {
  opacity: 0.85;
}

/* Accessibilità: focus visibile */
a:focus-visible {
  outline: 3px solid rgba(240, 180, 0, 0.6);
  outline-offset: 2px;
  border-radius: 6px;
}

.hero a:active,
.card a:active {
  opacity: 0.75;
}
/* Spazio in fondo alla pagina per evitare sovrapposizione */
body{
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}

/* Bottom nav: fixed + safe-area */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);

  background: var(--primary);
  border-top: 1px solid rgba(255,255,255,.18);
  z-index: 120;

  display: grid;
  grid-template-columns: repeat(4, 1fr);

  /* ANIMAZIONE */
  transition: transform 0.28s ease-out;
  will-change: transform;
}

/* Singola voce */
.bottom-nav__item{
  color: rgba(255,255,255,.92);
  text-decoration: none;

  display: grid;
  justify-items: center;
  align-content: center;
  gap: 4px;

  min-height: var(--nav-h);
  padding: 8px 6px;

  -webkit-tap-highlight-color: transparent;
}

.bottom-nav__icon{
  font-size: 18px;
  line-height: 1;
}

.bottom-nav__icon {
  width: 22px;
  height: 22px;
  color: #fff;            /* stroke bianco */
  stroke-width: 2;
}

/* Feedback tap */
.bottom-nav__item:active .bottom-nav__icon {
  opacity: 0.7;
}


.bottom-nav__label{
  font-size: 12px;
  font-weight: 650;
  line-height: 1.1;
}

.bottom-nav__item.active{
  color: var(--secondary);
}

.bottom-nav__item:active{
  background: rgba(255,255,255,.10);
}

/* Stato nascosto */
.bottom-nav--hidden {
  transform: translateY(100%);
}

.bottom-nav:active {
  transform: translateY(0);
}

/* Forza bianco dentro la bottom-nav (testo + SVG) */
.bottom-nav .bottom-nav__item {
  color: #fff;
}

/* SVG stroke icons: usa currentColor (quindi bianco) */
.bottom-nav .bottom-nav__icon {
  width: 22px;
  height: 22px;
  color: currentColor;  /* prende il bianco dell’item */
}

/* Assicura stroke visibile e niente fill */
.bottom-nav .bottom-nav__icon,
.bottom-nav .bottom-nav__icon * {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Stato attivo: testo giallo ma icona resta bianca */
.bottom-nav .bottom-nav__item.active {
  color: var(--secondary);
}

.bottom-nav .bottom-nav__item.active .bottom-nav__icon,
.bottom-nav .bottom-nav__item.active .bottom-nav__icon * {
  stroke: #fff; /* icona sempre bianca */
}

/* Lock scroll quando menu aperto */
body.is-menu-open {
  overflow: hidden;
  touch-action: none;
}

/* Overlay leggermente più elegante */
.m-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
  z-index: 2147483010;
  opacity: 0;
  transition: opacity .22s ease;
  pointer-events: none;
}

.m-menu-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Drawer ANTRACITE */
.m-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: min(320px, 86vw);
  background: #34393d;
  backdrop-filter: saturate(140%) blur(12px);
  z-index: 2147483020;
  transform: translateX(-100%);
  opacity: 0.98;
  transition: transform .28s ease, opacity .22s ease;
  will-change: transform, opacity;
  padding-top: calc(14px + env(safe-area-inset-top));
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
}

.m-menu.is-open {
  transform: translateX(0);
  opacity: 1;
}

/* ICONE menu */
.m-menu__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;

  fill: none;
  stroke: rgba(255,255,255,.92);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.m-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.m-menu__logo img {
  height: 28px;
  width: auto;
  display: block;
  /* filter: brightness(0) invert(1); */
  /* rende il logo bianco se è scuro */
}

.m-menu__title {
  font-weight: 800;
  letter-spacing: .2px;
}

.m-menu__close {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
}

.m-menu__nav {
  padding: 14px 10px 20px;
  display: grid;
  gap: 6px;
}

.m-menu__link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 14px;
  border-radius: 12px;
  color: rgba(255,255,255,.92);
  font-weight: 650;
  letter-spacing: .2px;
  transition: background .15s ease, color .15s ease;
}

.m-menu__link:active { background: rgba(255,255,255,.08); }
.m-menu__link:hover  { background: rgba(255,255,255,.06); }

/* ACTIVE (come bottom-nav): testo giallo + “pill” */
.m-menu__link.is-active {
  background: rgba(240, 180, 0, .14);
  color: var(--secondary);
}

.m-menu__link.is-active .m-menu__icon {
  stroke: var(--secondary);
}

.m-menu__link:focus-visible {
  outline: 3px solid rgba(240, 180, 0, 0.6);
  outline-offset: 2px;
}

#post-area h1{
	color: #444;
  font: 26px/36px "Cabin Condensed","Open Sans Condensed",sans-serif;
  font-weight: 700;
  margin: 10px 0;
  text-align: center;
}

.calendar .name {
	text-align: center;
  font: 15px/17px "Cabin Condensed", "Open Sans Condensed", sans-serif;
  font-weight: 700;
}

.opponents{
	margin: 0 auto;
}

.calendar .team_icon_big {
	width: 100%;
}

.calendar .score {
	font: 22px/30px "Cabin Condensed","Open Sans Condensed",sans-serif;
  font-weight: 700;
}

.calendar .team_name {
	font: 22px/30px "Cabin Condensed","Open Sans Condensed",sans-serif;
  font-weight: 700;
}

.calendar .centeralign {
	padding: 0px !important;
}

#content-area {
	padding: 12px 10px;
}

.wrapped-content {
  padding: 12px 10px;
  z-index: 2;
  position: relative;
}

#author-profile {
  *zoom: 1;
  margin: 30px 0 20px;
  padding: 0 10px 0 28px; }
  #author-profile:before, #author-profile:after {
    content: " ";
    display: table; }
  #author-profile:after {
    clear: both; }
  #author-profile .author-profile-photo {
    width: 60px;
    height: 60px;
    float: left;
    border: 0px solid #fff;
    border-radius: 9999px; }
    #author-profile .author-profile-photo img {
      width: 99px;
      /* height: 60px; */
      border-radius: 9999px;
      margin-left: -20px;
      margin-top: -3px;
}
  #author-profile .author-profile-content {
    margin-top: 16px;
    padding-left: 75px; }
    #author-profile .author-profile-content .title {
      margin: 0;
      color: #fff;
      font-weight: 300;
      font-size: 18px;
      font-family: "Raleway", sans-serif;
      line-height: 1.2; }
    #author-profile .author-profile-content .subtitle {
      margin: 0;
      color: #FF8D21;
      font-weight: 600;
      font-size: 12px;
      font-family: "Raleway", sans-serif;
      line-height: 1.3; }
