/**
 * La Gazza MLXG — layout quotidiano (mono-articolo).
 * Scope: .news-gazza (non dipende dalla body class).
 */
@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Oswald:wght@500;600;700&display=swap");

.news-gazza,
body.page-news-gazza,
body:has(.news-gazza) {
  --gazza-paper: #f4f1ea;
  --gazza-paper-deep: #ebe6db;
  --gazza-ink: #1a1a1b;
  --gazza-ink-soft: #2c2c2e;
  --gazza-muted: #4a4a4d;
  --gazza-rule: rgba(26, 26, 27, 0.22);
  --gazza-accent: #b91c1c;
  --gazza-link: #1d4ed8;
  --gazza-serif: "Libre Baskerville", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --gazza-display: "Oswald", "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
}

/* Foglio carta sull’area contenuto (sidebar resta dark) */
body.page-news-gazza.pub-shell-layout .pub-shell__main > .page-content,
body.pub-shell-layout:has(.news-gazza) .pub-shell__main > .page-content {
  background-color: #f4f1ea !important;
  background-image:
    linear-gradient(180deg, rgba(244, 241, 234, 0.97), rgba(244, 241, 234, 0.99)),
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(26, 26, 27, 0.015) 3px,
      rgba(26, 26, 27, 0.015) 4px
    );
  color: #1a1a1b !important;
  min-height: 70vh;
}

body.page-news-gazza.pub-shell-layout .pub-shell__main > .page-content a:not(.xg-share-item):not(.btn),
body.pub-shell-layout:has(.news-gazza) .pub-shell__main > .page-content a:not(.xg-share-item):not(.btn) {
  color: #1d4ed8;
}

/* Foglio a tutta larghezza dell’area main (sidebar esclusa) */
.news-gazza {
  --gazza-pad-x: clamp(0.75rem, 2.5vw, 2.25rem);
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.35rem var(--gazza-pad-x) 2.75rem;
  color: #1a1a1b !important;
  font-family: var(--gazza-serif);
}

/* —— Masthead + Condividi in alto a destra —— */
.news-gazza__top {
  position: relative;
  display: block;
  margin: 0.15rem 0 0.35rem;
  min-height: 2.75rem;
}

.news-gazza__brand {
  text-align: center;
  padding: 0 3.25rem; /* spazio simmetrico per il bottone a destra */
}

.news-gazza__share {
  position: absolute;
  top: 0.15rem;
  right: 0;
  z-index: 5;
}

.news-gazza__masthead {
  margin: 0.15rem 0 0.1rem;
  text-align: center;
  font-family: var(--gazza-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 4.2vw, 3.15rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  color: #1a1a1b !important;
}

.news-gazza__masthead span {
  color: #b91c1c !important;
}

.news-gazza__kicker {
  margin: 0 0 0.65rem;
  text-align: center;
  font-family: var(--gazza-serif);
  font-size: 0.78rem;
  font-style: italic;
  color: #4a4a4d !important;
  letter-spacing: 0.02em;
}

.news-gazza__rules {
  border: 0;
  border-top: 3px solid #1a1a1b;
  border-bottom: 1px solid #1a1a1b;
  height: 0.45rem;
  margin: 0 0 1rem;
  background: transparent;
}

/* Override banda community / glow titolo */
body.pub-shell-layout.nav-sec-community .news-gazza .page-head,
.news-gazza .page-head {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding-bottom: 0.25rem;
}

body.pub-shell-layout.nav-sec-community .news-gazza .page-head h1,
.news-gazza .page-head h1 {
  text-shadow: none !important;
  color: #1a1a1b !important;
}

.news-gazza .page-head .container {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.news-gazza .breadcrumbs {
  font-family: system-ui, sans-serif;
  font-size: 0.78rem;
  color: #4a4a4d !important;
  margin-bottom: 0.75rem;
}

.news-gazza .breadcrumbs a {
  color: #4a4a4d !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.news-gazza .news-head-row {
  display: block;
  margin: 0;
}

.news-gazza .news-head-row--gazza h1,
.news-gazza .page-head h1 {
  margin: 0;
  flex: none;
  width: 100%;
  max-width: none;
  font-family: var(--gazza-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.4vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #1a1a1b !important;
}

.news-gazza .news-share-bar__meta,
.news-gazza .page-head .muted {
  margin: 0.55rem 0 0;
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #4a4a4d !important;
}

.news-gazza .xg-share-toggle.btn.outline,
.news-gazza__share .xg-share-toggle.btn.outline {
  background: transparent !important;
  color: #1a1a1b !important;
  border: 1.5px solid #1a1a1b !important;
  font-family: system-ui, sans-serif;
  font-weight: 700;
  box-shadow: none !important;
}

.news-gazza .xg-share-toggle.btn.outline:hover,
.news-gazza__share .xg-share-toggle.btn.outline:hover {
  background: #1a1a1b !important;
  color: #f4f1ea !important;
}

/* Menu share su carta: apri verso sinistra (bottone a destra) */
.news-gazza__share .xg-share-menu {
  right: 0;
  left: auto;
  border-radius: 0;
  border: 1px solid #1a1a1b;
  background: #f4f1ea;
  box-shadow: 4px 6px 0 rgba(26, 26, 27, 0.12);
}

.news-gazza__share .xg-share-item {
  color: #1a1a1b !important;
  border-radius: 0;
}

.news-gazza__share .xg-share-item:hover,
.news-gazza__share .xg-share-item:focus-visible {
  background: rgba(26, 26, 27, 0.08) !important;
}

/* —— Corpo articolo (mono colonna, tutta larghezza) —— */
.news-gazza .news-body {
  max-width: none !important;
  width: 100%;
  margin: 0 !important;
  padding: 0 0 1.5rem !important;
  color: #1a1a1b !important;
}

.news-gazza .news-body img,
.news-gazza .news-cover-zoom,
.news-gazza .news-cover-zoom img {
  border-radius: 0;
  box-shadow: none;
}

/* Cover a tutta colonna (edge-to-edge sul foglio) */
.news-gazza .news-cover-zoom {
  display: block;
  width: calc(100% + (2 * var(--gazza-pad-x)));
  max-width: none;
  margin: 0 calc(-1 * var(--gazza-pad-x)) 1.35rem;
  border: 0;
  border-top: 1px solid rgba(26, 26, 27, 0.28);
  border-bottom: 1px solid rgba(26, 26, 27, 0.28);
  background: #ebe6db;
}

.news-gazza .news-cover-zoom img {
  width: 100%;
  height: auto;
  display: block;
}

.news-gazza .news-cover-zoom__hint {
  border-radius: 0;
  background: rgba(26, 26, 27, 0.85);
  color: #f4f1ea;
  border-color: transparent;
  font-family: system-ui, sans-serif;
}

.news-gazza .news-cover-zoom:hover .news-cover-zoom__hint,
.news-gazza .news-cover-zoom:focus-visible .news-cover-zoom__hint {
  background: #b91c1c;
  border-color: transparent;
}

.news-gazza__prose {
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.75;
  color: #2c2c2e !important;
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  max-width: none;
  width: 100%;
}

.news-gazza .news-body p,
.news-gazza__prose,
.news-gazza__prose p,
.news-gazza__prose > p {
  margin: 0 0 1em;
  color: #2c2c2e !important;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem) !important;
  line-height: 1.75 !important;
  font-family: var(--gazza-serif) !important;
}

/* Capolettera sul primo paragrafo */
.news-gazza__prose > p:first-of-type::first-letter {
  float: left;
  font-family: var(--gazza-display);
  font-weight: 700;
  font-size: 3.35em;
  line-height: 0.82;
  padding: 0.08em 0.1em 0 0;
  color: #b91c1c !important;
  text-transform: uppercase;
}

.news-gazza__prose h2,
.news-gazza__prose h3,
.news-gazza .news-body h2,
.news-gazza .news-body h3 {
  font-family: var(--gazza-display);
  color: #1a1a1b !important;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin: 1.4em 0 0.5em;
  text-align: left;
}

.news-gazza__prose h2,
.news-gazza .news-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  border-bottom: 2px solid #1a1a1b;
  padding-bottom: 0.25rem;
}

.news-gazza__prose h3,
.news-gazza .news-body h3 {
  font-size: 1.12rem;
  font-weight: 600;
  color: #b91c1c !important;
  border-bottom: 0;
}

.news-gazza__prose strong,
.news-gazza__prose b {
  color: #1a1a1b !important;
  font-weight: 700;
}

.news-gazza__prose a,
.news-gazza .news-body a:not(.xg-share-item) {
  color: #1d4ed8 !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Colori TinyMCE (giallo su dark) → inchiostro su carta */
.news-gazza__prose [style*="color"],
.news-gazza .news-body [style*="color"] {
  color: inherit !important;
}

.news-gazza__prose strong[style*="color"],
.news-gazza__prose b[style*="color"],
.news-gazza__prose span[style*="color"] strong,
.news-gazza__prose span[style*="color"] b {
  color: #1a1a1b !important;
}

.news-gazza__prose blockquote {
  margin: 1.25em 0;
  padding: 0.35em 0 0.35em 1em;
  border-left: 3px solid #b91c1c;
  font-style: italic;
  color: #1a1a1b !important;
}

.news-gazza__prose ul,
.news-gazza__prose ol {
  margin: 0 0 1em;
  padding-left: 1.35em;
  text-align: left;
  color: #2c2c2e !important;
}

.news-gazza__prose li {
  margin: 0.25em 0;
  color: #2c2c2e !important;
}

.news-gazza__prose img {
  margin: 1em 0;
  border: 1px solid rgba(26, 26, 27, 0.28);
}

.news-gazza__prose table,
.news-gazza .news-body table {
  display: table;
  width: 100%;
  border: 1px solid #1a1a1b;
  border-radius: 0;
  font-family: system-ui, sans-serif;
  font-size: 0.85rem;
  background: #fff;
}

.news-gazza__prose table th,
.news-gazza__prose table td,
.news-gazza .news-body table th,
.news-gazza .news-body table td {
  border-bottom: 1px solid rgba(26, 26, 27, 0.22);
  color: #1a1a1b !important;
  white-space: normal;
}

.news-gazza__prose table th,
.news-gazza .news-body table th {
  background: #ebe6db !important;
  color: #1a1a1b !important;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.news-gazza__prose table tbody tr:hover td,
.news-gazza .news-body table tbody tr:hover td {
  background: rgba(26, 26, 27, 0.04);
}

.news-gazza__prose table caption {
  color: #4a4a4d !important;
}

/* Menzioni Wire su carta */
.news-gazza .news-body .xg-wire-tag--user,
.news-gazza .news-body .xg-wire-tag--team {
  color: #1d4ed8 !important;
}

.news-gazza .news-body .xg-wire-tag--player {
  color: #6d28d9 !important;
}

.news-gazza .news-body .xg-wire-tag--all {
  color: #b91c1c !important;
}

/* Commenti su foglio */
.news-gazza .news-comments {
  border-top: 2px solid #1a1a1b;
  margin-top: 2rem;
  padding-top: 1.25rem;
}

.news-gazza .news-comments__title {
  font-family: var(--gazza-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #1a1a1b !important;
}

.news-gazza .news-comments__title i {
  color: #b91c1c !important;
}

.news-gazza .news-comments__count {
  background: #b91c1c;
  color: #fff !important;
  border-radius: 0;
}

.news-gazza .news-comments__sub,
.news-gazza .news-comments__when,
.news-gazza .news-comments__empty,
.news-gazza .news-comments__login {
  color: #4a4a4d !important;
}

.news-gazza .news-comments__sub a,
.news-gazza .news-comments__login a {
  color: #1d4ed8 !important;
}

.news-gazza .news-comments__item {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(26, 26, 27, 0.22);
  border-radius: 0;
}

.news-gazza .news-comments__who,
.news-gazza .news-comments__body {
  color: #1a1a1b !important;
}

.news-gazza .news-comments__input {
  background: #fff !important;
  color: #1a1a1b !important;
  border: 1px solid rgba(26, 26, 27, 0.28) !important;
  border-radius: 0;
}

.news-gazza .news-comments__input:focus {
  border-color: #1a1a1b !important;
}

.news-gazza .news-comments__submit {
  background: #1a1a1b !important;
  border-radius: 0;
}

.news-gazza .news-comments__submit:hover {
  background: #b91c1c !important;
}

.news-gazza .news-body > p a,
.news-gazza .news-body > p {
  color: #2c2c2e !important;
}

/* —— Responsive: telefono / tablet / desktop —— */
@media (max-width: 719.98px) {
  .news-gazza {
    --gazza-pad-x: 0.75rem;
    padding-top: 0.15rem;
    padding-bottom: 2rem;
  }

  .news-gazza__top {
    min-height: 2.5rem;
  }

  .news-gazza__brand {
    padding: 0 2.75rem 0 0; /* su mobile titolo a sinistra, share a destra */
    text-align: left;
  }

  .news-gazza__masthead {
    text-align: left;
    font-size: clamp(1.35rem, 7vw, 1.85rem);
  }

  .news-gazza__kicker {
    text-align: left;
    font-size: 0.7rem;
  }

  .news-gazza__share {
    top: 0;
  }

  /* Su telefono: solo icona, meno spazio */
  .news-gazza__share .xg-share-toggle__lbl {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .news-gazza__share .xg-share-toggle.btn.outline {
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.35rem !important;
  }

  .news-gazza .news-head-row {
    display: block;
  }

  .news-gazza .page-head h1 {
    flex: none;
    margin: 0.35rem 0 0.25rem;
  }

  .news-gazza__prose,
  .news-gazza .news-body p,
  .news-gazza__prose > p {
    font-size: 1rem !important;
    text-align: left;
    hyphens: manual;
  }

  .news-gazza__prose > p:first-of-type::first-letter {
    font-size: 2.6em;
  }

  .news-gazza .news-cover-zoom__hint span {
    display: none;
  }
}

@media (min-width: 720px) and (max-width: 1099.98px) {
  .news-gazza {
    --gazza-pad-x: clamp(1rem, 2.5vw, 1.75rem);
  }

  .news-gazza__prose,
  .news-gazza .news-body p,
  .news-gazza__prose > p {
    font-size: 1.06rem !important;
  }
}

@media (min-width: 1100px) {
  .news-gazza {
    --gazza-pad-x: clamp(1.25rem, 2vw, 2.5rem);
  }

  .news-gazza__prose,
  .news-gazza .news-body p,
  .news-gazza__prose > p {
    font-size: 1.125rem !important;
    line-height: 1.78 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-gazza .xg-share-toggle {
    transition: none;
  }
}

/* —— Variante PROCLUB: stesso foglio Gazza, accento arancio —— */
.news-gazza--proclub,
body.page-news-gazza-proclub,
body:has(.news-gazza--proclub) {
  --gazza-accent: #ea580c;
  --gazza-link: #c2410c;
}

.news-gazza--proclub .news-gazza__masthead span,
.news-gazza.news-gazza--proclub .news-gazza__masthead span {
  color: #ea580c !important;
}

.news-gazza--proclub .news-body h3,
.news-gazza--proclub .news-gazza__prose > p:first-of-type::first-letter,
.news-gazza.news-gazza--proclub .news-body h3,
.news-gazza.news-gazza--proclub .news-gazza__prose > p:first-of-type::first-letter {
  color: #ea580c !important;
}

body.page-news-gazza-proclub.pub-shell-layout .pub-shell__main > .page-content a:not(.xg-share-item):not(.btn),
body.pub-shell-layout:has(.news-gazza--proclub) .pub-shell__main > .page-content a:not(.xg-share-item):not(.btn) {
  color: #c2410c;
}

.news-gazza--proclub .news-gazza__rules {
  border-top-color: #ea580c;
}
