@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --magenta: #c21878;
  --magenta-dark: #74144b;
  --magenta-deep: #351025;
  --red: #d82834;
  --yellow: #f4ce22;
  --ink: #17271f;
  --paper: #fffdf6;
  --soft: #f3f1e8;
  --muted: #6d776f;
  --display: 'Barlow Condensed', Impact, sans-serif;
  --body: 'DM Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 14px var(--body);
}

a { color: inherit; text-decoration: none; }

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.top {
  color: #fff;
  background: var(--magenta);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.top .wrap,
header.wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top .wrap { height: 34px; }
.top b { color: var(--yellow); }

header.wrap { height: 85px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 55px;
  height: 55px;
  object-fit: contain;
}

.brand strong {
  font: 800 21px var(--display);
  letter-spacing: .04em;
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: .2em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 11px;
  font-weight: 700;
}

.nav a:hover { color: var(--red); }

.nav .contact {
  padding: 13px 17px;
  color: #fff;
  background: var(--red);
}

.toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 25px;
}

.hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  color: #fff;
  background: var(--magenta);
}

.hero::before {
  position: absolute;
  top: -5px;
  right: 7%;
  width: 530px;
  height: 530px;
  border: 1px solid #ffffff28;
  border-radius: 50%;
  box-shadow: 0 0 0 55px #ffffff0b, 0 0 0 115px #ffffff08;
  content: '';
}

.hero::after {
  position: absolute;
  top: 72px;
  right: 13%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: var(--yellow);
  content: '';
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding-top: 76px;
}

.tag {
  color: #e8eee9;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .19em;
}

.tag i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--yellow);
}

.darktag { color: var(--muted); }

h1 {
  max-width: 600px;
  margin: 28px 0 21px;
  font: 900 clamp(68px, 10vw, 112px)/.78 var(--display);
  letter-spacing: -.01em;
}

h1 em,
.head h2 em,
.story h2 em,
.honours h2 em,
.join h2 em {
  color: var(--red);
  font-style: normal;
}

h1 em { color: var(--yellow); }

.hero p {
  color: #ebf0eb;
  line-height: 1.7;
}

.actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 25px;
  padding: 15px 18px;
  color: var(--ink);
  background: var(--yellow);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
}

.hero .actions > a + a { font-size: 10px; }

.hero-logo {
  position: absolute;
  z-index: 2;
  top: 105px;
  right: max(70px, calc((100% - 1160px) / 2 + 70px));
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 16px 14px #3011244a);
}

.band {
  padding: 12px 0;
  color: var(--magenta);
  background: var(--yellow);
  font: 800 17px var(--display);
  letter-spacing: .12em;
  text-align: center;
  word-spacing: 18px;
}

.section { padding: 70px 0; }

.head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.head h2 {
  margin: 11px 0 0;
  font: 800 42px/.95 var(--display);
}

.small-link {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .12em;
}

.small-link span {
  margin-left: 8px;
  color: var(--red);
  font-size: 14px;
}

.match {
  display: grid;
  grid-template-columns: 1fr 1.2fr .55fr 1.2fr 1.2fr;
  align-items: center;
  gap: 12px;
  padding: 22px 25px;
  border-left: 5px solid var(--red);
  background: var(--soft);
}

.match-date b {
  display: block;
  font: 700 18px var(--display);
}

.match-date small,
.muted { color: var(--muted); font-size: 9px; }

.team {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 14px/1.05 var(--display);
}

.team-logo {
  width: 45px;
  height: 45px;
  flex: 0 0 auto;
  padding: 2px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.crest {
  display: grid;
  width: 44px;
  height: 46px;
  place-items: center;
  color: var(--yellow);
  background: var(--magenta);
  font: 800 19px var(--display);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
}

.crest.other {
  color: #536258;
  background: #d5d9d5;
}

.vs { text-align: center; }
.vs b { display: block; color: var(--red); font: 800 25px var(--display); }
.vs small { color: var(--muted); font-size: 7px; }

.match-info {
  padding-left: 15px;
  border-left: 1px solid #d6d8d0;
}

.match-info b { display: block; font-size: 9px; }
.match-info a { display: block; margin-top: 9px; color: var(--red); font-size: 9px; font-weight: 700; }

.result-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 30px;
  padding-bottom: 9px;
  border-bottom: 1px solid #e2e2db;
}

.result-title b { font: 700 18px var(--display); }
.result-title small { color: var(--muted); font-size: 8px; letter-spacing: .12em; }

.result {
  display: grid;
  grid-template-columns: 78px minmax(145px, 1fr) 58px minmax(190px, 1.4fr);
  align-items: center;
  gap: 10px;
  padding: 14px 3px;
  border-bottom: 1px solid #e7e6df;
  font-size: 11px;
}

.num { color: #9da59e; font: 700 12px var(--display); }
.result strong { text-align: center; font: 700 16px var(--display); }

.fixture-team,
.fixture-opponent {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
}

.fixture-team { font-weight: 600; }

.fixture-team img,
.fixture-opponent img {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  padding: 2px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.fixture-opponent b { font-size: 10px; }

.fixture-opponent .venue {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.news {
  padding: 65px 0;
  color: #fff;
  background: var(--magenta-dark);
}

.news .head h2 { color: #fff; }

.grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 16px;
}

.card { background: #8e1c5e; }

.art {
  position: relative;
  display: grid;
  height: 150px;
  place-items: center;
  color: #ffffffcc;
  background: linear-gradient(140deg, #e2bf1b, #b65036);
  font-size: 68px;
}

.card:nth-child(2) .art { background: linear-gradient(140deg, #c21878, #74144b); }
.card:nth-child(3) .art { background: linear-gradient(140deg, #d8393b, #8c202d); }

.art small {
  position: absolute;
  top: 12px;
  left: 14px;
  font-size: 8px;
  letter-spacing: .1em;
}

.copy { padding: 16px; }
.copy small { color: var(--yellow); font-size: 7px; letter-spacing: .12em; }
.copy h3 { margin: 9px 0; font: 700 21px/1.05 var(--display); }
.copy p { color: #d3dfd8; font-size: 10px; line-height: 1.6; }
.copy a { font-size: 9px; font-weight: 700; }
.placeholder-note { margin-top: 15px; color: #c6d5cd; font-size: 9px; }

.story {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: 65px;
  padding-top: 75px;
  padding-bottom: 75px;
}

.story h2,
.honours h2,
.join h2 {
  margin: 16px 0;
  font: 800 58px/.86 var(--display);
}

.story p,
.honours p,
.join p {
  max-width: 370px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.story-photo {
  position: relative;
  display: grid;
  height: 300px;
  overflow: hidden;
  place-items: center;
  background: linear-gradient(145deg, #d9bfd0, #80526f);
}

.story-photo::before {
  position: absolute;
  width: 78%;
  height: 65%;
  border: 1px solid #ffffff99;
  content: '';
  transform: rotate(-13deg);
}

.story-photo img { position: relative; width: 145px; height: 145px; object-fit: contain; opacity: .85; }

.caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  color: #fff;
  background: #123b2be8;
  font-size: 8px;
  letter-spacing: .13em;
}

.honours {
  padding: 58px 0;
  color: #fff;
  background: #8e1c5e;
}

.honours-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.honours p { color: #d2ded6; }

.trophy {
  position: relative;
  display: grid;
  height: 220px;
  place-items: center;
  border-left: 1px solid #ffffff2b;
  color: var(--yellow);
  font-size: 80px;
}

.trophy small {
  position: absolute;
  bottom: 10px;
  color: #fff;
  font-size: 8px;
  letter-spacing: .15em;
}

.documents { padding-top: 70px; padding-bottom: 75px; }
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }

.doc {
  display: flex;
  min-height: 100px;
  align-items: center;
  gap: 13px;
  padding: 17px;
  background: var(--soft);
}

.doc-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--red);
  background: #fff;
  font-size: 18px;
}

.doc b { display: block; font: 700 18px var(--display); }
.doc small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 7px; letter-spacing: .1em; }
.doc .download { margin-left: auto; color: var(--red); }

.join { padding: 55px 0; color: #fff; background: var(--magenta); }
.join-inner { display: flex; align-items: center; justify-content: space-between; }
.join h2 { font-size: 52px; }
.join p { color: #e0e9e3; }

.footer { color: #fff; background: var(--magenta-deep); }

.foot {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 24px;
  padding: 34px 0;
}

.foot p { color: #d0dad3; font-size: 10px; line-height: 1.7; }
.foot small { display: block; margin-bottom: 8px; color: var(--yellow); font-size: 8px; letter-spacing: .12em; }
.foot a { font-size: 10px; }

.bottom {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid #ffffff24;
  color: #b9c8bf;
  font-size: 7px;
  letter-spacing: .12em;
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 34px); }
  .top { font-size: 8px; }
  .top .wrap { height: 31px; }
  .brand img { width: 48px; height: 48px; }
  .brand strong { font-size: 18px; }
  .toggle { display: block; }
  .nav {
    position: absolute;
    z-index: 5;
    top: 116px;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 14px 22px;
    background: #fff;
    box-shadow: 0 10px 24px #0002;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; border-bottom: 1px solid #eee; }
  .nav .contact { margin-top: 8px; text-align: center; }
  .hero { min-height: 510px; }
  .hero .wrap { padding-top: 65px; }
  .hero-logo { top: 178px; right: -24px; width: 200px; height: 200px; opacity: .24; }
  .hero::after { top: 145px; right: -20px; width: 240px; height: 240px; opacity: .22; }
  h1 { font-size: 78px; }
  .section { padding: 55px 0; }
  .head h2 { font-size: 35px; }
  .match { grid-template-columns: 1fr 1fr 1fr; gap: 14px; padding: 17px; }
  .match-date { display: flex; grid-column: 1 / -1; align-items: baseline; justify-content: space-between; }
  .match-info { grid-column: 1 / -1; padding: 12px 0 0; border-top: 1px solid #d6d8d0; border-left: 0; }
  .team { font-size: 11px; }
  .team-logo { width: 36px; height: 36px; }
  .result { grid-template-columns: 62px minmax(92px, 1fr) 48px minmax(125px, 1.25fr); gap: 5px; padding: 12px 0; font-size: 9px; }
  .fixture-team, .fixture-opponent { gap: 5px; font-size: 9px; }
  .fixture-team img, .fixture-opponent img { width: 29px; height: 29px; }
  .fixture-opponent b { font-size: 9px; }
  .fixture-opponent .venue { font-size: 7px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .card:first-child { grid-column: 1 / -1; }
  .story { grid-template-columns: 1fr; gap: 25px; }
  .story h2, .honours h2 { font-size: 52px; }
  .story-photo { height: 240px; }
  .honours-inner { grid-template-columns: 1fr; }
  .trophy { height: 170px; margin-top: 20px; border-top: 1px solid #ffffff2b; border-left: 0; }
  .docs { grid-template-columns: 1fr; }
  .doc { min-height: 82px; }
  .join-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .join h2 { font-size: 47px; }
  .foot { grid-template-columns: 1fr 1fr; }
  .bottom { flex-wrap: wrap; gap: 10px; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 68px; }
  .head { gap: 8px; }
  .head h2 { font-size: 31px; }
  .small-link { max-width: 100px; font-size: 7px; line-height: 1.5; }
  .grid { grid-template-columns: 1fr; }
  .card:first-child { grid-column: auto; }
  .art { height: 140px; }
  .result-title small { font-size: 6px; }
  .result { grid-template-columns: 58px 1fr 44px; gap: 4px; }
  .fixture-opponent { grid-column: 2 / 4; }
  .fixture-team img, .fixture-opponent img { width: 27px; height: 27px; }
  .foot { grid-template-columns: 1fr; }
}

/* Pagine interne */
.page-hero {
  padding: 54px 0 48px;
  color: #fff;
  background: var(--magenta-dark);
}

.page-hero h1 {
  max-width: 800px;
  margin: 16px 0 10px;
  font-size: clamp(48px, 7vw, 76px);
  line-height: .92;
}

.page-hero p {
  max-width: 650px;
  color: #f1dce9;
  line-height: 1.7;
}

.content-section { padding: 48px 0 72px; }
.content-section h2 { margin: 0 0 14px; font: 700 30px var(--display); }
.content-section p { max-width: 760px; color: var(--muted); line-height: 1.8; }

.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.page-actions .btn { background: var(--yellow); }
.page-actions .btn.secondary { color: #fff; background: var(--magenta); }

.link-grid,
.news-list,
.player-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.link-card,
.news-item,
.document-card,
.honour-card {
  padding: 22px;
  background: var(--soft);
}

.link-card { min-height: 145px; }
.link-card small,
.news-item small,
.honour-card small { color: var(--magenta); font-size: 9px; font-weight: 700; letter-spacing: .12em; }
.link-card h3,
.news-item h3,
.honour-card h3 { margin: 12px 0 8px; font: 700 25px/1 var(--display); }
.link-card p,
.news-item p,
.honour-card p { margin-bottom: 0; font-size: 12px; }
.link-card:hover { outline: 2px solid var(--yellow); }

.fixture-list { display: grid; gap: 12px; }
.fixture-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 100px minmax(0, 1.2fr);
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-left: 4px solid var(--magenta);
  background: var(--soft);
}

.fixture-date b,
.fixture-time { display: block; font: 700 20px var(--display); }
.fixture-date small,
.fixture-venue { color: var(--muted); font-size: 10px; line-height: 1.5; }
.fixture-time { text-align: center; }
.fixture-team-name { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.fixture-team-name img { width: 42px; height: 42px; padding: 2px; border-radius: 50%; background: #fff; object-fit: contain; }
.fixture-team-name small { display: block; color: var(--muted); font-size: 9px; font-weight: 500; }
.fixture-venue { display: block; margin-top: 5px; }

.news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.news-item { min-height: 180px; }
.news-item p { margin-top: 10px; }
.placeholder { border: 1px dashed #c7b7c1; background: #fbf6fa; }
.placeholder-photo {
  display: grid;
  min-height: 150px;
  place-items: center;
  padding: 20px;
  color: #80526f;
  background: linear-gradient(145deg, #eadce7, #d9bfd0);
  font-size: 11px;
  letter-spacing: .08em;
  text-align: center;
}

.team-season { margin-top: 32px; }
.team-season h2 { font-size: 34px; }
.team-photo { min-height: 230px; }
.player-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.player-card { overflow: hidden; background: var(--soft); }
.player-photo { min-height: 185px; }
.player-info { padding: 16px; }
.player-info h3 { margin: 0 0 8px; font: 700 23px var(--display); }
.player-info p { margin: 0; font-size: 11px; }
.player-role { color: var(--magenta) !important; font-weight: 700; }
.note-box { margin-top: 24px; padding: 18px 20px; border-left: 4px solid var(--yellow); background: var(--soft); }
.note-box p { margin: 0; }

.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-card { padding: 22px; background: var(--soft); }
.contact-card h2 { margin-bottom: 8px; }
.contact-card p { margin: 0; }

/* Sezioni di campionato e roster a scorrimento */
.competition + .competition { margin-top: 56px; padding-top: 34px; border-top: 2px solid #e7dce3; }
.competition-heading { margin-bottom: 18px; }
.fixture-result { display: block; margin-top: 10px; padding-top: 8px; border-top: 1px solid #d8d4d3; }
.fixture-result b, .fixture-result small { display: block; }
.fixture-result b { color: var(--magenta-dark); font-size: 11px; }
.fixture-result small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.calendar-download-actions { margin: 2px 0 18px; }
.calendar-download { border: 0; font-family: var(--body); cursor: pointer; }
.calendar-download:focus-visible { outline: 3px solid var(--magenta-dark); outline-offset: 3px; }
.sync-status { margin: -8px 0 14px; color: var(--muted); font-size: 10px; }
.calendar-subscribe-note { margin: 0 0 12px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.competition-heading h2 { margin-top: 8px; color: var(--magenta-dark); }
.home-competition-heading { margin: 22px 0 12px; }
.home-competition-heading .tag { color: var(--magenta-dark); }
.team-season-next { margin-top: 52px; padding-top: 38px; border-top: 2px solid #e7dce3; }
.carousel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 0 12px; }
.carousel-heading h2 { margin: 0; }
.carousel-controls { display: flex; gap: 8px; }
.carousel-arrow { display: flex; flex: 0 0 42px; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; border: 2px solid var(--magenta); border-radius: 50%; color: var(--magenta-dark); background: #fff; cursor: pointer; }
.carousel-arrow svg { display: block; flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.carousel-arrow:hover, .carousel-arrow:focus-visible { color: #fff; background: var(--magenta); outline: 3px solid #f4ce22; outline-offset: 2px; }
.player-carousel { display: grid; grid-auto-columns: minmax(220px, 255px); grid-auto-flow: column; gap: 16px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 8px 4px 18px; }
.player-carousel:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }
.player-card { scroll-snap-align: start; overflow: hidden; border-radius: 8px; background: #f1f1ef; box-shadow: 0 8px 18px #21151c24; }
.player-photo { display: block; width: 100%; height: 285px; min-height: 0; object-fit: cover; object-position: center 24%; background: #e8e6e3; }
.player-info { min-height: 88px; padding: 13px 16px; background: #f1f1ef; }
.player-info p { margin: 0 0 7px; color: var(--ink); font-size: 13px; line-height: 1.35; }
.player-info p:last-child { margin-bottom: 0; }
.player-info strong { font-weight: 800; }
.player-role { color: var(--ink) !important; font-size: 11px !important; }
.carousel-hint { margin: 2px 2px 0; font-size: 11px; }
.empty-roster { padding: 18px; color: var(--muted); background: var(--soft); }
.legal-credit { flex: 1; text-align: center; font-size: inherit; letter-spacing: inherit; }

@media (max-width: 760px) {
  .player-carousel { grid-auto-columns: minmax(205px, 72vw); }
  .player-photo { height: 300px; }
  .legal-credit { flex-basis: 100%; line-height: 1.6; }
}

@media (max-width: 760px) {
  .page-hero { padding: 42px 0 38px; }
  .content-section { padding: 38px 0 56px; }
  .link-grid, .news-list { grid-template-columns: 1fr 1fr; }
  .fixture-card { grid-template-columns: 78px 1fr 55px 1.2fr; gap: 8px; padding: 12px 8px; }
  .fixture-team-name { gap: 5px; font-size: 10px; }
  .fixture-team-name img { width: 30px; height: 30px; }
  .fixture-date b, .fixture-time { font-size: 16px; }
  .fixture-date small, .fixture-venue { font-size: 8px; }
  .player-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 430px) {
  .link-grid, .news-list, .contact-grid { grid-template-columns: 1fr; }
  .fixture-card { grid-template-columns: 58px 1fr 44px; }
  .fixture-card .opponent { grid-column: 2 / 4; }
  .player-grid { grid-template-columns: 1fr 1fr; }
}
