:root {
  --blue-dark: #0f2d5c;
  --blue: #13468a;
  --yellow: #ffe500;
  --text: #222;
  --text-light: #6b7280;
  --bg-light: #f5f6f8;
  --border: #e5e7eb;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  --container: 1180px;
  --yellow-tint: #fff8d6;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}
a {
  color: var(--blue);
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}

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

/* HEADER */
.site-header {
  background: var(--blue-dark);
  border-bottom: 4px solid var(--yellow);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  flex-wrap: wrap;
  min-height: 104px;
}
.site-header img {
  max-height: 80px;
  width: auto;
  display: block;
}
.site-logo span {
  color: #fff;
  font-weight: 700;
  font-size: 1.3rem;
}

/* HAMBURGER */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 30;
}
.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}
.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}
.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* NAV */
.nav-menu {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  z-index: 50;
}
.nav-menu > li {
  position: relative;
}
.nav-menu > li > a {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 8px 0;
  display: flex;
  align-items: center;
}
.nav-menu > li > a:hover {
  color: var(--yellow);
}

/* FRECCE dropdown */
.dropdown-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-left: 2px;
  cursor: pointer;
}
.dropdown-arrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.menu-item-has-children:hover > a .dropdown-arrow::before,
.menu-item-has-children.sub-open > a .dropdown-arrow::before {
  transform: rotate(-135deg);
}

/* SOTTOMENU */
.nav-menu .sub-menu {
  list-style: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--blue-dark);
  box-shadow: var(--shadow);
  min-width: 200px;
  padding: 8px 0;
  border-radius: 0 0 8px 8px;
  display: none;
  z-index: 20;
}
.nav-menu li:hover > .sub-menu,
.nav-menu li.sub-open > .sub-menu {
  display: block;
}
.nav-menu .sub-menu a {
  color: #fff;
  text-transform: uppercase;
  font-weight: 500;
  padding: 8px 18px;
  display: block;
}
.nav-menu .sub-menu a:hover {
  background: var(--blue);
  color: var(--yellow);
}

/* MOBILE NAV (unico blocco, definitivo) */
@media (max-width: 600px) {
  .menu-toggle {
    display: flex;
  }
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--blue-dark);
    flex-direction: column;
    gap: 0;
    display: none;
    padding: 10px 20px 20px;
    box-shadow: var(--shadow);
  }
  .nav-menu.is-open {
    display: flex;
  }
  .nav-menu > li {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .nav-menu > li > a {
    padding: 12px 0;
    justify-content: space-between;
  }
  .nav-menu .sub-menu {
    position: static;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 0;
    padding-left: 14px;
    display: none;
  }
  .nav-menu li.sub-open > .sub-menu {
    display: block;
  }
  .nav-menu .sub-menu a {
    color: #fff;
  }
  .nav-menu .sub-menu a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--yellow);
  }
}

/* BUTTONS */
.btn {
  display: inline-block;
  background: var(--yellow);
  color: var(--blue-dark);
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 6px;
  border: 2px solid var(--blue-dark);
  transition: transform 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
  color: var(--blue-dark);
}

/* PAGE TITLE — nascosto visivamente, resta nel markup per SEO/accessibilità */
.page-title-bar {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.page-title-bar + .container {
  padding-top: 40px;
}

/* NEWS CARDS */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.news-card:hover {
  transform: translateY(-4px);
}
.news-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
}
.news-card .news-card-body {
  position: relative;
  padding: 16px;
}
.news-card .news-date {
  display: inline-block;
  background: var(--blue-dark);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.news-card h3 {
  margin: 8px 0;
  font-size: 1.05rem;
  line-height: 1.35;
}
.news-card h3 a {
  color: var(--text);
}
.news-card .read-more {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
}

/* SINGLE ARTICLE */
.single-wrap {
  max-width: 900px;
  margin: 40px auto 60px;
}

.back-to-news {
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.back-to-news:hover {
  color: var(--blue-dark);
}

.single-hero {
  display: block;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.single-hero-img {
  margin-bottom: 28px;
}
.single-hero-img img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  height: auto;
  display: block;
}
.single-category {
  display: inline-block;
  background: var(--yellow);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.single-hero-content h1 {
  font-size: 2rem;
  line-height: 1.25;
  color: var(--blue-dark);
  margin: 0 0 12px;
}
.single-hero-content .entry-meta {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}

/* Corpo articolo */
.single-body {
  font-size: 1.05rem;
  line-height: 1.8;
}
.single-body p {
  margin: 0 0 20px;
}
.single-body h2,
.single-body h3 {
  color: var(--blue-dark);
  margin: 36px 0 16px;
  position: relative;
  padding-bottom: 8px;
}
.single-body h2::after,
.single-body h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--yellow);
}
.single-body img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 24px 0;
}
.single-body blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  background: var(--bg-light);
  border-left: 4px solid var(--yellow);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text);
}
.single-body a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-underline-offset: 3px;
}
.single-body a:hover {
  color: var(--blue-dark);
}
.single-body ul,
.single-body ol {
  padding-left: 22px;
  margin-bottom: 20px;
}
.single-body li {
  margin-bottom: 8px;
}

@media (max-width: 700px) {
  .single-hero-content h1 {
    font-size: 1.6rem;
  }
}

/* PEOPLE GRID (Direttivo, Staff Tecnico, Settore Giovanile) — stessa tecnica di player-card */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 190px));
  gap: 24px;
  justify-content: start;
}
.person-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-light);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.person-card:hover {
  transform: translateY(-6px);
}
.person-card .person-photo {
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #ddd;
}
.person-card .person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.person-card .person-name {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 10px;
  text-align: center;
  background: #fff;
}
.person-card .person-name h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.person-card .role {
  display: block;
  margin-top: 4px;
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}

/* PLAYER CARD (dedicata, pagina Team) — stesso stile di Staff Tecnico */
.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 190px));
  gap: 24px;
  justify-content: start;
}
.player-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--blue-dark);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease;
}
.player-card:hover {
  transform: translateY(-6px) scale(1.02);
}
.player-card .player-photo {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: #ddd;
}
.player-card .player-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 45, 92, 0) 60%,
    rgba(15, 45, 92, 0.85) 100%
  );
}
.player-card .player-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.player-card .player-name {
  background: var(--blue-dark);
  padding: 14px 10px;
  text-align: center;
}
.player-card .player-name h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* SPONSOR */
.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: center;
}
.sponsor-logo {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.sponsor-logo:hover {
  transform: translateY(-4px);
}
.sponsor-logo img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
}

/* FOOTER */
.site-footer {
  background: var(--blue-dark);
  color: #fff;
  padding-top: 55px;
  margin-top: 55px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 45px;
}
.footer-col h3 {
  color: var(--yellow);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 14px;
}
.footer-col p {
  font-size: 0.92rem;
  line-height: 1.7;
  opacity: 0.9;
  margin: 0 0 12px;
}
.footer-col a {
  color: #fff;
}
.footer-col a:hover {
  color: var(--yellow);
}
.pec-label {
  opacity: 0.6;
  font-size: 0.8rem;
}

/* Badge Serie D */
.footer-badge {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
}
.footer-badge img {
  max-height: 85px;
  width: auto;
  display: block;
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.social-icon:hover {
  color: var(--blue-dark);
  transform: translateY(-3px);
}

.footer-bottom {
  background: rgba(0, 0, 0, 0.2);
  padding: 16px 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
  opacity: 0.85;
}
.footer-bottom-inner a {
  color: var(--yellow);
}

@media (max-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    text-align: center;
  }
  .footer-badge {
    margin-left: auto;
    margin-right: auto;
  }
  .social-icons {
    justify-content: center;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* PAGINATION */
.pagination {
  display: flex;
  gap: 10px;
  margin: 40px 0;
  justify-content: center;
}
.pagination a,
.pagination span {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
}
.pagination .current {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* RESPONSIVE — grid layout (nav mobile gestita solo nel blocco MOBILE NAV sopra) */
@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .player-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sponsor-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
  .people-grid,
  .player-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .sponsor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* HERO CAROUSEL */
.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 108px);
  background-color: #111;
}

/* Livello 1: foto di sfondo */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: var(--bg-desktop);
  background-size: cover;
  opacity: 0;
  transition: opacity 1.8s ease;
}

@media (max-width: 600px) {
  .hero-bg {
    background-image: var(--bg-mobile);
  }
}

.hero-bg.is-active {
  opacity: 1;
}

/* Livello 2: oscuramento, sempre sopra le foto */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.55) 65%,
    rgba(0, 0, 0, 0.75) 100%
  );
  z-index: 5;
  pointer-events: none;
}

/* Livello 3: testo e bottoni, sempre sopra a tutto */
.hero-content-wrap {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-slide-content {
  position: absolute;
  text-align: center;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.7);
  max-width: 700px;
  padding-bottom: 12vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}
.hero-slide-content.is-active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide-content p {
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  line-height: 1.4;
  margin: 0 0 32px;
}
.hero-slide-content .btn {
  font-size: 1.15rem;
  font-weight: 800;
  padding: 16px 42px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  letter-spacing: 0.4px;
}
.hero-slide-content .btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

@media (max-width: 600px) {
  .hero {
    min-height: 75vh;
  }
  .hero-slide-content {
    padding-bottom: 8vh;
  }
  .hero-slide-content p {
    font-size: 1.25rem;
  }
  .hero-slide-content .btn {
    font-size: 1rem;
    padding: 13px 32px;
  }
}

/* SECTION WRAPPER — sfondi alternati full-width */
.section-wrap {
  padding: 60px 0;
}
.bg-white {
  background: #fff;
}
.bg-yellow {
  background: var(--yellow-tint);
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  color: var(--blue-dark);
  margin-bottom: 30px;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background: var(--yellow);
  margin: 12px auto 0;
}

/* CLASSIFICA — box card */
.classifica-box {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

/* CLASSIFICA + PARTITE split */
.classifica-split {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: start;
}
.matches-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.match-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.match-card-title {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 8px;
}
.match-placeholder {
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: center;
  padding: 30px 0;
  margin: 0;
}

@media (max-width: 900px) {
  .classifica-split {
    grid-template-columns: 1fr;
  }
}

/* PAGE TITLE — accento giallo per News */
.page-title-news {
  border-bottom: 4px solid var(--yellow);
  position: relative;
}

/* NEWS FEATURED (primo articolo, stile magazine) */
.news-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 30px;
  align-items: center;
  background: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: var(--shadow);
}
.news-featured-img {
  position: relative;
  display: block;
  height: 100%;
}
.news-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  aspect-ratio: 3/4;
}
.featured-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--yellow);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 4px;
}
.news-featured-body {
  padding: 10px 30px 10px 0;
}
.news-featured-body h2 {
  font-size: 1.6rem;
  line-height: 1.3;
  margin: 10px 0 14px;
}
.news-featured-body h2 a {
  color: var(--blue-dark);
}
.news-featured-body h2 a:hover {
  color: var(--blue);
}
.news-featured-body p {
  color: var(--text-light);
  margin-bottom: 16px;
}

/* NEWS CARD — accento giallo su hover */
.news-card {
  border-top: 3px solid transparent;
  transition:
    transform 0.15s ease,
    border-color 0.15s ease;
}
.news-card:hover {
  border-top-color: var(--yellow);
}
.news-card h3 a:hover {
  color: var(--blue);
}

/* PAGINATION — giallo invece di blu per la pagina corrente */
.pagination .current {
  background: var(--yellow);
  color: var(--blue-dark);
  border-color: var(--yellow);
  font-weight: 700;
}
.pagination a:hover {
  border-color: var(--yellow);
  color: var(--blue-dark);
}

@media (max-width: 900px) {
  .news-featured {
    grid-template-columns: 1fr;
  }
  .news-featured-body {
    padding: 0 20px 20px;
  }
}

/* VIDEO PAGE — integrazione EmbedPlus gallery */
.single-video-wrap,
.epyt-gallery {
  border-radius: var(--radius);
  overflow: hidden;
}
.epyt-gallery {
  margin-top: 10px;
}
.epyt-gallery-source-title {
  color: var(--blue-dark) !important;
}
/* PAGINA FOTO — Photo Gallery plugin */
.foto-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 30px;
  color: var(--text-light);
}
.gallery-item,
.bwg_container1 {
  border-radius: var(--radius) !important;
  overflow: hidden;
}

/* PAGINA STADIO */
.page-title-yellow {
  border-bottom: 4px solid var(--yellow);
}

.stadio-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 50px;
}

.stadio-photo {
  margin: 0 0 30px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stadio-photo img {
  width: 100%;
  aspect-ratio: 16/8;
  object-fit: cover;
}

.stadio-intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text);
  max-width: 650px;
  margin: 0 auto 40px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}
.info-card {
  background: var(--bg-light);
  border-top: 3px solid var(--yellow);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.info-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  font-weight: 700;
}
.info-value {
  font-size: 1.1rem;
  color: var(--blue-dark);
  font-weight: 700;
}

@media (max-width: 700px) {
  .info-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* PAGINA ABBONAMENTO */
.abbonamento-wrap {
  max-width: 950px;
  margin: 0 auto;
  padding-bottom: 50px;
}

.abb-intro {
  text-align: center;
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto 40px;
}

.abb-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}
.abb-plan {
  position: relative;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
}
.abb-plan-highlight {
  border-top-color: var(--yellow);
  background: var(--blue-dark);
  color: #fff;
}
.abb-plan-tag {
  position: absolute;
  top: -14px;
  background: var(--yellow);
  color: var(--blue-dark);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 16px;
  border-radius: 20px;
}
.abb-plan-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-top: 8px;
}
.abb-plan-highlight .abb-plan-name {
  color: #fff;
}
.abb-plan-settore {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-light);
  margin-bottom: 14px;
}
.abb-plan-highlight .abb-plan-settore {
  color: rgba(255, 255, 255, 0.7);
}
.abb-plan-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue-dark);
  margin-bottom: 18px;
}
.abb-plan-highlight .abb-plan-price {
  color: var(--yellow);
}
.abb-plan-price small {
  font-size: 1.1rem;
  font-weight: 600;
}
.abb-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  text-align: left;
  width: 100%;
}
.abb-plan-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.abb-plan-highlight .abb-plan-features li {
  border-bottom-color: rgba(255, 255, 255, 0.15);
}
.abb-plan-features li:last-child {
  border-bottom: none;
}
.abb-plan .btn {
  width: 100%;
  margin-top: auto;
}

.abb-cta-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 45px;
}

.abb-info h2 {
  color: var(--blue-dark);
  position: relative;
  padding-bottom: 8px;
  margin-bottom: 20px;
}
.abb-info h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--yellow);
}

@media (max-width: 700px) {
  .abb-plans {
    grid-template-columns: 1fr;
  }
}

.footer-affiliations {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.footer-affiliations img {
  height: 70px;
  width: auto;
  border-radius: 6px;
  padding: 5px 8px;
}
@media (max-width: 700px) {
  .footer-affiliations {
    justify-content: center;
  }
}
/* SETTORE GIOVANILE */
.sg-wrap {
  padding-bottom: 50px;
}
.sg-intro {
  text-align: center;
  font-size: 1.15rem;
  max-width: 650px;
  margin: 0 auto 40px;
}

.sg-categorie {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 40px;
}
.sg-cat {
  background: var(--bg-light);
  border-top: 3px solid var(--yellow);
  border-radius: var(--radius);
  padding: 18px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sg-cat-name {
  font-weight: 800;
  color: var(--blue-dark);
  font-size: 0.95rem;
}
.sg-cat-anno {
  font-size: 0.8rem;
  color: var(--text-light);
}

.sg-section-title {
  color: var(--blue-dark);
  position: relative;
  padding-bottom: 8px;
  margin: 45px 0 24px;
}
.sg-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--yellow);
}

.sg-partner-logos {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.sg-partner-logos img {
  height: 90px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  box-shadow: var(--shadow);
}

@media (max-width: 900px) {
  .sg-categorie {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .sg-categorie {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* TEAM — titoli sezione per ruolo */
.team-section-title {
  color: var(--blue-dark);
  position: relative;
  padding-bottom: 8px;
  margin: 45px 0 24px;
}
.team-section-title:first-of-type {
  margin-top: 20px;
}
.team-section-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--yellow);
}
/* STAFF TECNICO — variante card più curata */
.staff-grid .person-card {
  background: var(--blue-dark);
  position: relative;
}
.staff-grid .person-photo {
  position: relative;
}
.staff-grid .person-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 45, 92, 0) 60%,
    rgba(15, 45, 92, 0.85) 100%
  );
}
.staff-grid .person-name {
  background: var(--blue-dark);
  padding: 12px 10px 16px;
}
.staff-grid .person-name h3 {
  color: #fff;
}
.staff-grid .role {
  display: inline-block;
  margin-top: 6px;
  color: var(--yellow);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  position: relative;
  padding-top: 6px;
}
.staff-grid .role::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  background: var(--yellow);
}
.staff-grid .person-card:hover {
  transform: translateY(-6px) scale(1.02);
}

/* CONTACT FORM 7 — styling */
.contact-form-box {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 36px;
  box-shadow: var(--shadow);
}
.contact-form-box h2 {
  color: var(--blue-dark);
  margin: 0 0 22px;
  position: relative;
  padding-bottom: 10px;
}
.contact-form-box h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--yellow);
}

.wpcf7-form p {
  margin: 0 0 18px;
}
.wpcf7-form label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--blue-dark);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}
.wpcf7-form textarea {
  min-height: 140px;
  resize: vertical;
}
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(19, 70, 138, 0.12);
}

/* Bottone invio — stesso stile .btn del resto del sito */
.wpcf7-form input[type="submit"],
.wpcf7-submit {
  display: inline-block;
  background: var(--yellow);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 32px;
  border-radius: 6px;
  border: 2px solid var(--blue-dark);
  cursor: pointer;
  transition: transform 0.15s ease;
}
.wpcf7-form input[type="submit"]:hover {
  transform: translateY(-2px);
}
.wpcf7-form input[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Loader durante invio */
.wpcf7-spinner {
  margin-left: 10px;
}

/* Messaggi di validazione ed esito */
.wpcf7-not-valid-tip {
  color: #c0392b;
  font-size: 0.82rem;
  margin-top: 4px;
  display: block;
}
.wpcf7-form-control-wrap {
  position: relative;
  display: block;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  border-color: #c0392b;
  color: #c0392b;
  background: #fdecea;
}
.wpcf7 form.sent .wpcf7-response-output {
  border-color: #2e7d32;
  color: #2e7d32;
  background: #eaf7ec;
}
.wpcf7-response-output {
  margin-top: 20px;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

@media (max-width: 600px) {
  .contact-form-box {
    padding: 22px;
  }
}
/* STADIO — box lavori di riqualificazione */
.stadio-renovation {
  background: var(--blue-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 30px 32px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}
.stadio-renovation::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--yellow);
}
.renovation-date {
  display: inline-block;
  background: var(--yellow);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.stadio-renovation h2 {
  color: #fff;
  margin: 0 0 14px;
}
.stadio-renovation p {
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 18px;
}
.renovation-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.renovation-list li {
  position: relative;
  padding-left: 30px;
  line-height: 1.5;
}
.renovation-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: var(--yellow);
  color: var(--blue-dark);
  font-weight: 900;
  font-size: 0.85rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* STADIO — sezione storia */
.stadio-history {
  max-width: 800px;
  margin: 40px auto 0;
}
.stadio-history h2 {
  color: var(--blue-dark);
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 20px;
}
.stadio-history h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: var(--yellow);
}
.stadio-history p {
  line-height: 1.8;
  margin-bottom: 18px;
  color: var(--text);
}

@media (max-width: 600px) {
  .stadio-renovation {
    padding: 24px 20px;
  }
}
/* PALMARÈS — trofei + stagioni consecutive */
.palmares-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 24px;
  align-items: stretch;
}
.stat-highlight {
  background: var(--blue-dark);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.stat-number {
  font-size: 4rem;
  font-weight: 900;
  color: var(--yellow);
  line-height: 1;
}
.stat-label {
  color: #fff;
  font-size: 0.9rem;
  margin-top: 10px;
  line-height: 1.4;
}
.trophy-list {
  background: #fff;
  border-top: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow);
}
.trophy-list h3 {
  margin: 0 0 16px;
  color: var(--blue-dark);
}
.trophy-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.trophy-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}
.trophy-year {
  flex-shrink: 0;
  background: var(--bg-light);
  color: var(--blue-dark);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 4px;
  min-width: 66px;
  text-align: center;
}

@media (max-width: 700px) {
  .palmares-wrap {
    grid-template-columns: 1fr;
  }
  .stat-number {
    font-size: 3rem;
  }
}
.main-nav {
  display: contents;
}

/* PAGINA CLASSIFICA — layout completo con tutti i widget */
.classifica-page-wrap {
  padding-bottom: 60px;
}
.matches-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 700px) {
  .matches-row {
    grid-template-columns: 1fr;
  }
}
/* VIDEO CTA — banner sfondo pieno con overlay */
.video-cta-section {
  position: relative;
  background-size: cover;
  background-position: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.video-cta-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 45, 92, 0.55) 0%,
    rgba(15, 45, 92, 0.85) 100%
  );
}
.video-cta-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 600px;
  padding: 0 20px;
}
.video-cta-content h2 {
  font-size: 2rem;
  margin: 0 0 14px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}
.video-cta-content p {
  font-size: 1.1rem;
  opacity: 0.92;
  margin: 0 0 26px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

@media (max-width: 600px) {
  .video-cta-section {
    min-height: 320px;
  }
  .video-cta-content h2 {
    font-size: 1.5rem;
  }
}

/* CLASSIFICA — pulsante CTA */
.classifica-cta {
  text-align: center;
  margin-top: 28px;
}

/* PAGINA FOTO — album Facebook in stile tiles */
.fb-album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}
.fb-album-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  transition: transform 0.15s ease;
}
.fb-album-card:hover {
  transform: translateY(-4px);
}
.fb-album-cover {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #ddd;
}
.fb-album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fb-album-icon {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  background: #1877f2;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.fb-album-title {
  padding: 12px 14px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--blue-dark);
}

/* CLUB — sezione stemma e affiliazioni */
.club-crest-wrap {
  text-align: center;
}
.club-crest-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.club-crest-top .club-logo {
  max-height: 170px;
  width: auto;
}
.club-badges-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.club-badge,
.badge-serie-d {
  border-radius: 10px;
  padding: 14px 20px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.club-badge {
  background: var(--blue);
}

.badge-serie-d {
  background: #fff;
}

.club-badge img {
  height: 68px;
  width: auto;
}
.club-badge.badge-serie-d {
  padding: 10px 16px;
}
.club-badge.badge-serie-d img {
  height: 130px;
}

@media (max-width: 600px) {
  .club-crest-top {
    gap: 20px;
    margin-bottom: 24px;
  }
  .club-crest-top .club-logo {
    max-height: 110px;
  }
  .club-badge img {
    height: 48px;
  }
  .club-badge.badge-serie-d img {
    height: 90px;
  }
  .club-badges-row {
    gap: 14px;
  }
}

/* BIGLIETTERIA — volantino prossima partita */
.ticket-layout {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 28px;
  align-items: start;
  margin-top: 30px;
}

.ticket-flyer {
  background: var(--blue-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}
.ticket-flyer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--yellow);
}
.ticket-tag {
  display: inline-block;
  background: var(--yellow);
  color: var(--blue-dark);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}
.ticket-teams {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 0 6px;
}
.ticket-teams span {
  color: var(--yellow);
  font-size: 1rem;
  font-weight: 400;
  margin: 0 6px;
}
.ticket-competizione {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin: 0 0 24px;
}

.ticket-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.ticket-info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ticket-info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--yellow);
  font-weight: 700;
}
.ticket-info-value {
  font-size: 0.98rem;
  color: #fff;
}

.ticket-block {
  margin-bottom: 22px;
}
.ticket-block h3 {
  color: var(--yellow);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0 0 10px;
}
.ticket-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ticket-list li {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.92);
  padding-left: 18px;
  position: relative;
}
.ticket-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--yellow);
}

.ticket-deadline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  margin-bottom: 24px;
}

.ticket-cta {
  display: block;
  text-align: center;
  width: 100%;
}

/* Locandina — fuori dal box blu, card indipendente */
.ticket-poster {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ticket-poster img {
  width: 100%;
  display: block;
}

@media (max-width: 900px) {
  .ticket-layout {
    grid-template-columns: 1fr;
  }
  .ticket-poster {
    order: -1;
  }
}

@media (max-width: 600px) {
  .ticket-flyer {
    padding: 24px 20px;
  }
  .ticket-info-row {
    grid-template-columns: 1fr;
  }
}

/* CLUB — foto storiche */
.club-history-section {
  padding-top: 0;
}
.club-history-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.club-history-photo {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.club-history-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(60%);
  transition:
    filter 0.3s ease,
    transform 0.3s ease;
}
.club-history-photo:hover img {
  filter: grayscale(0%);
  transform: scale(1.04);
}

@media (max-width: 900px) {
  .club-history-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .club-history-grid {
    grid-template-columns: 1fr;
  }
}

/* VIDEO SECTION  */
.video-section {
  background: var(--blue-dark);
  color: #fff;
}
.video-section .section-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px 40px;
  text-align: center;
}
.video-section .section-label {
  display: inline-block;
  color: var(--yellow);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.video-section h2 {
  color: #fff;
  font-size: 1.8rem;
  margin: 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.video-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 9/16;
}
.video-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* MATCH CARD — bottone azione secondario */
.match-card-cta {
  display: block;
  text-align: center;
  margin-top: 14px;
  font-size: 0.85rem;
  padding: 8px 16px;
}
/* CLASSIFICA — marcatori campionato a piena larghezza */
.marcatori-full {
  margin-bottom: 24px;
}
/* HOME — rimuove lo spazio bianco tra ultima sezione e footer */
.home .site-footer {
  margin-top: 0;
}

/* HEADER MOBILE — logo perfettamente centrato, indipendente dall'hamburger */
@media (max-width: 600px) {
  .header-inner {
    position: relative;
    justify-content: flex-end;
    min-height: 90px;
  }
  .site-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  .site-logo img {
    max-height: 80px;
  }
}

/* SPONSOR — Main Sponsor / Media Partner, box singolo più grande */
.main-sponsor-wrap {
  display: flex;
  justify-content: center;
}
.main-sponsor-logo {
  max-width: 320px;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.main-sponsor-logo:hover {
  transform: translateY(-4px);
}
.main-sponsor-logo img {
  width: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  display: block;
}
/* ABBONAMENTO — spazio extra tra video campagna e card piani */
.abb-video-section {
  margin-bottom: 60px;
}
/* CONTATTI — variante icone social per sfondo chiaro */
.social-icons-solid .social-icon {
  background: var(--blue-dark);
  color: #fff;
}
.social-icons-solid .social-icon:hover {
  background: var(--yellow);
  color: var(--blue-dark);
}

/* CREDITS — pagina dedicata agenzia/sviluppatore */
.credits-wrap {
  max-width: 700px;
  margin: 0 auto;
  padding-bottom: 60px;
}
.credits-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.credits-card {
  text-align: center;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.credits-photo {
  width: auto;

  margin: 0 auto 20px;
  overflow: hidden;
}
.credits-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.credits-label {
  display: block;
  color: var(--text-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}
.credits-card h2 {
  margin: 0;
  font-size: 1.3rem;
}
.credits-card h2 a {
  color: var(--blue-dark);
}
.credits-card h2 a:hover {
  color: var(--blue);
}

@media (max-width: 600px) {
  .credits-grid {
    grid-template-columns: 1fr;
  }
}

/* STORE — griglia prodotti */
.shop-wrap {
  padding-bottom: 60px;
}
.shop-intro {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text);
  max-width: 650px;
  margin: 0 auto 40px;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}
.product-card:hover {
  transform: translateY(-4px);
}
.product-card-img {
  display: block;
}
.product-card-img {
  background: var(--bg-light);
}
.product-card-img img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: contain;
}
.product-card-body {
  padding: 18px;
  text-align: center;
}
.product-card-body h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}
.product-card-body h3 a {
  color: var(--text);
}
.product-card-price {
  display: block;
  font-weight: 700;
  color: var(--blue-dark);
  font-size: 1.15rem;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .shop-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .shop-grid {
    grid-template-columns: 1fr;
  }
}

/* STORE — personalizzazione maglia (nome + numero) */
.fbcg-personalizzazione-maglia {
  display: flex;
  gap: 16px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.fbcg-personalizza-field {
  flex: 1;
  min-width: 160px;
}
.fbcg-personalizza-field label {
  display: block !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  color: var(--blue-dark) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px;
  margin-bottom: 6px !important;
}
.fbcg-personalizza-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}
/* STORE — pagina prodotto singola WooCommerce */
.product-single-wrap {
  max-width: 1100px;
  margin: 40px auto 60px;
}
.product-single-wrap .product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.woocommerce-product-gallery {
  width: 100% !important;
  float: none !important;
}
.woocommerce-product-gallery img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
}
.summary.entry-summary {
  width: 100% !important;
  float: none !important;
}
.product_title {
  font-size: 2rem;
  color: var(--blue-dark);
  margin: 0 0 12px;
  line-height: 1.25;
}
.product_meta {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 20px;
}
.product_meta a {
  color: var(--blue);
}
.woocommerce-product-details__short-description {
  margin-bottom: 24px;
  line-height: 1.7;
}

/* Prezzo */
.summary .price {
  display: block;
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  color: var(--blue-dark) !important;
  margin-bottom: 24px;
}
.summary .price .woocommerce-Price-amount {
  color: var(--blue-dark) !important;
}
.summary .price del {
  color: var(--text-light);
  opacity: 0.6;
  font-size: 1.2rem;
  margin-right: 8px;
}
.summary .price ins {
  text-decoration: none;
  color: var(--blue-dark);
}

/* Quantità + pulsante carrello */
.cart {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.quantity .qty {
  width: 70px !important;
  padding: 10px 12px !important;
  border: 1px solid var(--border) !important;
  border-radius: 6px !important;
  font-family: inherit;
  font-size: 0.95rem !important;
  text-align: center;
}
.single_add_to_cart_button.button {
  display: inline-block !important;
  background: var(--yellow) !important;
  color: var(--blue-dark) !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  padding: 12px 32px !important;
  border-radius: 6px !important;
  border: 2px solid var(--blue-dark) !important;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.single_add_to_cart_button.button:hover {
  transform: translateY(-2px);
}

/* Tabs (Descrizione / Recensioni) */
.woocommerce-tabs {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.woocommerce-tabs ul.tabs {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 0 0 24px;
  border-bottom: 2px solid var(--border);
}
.woocommerce-tabs ul.tabs li {
  margin: 0;
}
.woocommerce-tabs ul.tabs li a {
  display: inline-block;
  padding: 10px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--text-light);
}
.woocommerce-tabs ul.tabs li.active a {
  color: var(--blue-dark);
  border-bottom: 2px solid var(--yellow);
  margin-bottom: -2px;
}
.woocommerce-Tabs-panel h2 {
  color: var(--blue-dark);
  font-size: 1.3rem;
  margin-bottom: 16px;
}

/* Form recensioni */
.comment-form textarea,
.comment-form input[type="text"],
.comment-form input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
}
.comment-form input[type="submit"],
.woocommerce #respond input#submit {
  display: inline-block;
  background: var(--yellow);
  color: var(--blue-dark);
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 6px;
  border: 2px solid var(--blue-dark);
  cursor: pointer;
}

/* Prodotti correlati */
.related.products {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.related.products > h2 {
  color: var(--blue-dark);
  font-size: 1.4rem;
  margin-bottom: 24px;
}

.related.products ul.products {
  list-style: none !important;
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
  padding: 0 !important;
  margin: 0 !important;
}
.related.products ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  background: #fff !important;
  border-radius: var(--radius) !important;
  overflow: hidden !important;
  box-shadow: var(--shadow) !important;
  padding: 0 !important;
  transition: transform 0.15s ease;
}
.related.products ul.products li.product:hover {
  transform: translateY(-4px);
}
.related.products ul.products li.product img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1/1;
  object-fit: contain !important;
  background: var(--bg-light);
}

.related.products ul.products li.product .woocommerce-loop-product__title {
  display: block;
  padding: 14px 16px 4px;
  font-size: 1rem;
  color: var(--blue-dark);
  font-weight: 700;
}
.related.products ul.products li.product .price {
  display: block;
  padding: 0 16px 16px;
  font-weight: 700;
  color: var(--blue-dark);
}
.related.products ul.products li.product .button {
  display: none;
}

@media (max-width: 800px) {
  .product-single-wrap .product {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .related.products ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* STORE — tabs e prodotti correlati a piena larghezza, fuori dalla griglia 2 colonne */
.product-single-wrap .product > .woocommerce-tabs,
.product-single-wrap .product > .related.products {
  grid-column: 1 / -1;
}
