@charset "utf-8";/* CSS Document */









*, a, li {
  /* font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; */
  /* color: #635c5a; */
  font-family: regular;
  color: #000;
  line-height: 20px;
}

em {
  font-family: regular-italic;
}

body {
  margin: 0px;
  /* padding: 0.1px; */
  background-color: #fff;
}

#spaziatore_news_slider {
  padding-top: 7vh;
}

#spaziatore_top {
  padding-top: 13vh;
}

a, img, table {
  border: 0px;
}

a {
  text-decoration: none;
}

a:hover {
  color: #cc181d;
}

a .image-title {
  display: none;
}

h1,
.partnersModule h3 {
  color: #605f5f;
  margin-top: 0px;
  font-size: 30px;
  line-height: 42px;
  letter-spacing: 1px;
}

h2, h3 {
  color: #605f5f;
  font-size: 20px;
  line-height: 32px;
  letter-spacing: 1px;
  font-weight: bold;
  font-style: italic;
}

.partnersModule h3 {
  text-align: center;
}

p {
  text-align: justify;
  font-size: 14px;
}

ul {
  font-size: 14px;
}

.button,
.btn,
.visBtnCon input,
.readmore {
  padding: 5px 20px 5px 20px;
  color: #FFF;
  border: 0px solid #f0f0f0;
  border-radius: 10px;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 12px;
  letter-spacing: 2px;
  background: #cc181d;
  cursor: pointer;
}

.btn:hover {
  color: #FFF;
}

/* ------------------------------------------- TOP */
#top {
  position: relative;
  float: left;
  width: 100%;
  background-color: #FFF;
  border-bottom: 1px solid #cc181d;
  box-shadow: 2px 2px 5px -2px #929292;
  -webkit-box-shadow: 2px 2px 5px -2px #929292;
  -moz-box-shadow: 2px 2px 5px -2px #929292;
  background-image: url('https://teramocalcio1913.it/images/varie/foto-stadio-trasparente.webp');
  background-size: 100%;
  background-position: center;
}

#inner-top {
  position: fixed;
  float: left;
  width: 100%;
  padding: 0px 0px 0px 15%;
  background: #FFF;
  box-shadow: 2px 2px 5px -2px #929292;
  -webkit-box-shadow: 2px 2px 5px -2px #929292;
  -moz-box-shadow: 2px 2px 5px -2px #929292;
  border-bottom: 5px solid #cc181d;
  z-index: 99999999999;
}

#nav-menu {
  position: relative;
  float: left;
  width: 55%;
  margin-top: 1.3vw;
}

#link-social {
  position: relative;
  float: left;
  width: 25%;
}

div#mainMenu.maximenuckh ul.maximenuck {
  background: transparent;
  padding: 0px;
  margin: 0px;
}
#mainMenu ul li span {
  text-transform: uppercase;
  font-size: 1vw;
}

#mainMenu ul li.level1 span {
  color: #cc181d;
  letter-spacing: 1px;
}

#mainMenu ul li.level2 span,
#mainMenu ul li.level3 span {
  color: #cc181d;
}

#mainMenu ul li.level2 a,
#mainMenu ul li.level3 a {
  border-bottom: 1px solid #c8c6c6 !important;
}

#mainMenu .floatck {
  background: #FFF !important;
  border: 1px solid #cc181d !important;
}

div#mainMenu ul.maximenuck li.maximenuck.level1 > a {
  padding: 0px;
  min-height: 0px;
}

#link-social .menuTop,
#link-social ul {
  position: relative;
  float: right;
  width: 100%;
}

#link-social ul {
  position: relative;
  display: inline;
  width: auto;
  padding: 0px;
  margin: 0px;
}

#link-social ul li {
  position: relative;
  display: inline;
  list-style: none;
}

#link-social ul li img {
  height: auto;
  width: 2vw;
  margin: 1vw;
  /* border: 1px solid #cc181d;
  box-shadow: 2px 2px 5px -2px #000;
  -webkit-box-shadow: 2px 2px 5px -2px #000;
  -moz-box-shadow: 2px 2px 5px -2px #000;
  border-radius: 1000px; */
  background-color: #FFF;;
}

#link-social ul li .sponsor_tecnico img {
  height: 2.2vw;
  width: auto;
  margin: .8vw;
  -webkit-box-shadow: 0px 0px 0px 0px #FFF;
}

#link-social ul li img:hover {
  /* border: 1px solid #fff; */
}

#logo {
  position: fixed;
  width: 5%;
  left: 5%;
  top: -10px;
  z-index: 99999999999;
}

#logo img {
  position: relative;
  width: 100%;
  padding: 30px 0px;
}

/* ------------------------------------------- NEWS HOMEPAGE */
#news {
  position: relative;
  float: left;
  width: 100%;
  background-color: #ac0000;
  /* padding-top: 5vh; */
  /* overflow: hidden; */
}

#news .owl-item {
  /* 3 colonne */
  /* width: 33.33vw !important; */

  /* 1 colonna */
  /* width: 100vw !important; */

  /* overflow: hidden; */
}

#news #articleData {
  /* 4 colonne */
  /* width: 21vw;
  padding: 2vw; */

  /* 3 colonne */
  /* width: 29vw;
  padding: 2vw 2.25vw; */

  /* 1 colonne */
  width: 50vw !important;
  /* padding: 2vw 45vw 2vw 5vw; */

  position: absolute;
  bottom: 0px;
  /* background-color: rgba(255,255,255, 1); */
  z-index: 99999;
  text-align: left;
  border-bottom: 0px solid #cc181d;
  background-color: transparent !important;
}

#news #articleData .jt-title {
  font-family: titles;
  text-transform: uppercase;
  font-size: 3vw !important;
  line-height: 4vw;
}

#news #articleData #newsInfos h5 {
  margin: 0px;
}

#news #articleData #newsInfos h5 a {
  margin-top: 0px;
}

#news #articleData .jt-category {
  display: none;
}

#news .jt-cs .jt-imagecover {
  /* height: 95vh; */
}

#news .jt-cs .jt-imagecover img {
  /* max-width: fit-content !important; */
  width: 100vw;
  /* margin-left: -90%; */
  border-bottom: 5px solid #cc181d;
}

#news .jt-cs .slide {
  background-color: #FFF;
}

#news #newsInfos {
  position: relative;
  float: left;
  width: 100%;
}

#news .jt-category,
#news .jt-author-date {
  position: relative;
  float: left;
  width: auto;
  margin: 0px !important;
  font-size: 12px !important;
  padding: 0px 10px 0px 0px !important;
  text-align: left;
}

#news .jt-author-date {
  padding: 0px 10px !important;
}

#news .jt-title {
  position: relative;
  float: left;
  width: 100%;
  font-size: 24px !important;
  margin-top: 20px;
  
}

#news .jt-category,
#news .jt-author-date,
#news .jt-title {
  letter-spacing: 1px;
}

#news .jt-category a {
  color: #cc181d !important;
  text-transform: uppercase;
}

#news .jt-author-date span,
#news .jt-title {
  color: #FFF !important;
  /* color: #cc181d !important; */
}

#news .jt-author-date {
  border-left: 2px solid #FFF;
}

.positioncenter.owl-carousel .owl-nav button.owl-prev {
  left: 0px;
  background-image: url('https://teramocalcio1913.it/templates/teramo_calcio/images/prev.png');
  background-size: 100%;
}

.positioncenter.owl-carousel .owl-nav button.owl-next {
  right: 0px;
  background-image: url('https://teramocalcio1913.it/templates/teramo_calcio/images/next.png');
  background-size: 100%;
}

.jtcs118 .owl-dots {
  float: left;
  margin: 30px 0px;
  bottom: 0px;
}

.owl-carousel button.owl-dot {
  color: #cc181d;
}

.jt-cs .owl-dots .active span {
  background: #cc181d;
}

.jt-cs .owl-dots span {
  border: 2px solid #cc181d;
}

#news .owl-dots {
  display: none;
}

#news2.latest_news {
  position: relative;
  float: left;
  width: 90%;
  padding: 2.5% 5%;
  background-color: #ac0000;
}

#news2.latest_news h4 {
  color: #FFF;
  text-transform: uppercase;
}

/* ------------------------------------------- BANNERS */
#banners {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
}

#banners-footer {
  position: relative;
  float: left;
  width: 100%;
  overflow: hidden;
  margin-top: 5%;
}

/* #banners: ogni div .custom occupa il 50% della riga, centrando il proprio
   contenuto sia in orizzontale che in verticale. Tutti hanno la stessa altezza
   grazie a "align-items: stretch" impostato su #banners. */
#banners .custom {
  position: relative;
  float: none;
  width: 50%;
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#banners .custom img {
  position: relative;
  float: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Riquadro con IFRAME dentro #banners (es. widget biglietteria) ---
   L'iframe è reso "elastico" da banners.js: viene tenuto alla sua
   dimensione nativa (gli attributi width/height del codice di embed) e
   poi scalato con transform: scale() in proporzione alla larghezza del
   riquadro. Il contenuto del frame quindi si ingrandisce e si
   rimpicciolisce SEMPRE PER INTERO insieme al riquadro e lo riempie
   esattamente: lo sfondo rosso non resta mai scoperto, né ai lati né
   sotto. L'ALTEZZA DELLA RIGA È SEMPRE DINAMICA: è l'altezza del
   contenuto scalato, che lo script imposta sul riquadro e ricalcola da
   solo a ogni resize. In larghezza la colonna occupa almeno 560px, così
   il frame non viene mai schiacciato troppo quando divide la riga con
   l'immagine. */
#banners .custom:has(iframe) {
  flex: 1 1 75%;
  width: auto;
  min-width: min(560px, 100%);
  flex-direction: column;
  align-items: stretch;
  /* il contenuto scalato parte dall'angolo in alto a sinistra del
     riquadro (è il transform-origin usato dallo script): niente
     centratura verticale, altrimenti la scala finirebbe fuori posto */
  justify-content: flex-start;
  overflow: hidden;
}

#banners .custom:has(iframe) > * {
  width: 100%;
}

/* Fallback SENZA JavaScript: iframe largo quanto il riquadro, con
   l'altezza del codice di embed (comportamento precedente). Quando
   banners.js è attivo, dimensioni e scala vengono impostate inline
   dallo script con priorità !important, quindi vincono su questa
   regola. */
#banners .custom iframe {
  display: block;
  border: 0;
  width: 100% !important;
  max-width: 100%;
}

/* La colonna con l'immagine (il riquadro più piccolo) non determina
   MAI l'altezza della riga: #banners resta alto quanto il riquadro
   più grande al suo interno (quello con l'iframe) e questa colonna si
   limita a seguirne l'altezza. L'immagine COPRE SEMPRE TUTTO il
   riquadro (object-fit: cover): si allarga e si restringe insieme a
   lui, resta centrata, e ciò che sborda — ai lati O sopra/sotto —
   viene ritagliato (overflow: hidden). Così, per quanto il riquadro
   si allarghi oltre la dimensione naturale dell'immagine, lo sfondo
   rosso non si vede mai. */
#banners .custom:not(:has(iframe)) {
  position: relative;
  flex: 1 1 45%;
  width: auto;
  min-width: 0;
  overflow: hidden;
}

#banners:has(iframe) .custom:not(:has(iframe)) > * {
  margin: 0;
}

/* Il link/wrapper dell'immagine non deve fare da riferimento di
   posizionamento (l'immagine si centra rispetto al riquadro intero)
   né dare altezza alla colonna */
#banners:has(iframe) .custom:not(:has(iframe)) a {
  position: static !important;
  height: auto !important;
}

#banners:has(iframe) .custom:not(:has(iframe)) img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  transform: none;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center;
}

#banners-footer .custom {
  position: relative;
  float: left;
  width: 50%;
}

#banners-footer .custom img {
  position: relative;
  float: left;
  width: 100%;
  height: auto;
}

/* --- Modulo #mod-custom190 ("scarica l'app"): tutto il contenuto (testo,
   bottoni store, immagine mockup) centrato nel riquadro. L'immagine occupa
   lo spazio restante e resta SEMPRE intera e centrata (orizzontale e
   verticale), mai tagliata o nascosta dai bordi. Desktop e mobile. --- */
#mod-custom190 {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
}

#mod-custom190 p {
  float: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

/* Il paragrafo che contiene il mockup assorbe l'altezza rimanente
   e centra l'immagine al suo interno */
#mod-custom190 p:has(.mockup-app),
#mod-custom190 p:has(img[src*="mockup-app"]) {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Caso in cui l'immagine sia figlia diretta del modulo, senza <p> */
#mod-custom190 > .mockup-app,
#mod-custom190 > img[src*="mockup-app"] {
  flex: 1 1 auto;
  min-height: 0;
}

#mod-custom190 .mockup-app,
#mod-custom190 img[src*="mockup-app"] {
  position: static;
  bottom: auto;
  display: block;
  width: auto;
  height: auto;
  max-width: 70%;
  max-height: 100%;
  object-fit: contain;
  margin: 0 auto;
}

/* Scopri la prima maglia */
#mod-custom188 p {
  margin: 0px;
  padding: 0px;
  width: 100%;
}

#mod-custom188 a {
  position: relative;
  float: left;
  text-align: center;
  width: 100%;
  height: auto;
  margin: 0px;
  padding: 0px;
}

#mod-custom188 a span {
  font-family: banners;
  font-size: 4vw;
  line-height: 5vw;
  color: #FFF;
  text-align: center;
  z-index: 1;
  text-transform: uppercase;
  position: absolute;
  left: 1%;
  width: 50%;
  top: 20%;
}

#mod-custom188 a img {
  z-index: 0;
}

/* ------------------------------------------- ULTIME NOTIZIE */
.moduli-contenuto.top .tns-ovh {
  margin-top: 50px;
}

/* ------------------------------------------- VIDEOGALLERY / PHOTOGALLERY */
.moduletable.videogallery,
.moduletable.photogallery,
.moduletable.sponsorMese {
  position: relative;
  width: 50%;
  margin: 10px 0px;
  text-align: center;
  box-sizing: border-box;
}

/* Allinea il contenuto di .videogallery e .photogallery al centro sia in orizzontale che in verticale */
.moduletable.videogallery,
.moduletable.photogallery {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.moduletable.videogallery p,
.moduletable.photogallery p,
.moduletable.sponsorMese p {
  text-align: center !important;
}

.moduli-contenuto.top .moduletable.videogallery {
  float: none;
  margin: 10px auto;
}

.moduletable.sponsorMese img {
  position: relative;
  float: left;
  width: 60%;
  margin: 0px 20%;
}

.moduletable.sponsorMese a {
  position: relative;
  float: left;
  width: 100%;
  color: #cc181d;
  font-size: x-large;
  margin-top: 30px;
}

.eventgallery-category-headline {
  display: none !important;
}

.moduletable.videogallery h3,
.moduletable.photogallery h3,
.moduletable.sponsorMese h3,
.photogalleryTitle {
  font-family: banners;
  text-align: center;
  color: #ac0000 !important;
  text-transform: uppercase;
  font-style: italic;
  font-size: 32px;
  line-height: 42px;
  font-weight: bold;
  letter-spacing: 5px;
  margin-top: 0px;
}

.moduletable.videogallery .ytf-sidebar {
  display: none;
}

.moduletable.videogallery .ytf-player {
  width: 100%;
  border-radius: 20px;
}

/* ------------------------------------------- DJ LEAGUE */
.djl_theme_bootstrap.djl_schedule table td {
  font-size: 14px;
}

#djleague table thead tr th, #djleague table tbody tr td.score {
  width: 100px;
}

/* ------------------------------------------- DETTAGLI MATCH */
.dettagliMatch img,
.sponsor_match_img {
  position: relative;
  float: left;
  width: 40%;
  height: auto;
  margin: 20px 30%;
}

.dettagliMatch .team,
.dettagliMatch .score {
  position: relative;
  float: left;
  width: 40%;
  text-align: center;
}

.dettagliMatch .score {
  width: 20%;
  padding-top: 50px;
}

.dettagliMatch .score span {
  color: #cc181d;
  font-weight: bold;
  font-size: 3vw;
  line-height: 2vw;
}

.dettagliMatch .team img {
  /* float: none;
  width: auto;
  height: 100px;
  margin: 20px 0px; */
  position: relative !important;
  float: left !important;
  width: 20% !important;
  margin: 20px 40% !important;
}

.dettagliMatch .team span {
  float: left;
  width: 100%;
  font-size: 2vw;
  line-height: 3vw;
}

.dettagliMatch .infoMatch {
  position: relative;
  float: left;
  width: 100%;
  margin: 50px 0px;
  text-align: center;
}

.dettagliMatch .infoMatch p {
  text-align: center !important;
}

.dettagliMatch .infoMatch img,
.sponsor_match_img {
  width: 30% !important;
  margin: 5% 35% !important;
}

.claim_sponsor_match {
    position: relative;
    float: left;
    width: 100%;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 20px;
    margin: 80px 0px -40px 0px;
}

/* ------------------------------------------- NEXT MATCH */
#container-nextMatch-biglietti {
  position: relative;
  float: left;
  width: 100%;
  background-color: #d5d5d5;
}

#next-match,
#biglietti {
  position: relative;
  float: left;
  width: 50%;
  margin: 2% 0px;
  text-align: center !important;
  color: #000 !important;
  /*
  background-image: url('https://teramocalcio1913.it/images/varie/foto-stadio-trasparente.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  */
}

#next-match h3,
#biglietti h3 {
  font-family: banners;
  color: #cc181d;
  text-transform: uppercase;
  font-size: 36px;
  line-height: 46px;
  letter-spacing: 1px;
  text-align: center;
}

#next-match {
  width: 49.5%;
  border-right: 2px solid #000;
}

.game_counter {
  /* width: 70%;
  margin: 0px 15%;
  padding: 30px 0px;
  background-color: rgba(255,255,255, .8); */
  width: 100%;
  margin: 0px;
  padding: 0px;
  background-color: #d5d5d5;
  color: #000;
}

.djl_theme_bootstrap.mod_djl_counter .dj-date-counter>span:before,
.djl_theme_bootstrap.mod_djl_counter .dj-date-counter span span:before {
  display: none;
}

.djl_theme_bootstrap.mod_djl_counter .dj-date-counter span span {
  width: auto;
}

.nextMatch .team_logo,
.liveMatch table .team_logo {
  position: relative !important;
  float: left !important;
  width: 20% !important;
  margin: 20px 40% !important;
  max-width: none !important;
  max-height: none !important;
}

#biglietti p {
  text-align: center !important;
  font-weight: bold;
  font-size: 2vw;
  line-height: 3vw;
  padding: 0px 15%;
}


/* ------------------------------------------- LIVE MATCH */
.liveMatch h3 {
  margin-bottom: 0px;
}

.liveMatch table {
  text-align: center;
  width: 70%;
  margin: 0px 15%;
  /* background-color: rgba(255,255,255, .8); */
  padding: 30px 0px;
}

.liveMatch table tr td {
  padding: 20px 0px;
}

.liveMatch table .game_day {
  font-size: 14px !important;
  line-height: 24px;
}

.liveMatch table .name {
  position: relative;
  float: left;
  width: 100%;
  font-size: 20px;
  line-height: 30px;
  text-transform: uppercase;
  text-align: center;
}

.liveMatch table .team_logo {
  position: relative !important;
  float: left !important;
  width: 20% !important;
  margin: 20px 40% !important;
  max-width: none !important;
  max-height: none !important;
}

.liveMatch table .score {
  font-size: 28px;
  line-height: 44px;
  text-transform: uppercase;
  color: #cc181d;
  font-weight: bold;
}

.liveMatch .live #telecronaca {
  position: relative;
  float: left;
  width: 100%;
  max-height: 450px;
  overflow-y: scroll;
}

.liveMatch .live * {
  font-size: 18px !important;
  line-height: 38px !important;
  color: #000;
  text-align: center;
}

.liveMatch .live img {
  width: 20%;
  height: auto;
  margin: 0px 40%;
}

/* ------------------------------------------- PHOTOGALLERY */
.event-content {
  width: 100% !important;
}

.thumbnail-container:hover .event-content {
  background-color: rgba(0, 0, 0, 1);
}

.item-container .title,
.item-container .date,
.event-content .date,
.event-content .title {
  color: #FFF;
}

.item-container .date,
.event-content .date {
  font-size: 12px;
}

.item-container .title,
.event-content .title {
  text-transform: uppercase;
  padding: 10px 0px;
}

#events {
  margin-bottom: 5%;
}

#events form .com-content-category__navigation p {
  display: none;
}

.eventgallery-events-gridlist .item-container {
  width: 27% !important;
  margin: 3%;
}

/* ------------------------------------------- PARTNERS */
.partnersModule {
  margin-top: 100px;
}

#partners {
  position: relative;
  float: left;
  width: 100%;
  background-color: #FFF;
  margin: 2% 0px;
}

/* ------------------------------------------- CLASSIFICA */
#djleague table {
  border: 0px solid #cc181d;
  background: #FFF;
}

#djleague table thead {
  /* background: #cc181d; */
}

#djleague table thead tr th,
#djleague table tbody tr td {
  border-bottom-color: #e3e3e3 !important;
  border-bottom: 1px solid #e3e3e3 !important;
}

#djleague table thead th,
#djleague table thead th span {
  color: #cc181d;
  text-transform: uppercase;
  font-size: 24px;
  line-height: 36px;
}

#djleague table thead tr th,
#djleague table tbody tr td {
  padding: 20px;
}

#djleague table tbody td {
  text-align: center;
}

#djleague table thead th.team_th,
#djleague table tbody td.team {
  text-align: left;
}

#djleague table tbody td.points {
  color: #cc181d;
}

/* ------------------------------------------- CALENDARIO */
#djleague .schedule_order {
  margin-bottom: 30px;
}

#djleague .schedule_order a:hover {
  color: #FFF;
}

#djleague .djl_schedule_list {
  border: 0px;
  width: 100%;
}

#djleague .venue {
  text-align: left;
}

#djleague .time span,
#djleague .venue span {
  font-size: 12px;
  line-height: 24px;
}

/* ------------------------------------------- PAGINE NOTIZIE - modulo */
.articleData {
  background-color: #000;
  padding: 20px;
}

.mfp_carousel_item:hover div {
  background-color: #cc181d;
}

.mfp_carousel_item:hover .mfp_date,
.mfp_carousel_item:hover .mfp_carousel_title,
.mfp_carousel_item:hover .mfp_carousel_title a {
  color: #FFF !important;
}

.articleData h5,
.articleData .mfp_carousel_title {
  margin: 0px;
}

.articleData h5 a,
.mfp_carousel_skin_default .mfp_carousel_item .mfp_carousel_title a {
  color: #FFF;
  text-transform: uppercase;
  font-size: 14px !important;
  line-height: 22px !important;
  letter-spacing: 1px;
  font-weight: normal !important;
}

.articleData .jt-author-date,
.articleData .mfp_date {
  gap: 0px !important;
  margin: 0px 0px 10px 0px !important;
}

.articleData .jt-author-date span,
.articleData .mfp_date {
  color: #cc181d !important;
  text-transform: uppercase;
  font-size: 12px !important;
  letter-spacing: 1px;
  font-weight: bold;
}

.mfp_carousel_item div {
  box-shadow: 2px 2px 5px -2px #000;
  -webkit-box-shadow: 2px 2px 5px -2px #000;
  -moz-box-shadow: 2px 2px 5px -2px #000;
  background-color: #f6f6f6;
}

.articleData .mfp_date {
  margin: 0px 0px 20px 0px !important;
}

a.mfp_thumb_pos_top {
  line-height: 0px !important;
}

.mfp_carousel_skin_default .mfp_carousel_item .mfp_thumb_pos_top img {
  margin-bottom: 0px !important;
}

.mfp_carousel_skin_default .mfp_carousel_item .mfp_carousel_title a {
  color: #000;
}

/* ------------------------------------------- PAGINE NOTIZIE - blog */
.notizieBlog {
  position: relative;
  float: left;
  width: 100%;
}

.notizieBlog .blog-item {
  position: relative;
  float: left;
  width: 22%;
  margin: 1.5%;
  /* border: 1px solid #000; */
  box-shadow: 2px 2px 5px -2px #000;
  -webkit-box-shadow: 2px 2px 5px -2px #000;
  -moz-box-shadow: 2px 2px 5px -2px #000;
  overflow: hidden;
}

.notizieBlog .category-name {
  display: none;
}

.notizieBlog .blog-item:hover {
  /* border: 1px solid #bbbaba; */
}

.notizieBlog .blog-item:hover .item-content {
  background-color: #cc181d;
}

.notizieBlog .blog-item:hover .item-content h2,
.notizieBlog .blog-item:hover .item-content h2 a,
.notizieBlog .blog-item:hover .item-content .article-info .published time {
  color: #FFF;
}

.notizieBlog .article-info {
  margin: 0px;
}

.com-content-category-blog__navigation {
  position: relative;
  float: left;
  width: 100%;
}

.item-content {
  position: relative;
  float: left;
  width: 80%;
  background-color: #f6f6f6;
  padding: 10%;
}

.notizieBlog figure,
.notizieBlog .page-header,
.item-content h2 {
  position: relative;
  float: left;
  width: 100%;
  margin: 0px !important;
}

.notizieBlog figure {
  position: relative;
  float: left;
  width: 100%;
  /* text-align: center !important; */
  height: auto !important;
}

.notizieBlog figure img {
  position: relative !important;
  float: left;
  width: 100% !important;
  left: 0px;
}

.item-content h2,
.item-content h2 a {
  color: #000;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 26px !important;
  letter-spacing: 1px;
  font-weight: normal;
}

.item-content .article-info .published {
  position: relative;
  float: left;
  width: 100%;
  height: auto;
  text-align: left;
  padding: 0px;
  margin: 0px;
}

.item-content .article-info .published time {
  position: relative;
  float: left;
  width: 100%;
  margin: 0px 0px 20px 0px !important;
  color: #cc181d;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: bold;
}

.item-pagecategoria .article-info {
  position: relative;
  float: left;
  width: 100%;
  margin: 0px 0px 20px 0px;
}

.item-pagecategoria .article-info .category-name,
.item-pagecategoria .article-info .published {
  position: relative;
  float: left;
  width: auto;
  padding: 5px 20px;
  margin: 0px 20px 0px 0px;
}

.item-pagecategoria .article-info .category-name {
  background-color: #cc181d;
  border-radius: 50px;
}

.item-pagecategoria .article-info .category-name span,
.item-pagecategoria .article-info .published time {
  text-transform: uppercase;
  font-size: 12px;
  line-height: 22px;
  letter-spacing: 1px;
}

.item-pagecategoria .article-info .category-name span {
  color: #FFF;
}

.item-pagecategoria h1 {
  color: #635c5a !important;
  font-size: 14px !important;
  line-height: 26px !important;
  text-transform: none !important;
}

.item-pagecategoria h2,
.item-page.articolo h1,
#article h1,
.videogallery h3,
.sponsorMese h3,
.societa h1,
.moduli-contenuto.top .mfp_block_title h4 {
  color: #000;
  text-transform: uppercase;
  margin-top: 0px;
  font-size: 36px;
  line-height: 48px;
  letter-spacing: 1px;
  font-family: titles;
}

/* ------------------------------------------- NEWSLETTER E DOWNLOAD APP */
/* Due riquadri quadrati e simmetrici: ognuno occupa esattamente metà riga
   (box-sizing: border-box include il padding nel 50%). L'altezza nasce
   dall'aspect-ratio 1/1 + align-items: stretch del contenitore flex:
   sono sempre alti uguali e, se il contenuto è più alto del quadrato,
   il box cresce invece di tagliare (overflow visibile). */
.newsletter,
.downloadApp {
  position: relative;
  float: left;
  width: 50%;
  box-sizing: border-box;
  /* aspect-ratio: 1 / 1; */
  height: auto;
  padding: 0px;
  color: #FFF;
  overflow: visible;
}

.newsletter {
  padding: 5%;
}

.newsletter h5,
.newsletter h3 {
  color: #FFF;
  text-transform: uppercase;
  padding: 0px !important;
  margin: 0px !important;
  /* font-style: italic; */
  font-family: banners;
}

.newsletter h5 {
  font-size: 24px;
  line-height: 36px;
}

.newsletter h3 {
  font-size: 5vw;
  line-height: 6vw;
}


.newsletter form,
.downloadApp form,
.newsletter label,
.downloadApp label,
.newsletter p,
.downloadApp p,
.newsletter .acym_introtext {
  color: #FFF;
}

.newsletter p {
  font-size: 1.5vw;
  line-height: 2.5vw;
}

.newsletter form input {
  width: 97%;
  padding: 10px;
  border: 1px solid #000;
  border-radius: 50px;
  margin: 0px;
  font-size: 1.3vw;
  text-transform: lowercase;
  font-style: italic;
  max-width: 100%;
}

.newsletter .acysubbuttons {
  position: relative;
  float: left;
  width: 100%;
}

.newsletter form input.btn {
  font-weight: bolder;
  text-transform: uppercase;
  color: #ac0000 !important;
  background-color: #FFF !important;
  border: 0px;
  float: right;
  width: auto;
  font-size: 1vw;
  letter-spacing: 0px;
}

.downloadApp {
  text-align: center;
  background-image: url('https://teramocalcio1913.it/images/banners/download-app-background.jpg');
  background-size: cover;
  background-position: left bottom;
  background-repeat: no-repeat;
}

.downloadApp img,
.downloadApp .mockup-app {
  position: relative;
  display: block; /* niente spazio extra sotto l'immagine (baseline inline) */
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 50vw;    /* mai più alta del quadrato (metà riga) */
  object-fit: contain; /* sempre intera: niente tagli né deformazioni */
}

.downloadApp p {
  font-family: banners;
  position: relative;
  float: left;
  width: 100%;
  text-align: center;
  text-transform: uppercase;
  font-size: 5vw;
  margin: 10% 0px;
}

/* ------------------------------------------- PULSANTI STORE */
#storeContainer {
  position: relative;
  float: left;
  width: 100%;
  height: auto;
}

.downloadApp #storeContainer {
  margin-top: 30px;
  margin-bottom: 0px;
}

.downloadApp p span {
  position: relative;
  float: left;
  width: 100%;
  font-size: 12px !important;
  margin-top: 20px;
  color: #FFF !important;
}

.downloadApp p span a,
.downloadApp p span a:hover {
  color: #FFF !important;
}

#storeContainer img {
  position: relative;
  float: left;
  width: 30%;
  height: auto;
  margin: 20px 10%
}

/* ------------------------------------------- ORGANIGRAMMA E SQUADRA */
.societa .slide {
  border: 1px solid #d2d1d1;
  box-shadow: 2px 2px 5px -2px #000;
  -webkit-box-shadow: 2px 2px 5px -2px #000;
  -moz-box-shadow: 2px 2px 5px -2px #000;
}

.societa .slide h5,
.societa .slide h5 a {
  text-align: center;
  background-color: #f6f6f6;
  color: #cc181d;
  font-size: 26px;
  line-height: 38px;
  margin: 0px !important;
  padding: 20px 0px !important;
}

.societa h1 {
  color: #000 !important;
  text-transform: uppercase !important;
  font-size: 36px !important;
  line-height: 48px !important;
}

.societa h3 {
  text-align: center;
  color: #000;
  font-size: 30px;
  line-height: 42px;
}

.societa .left.item-image {
  position: relative;
  float: left;
  width: 30% !important;
  margin: 0px 2% 2% 0px !important;
}

.com-content-article__body {
  position: relative;
  float: left;
  width: 100%;
}

.item-pagecategoria.societa .com-content-article__body {
  width: 68%;
}

.fields-container {
  position: relative;
  float: left;
  width: 96%;
  background-color: #f6f6f6;
  border-radius: 20px;
  margin: 0px;
  padding: 2%;
}

.fields-container li {
  list-style: none;
  border-bottom: 1px solid #e3e3e3;
  font-size: 16px;
  line-height: 28px;
  padding: 10px 0px;
}

.field-label {
  text-transform: uppercase;
  color: #cc181d;
  font-weight: bold;
}

#testoArticolo h3 *,
#testoArticolo h4 * {
  color: #cc181d;
}

#testoArticolo,
#testoArticolo img {
  position: relative;
  float: left;
  width: 100%;
  height: auto;
}

.crediti #testoArticolo img {
  width: 40% !important;
  margin-right: 60%;
  height: auto;
}

#testoArticolo img.abbonamenti {
  width: 60%;
  margin: 0px 20%;
}

/* ------------------------------------------- MODULI CONTENUTO TOP E BOTTOM */
.moduli-contenuto.top {
  position: relative;
  width: 90%;
  margin: 0 auto;
  padding: 3% 5%;
}

.moduli-contenuto.center,
.moduli-contenuto.bottom {
  position: relative;
  float: left;
  width: 100%;
  padding: 3% 0px;
}

.moduli-contenuto.center {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
}

.moduli-contenuto.bottom {
  background-color: #ac0000;
  padding: 0px;
  /* Niente altezza fissa: la riga si adatta ai due riquadri quadrati.
     Flex + align-items: stretch = altezze sempre identiche;
     flex-wrap permette l'impilamento su mobile (width: 100%). */
  height: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

/* ------------------------------------------- MESSAGGI DI SISTEMA */
#system-message-container {
  overflow: hidden;
  border-radius: 20px;
}

.alert-message {
  background-color: #d3f0d2;
  border-radius: 20px;
}

.alert-error {
  background-color: #f5ccc8;
  border-radius: 20px;
  margin-bottom: 60px;
}

.alert-error .alert-message {
  background-color: #f5ccc8;
}

.close {
  margin-left: 10px;
}

.alert-heading,
.alert-message {
  text-align: center;
  text-transform: uppercase;
}

.alert-message {
  text-transform: none;
  padding-bottom: 10px;
}

.alert-heading,
.alert-message {
  color: #336d30;
}

.alert-error .alert-heading,
.alert-error .alert-message {
  color: #c91806;
}


/* ------------------------------------------- PAGINAZIONE */
.com-content-category-blog__navigation {
  position: relative;
  float: left;
  width: 100%;
  margin-top: 40px;
}

.com-content-category-blog__navigation p {
  text-align: center !important;
  display: none;
}

.pagination__wrapper {
  position: relative;
  float: left;
  width: 100%;
  padding: 20px 0px;
  text-align: center;
}

.pagination__wrapper ul {
  padding: 0px;
  margin: 0px 0px 20px 0px;
}

.pagination__wrapper ul li {
  list-style: none;
  display: inline;
  padding: 0px 10px;
  font-size: 2vw;
}

.pagination__wrapper ul .active {
  border-radius: 4px;
  background-color: #cc181d;
  text-align: center;
}

.pagination__wrapper ul .active a {
  color: #FFF;
}

/* ------------------------------------------- CORPO */
#corpo {
  position: relative;
  float: left;
  width: 80%;
  left: 10%;
}

#corpo figure.left,
#corpo figure.center,
#corpo figure.right {
  position: relative;
  float: left;
  width: 100%;
  margin: 0px 0% 20px 0%;
}

#corpo figure img {
  position: relative;
  float: left;
  width: 100%;
  height: auto;
}

/* ------------------------------------------- CONTATTI */
.contacts {
  position: relative;
  float: left;
  width: 25%;
  height: 200px;
  padding: 3%;
  /* padding: 3% 9.5%; */
  margin: 1%;
  text-align: center;
  background-color: #f6f6f6;
  box-shadow: 2px 2px 5px -2px #929292;
  -webkit-box-shadow: 2px 2px 5px -2px #929292;
  -moz-box-shadow: 2px 2px 5px -2px #929292;
  border-bottom: 2px solid #FFF;
}

.contacts img {
  width: 30%;
}

.contacts span {
  position: relative;
  float: left;
  width: 100%;
  text-align: center;
  padding: 30px 0px;
  font-weight: bold;
  font-size: 1.3vw;
}

.visforms fieldset {
  border: 0px;
  position: relative;
  float: left;
  width: 50%;
  padding: 5% 25%;
}

.visforms .visCSSlabel {
  display: none;
}

.visforms input,
.visforms textarea,
.visforms select {
  width: 100%;
  border: 1px solid #cc181d;
  border-radius: 50px;
  padding: 10px 20px;
  margin: 10px 0px;
  font-size: 16px;
  line-height: 28px;
}

.visforms textarea {
  border-radius: 20px;
}

.visforms .visBtnCon {
  position: relative;
  float: left;
  width: 100%;
  text-align: center;
}

.visforms .visBtnCon input {
  width: auto;
  padding: 10px 20px;
}

/* ------------------------------------------- ORGANIGRAMMA */
.organigramma-societario {
    display: flex; /* Allinea in riga */
    width: 100%; /* Occupa tutta la larghezza disponibile */
    margin: 0; /* Nessun margine esterno al contenitore */
    padding: 0; /* Nessun padding */
}

.organigramma-societario img {
    flex: 1; /* Ogni immagine si espande per riempire lo spazio */
    width: 33%; /* Mantiene le proporzioni dinamiche */
    height: auto !important; /* Evita distorsioni */
    margin: 2.5% 0; /* Margine superiore/inferiore del 2.5%, nessun margine laterale */
    padding: 0; /* Nessun padding */
    box-sizing: border-box; /* Include bordi nel calcolo della dimensione */
}

/* ------------------------------------------- FOOTER */
#footer {
  position: relative;
  float: left;
  width: 60%;
  margin: 0px;
  background-color: #f6f6f6;
  padding: 3% 20%;
  text-align: center;
}

#copyright {
  position: relative;
  float: left;
  width: 100%;
  border-bottom: 1px solid #cc181d;
  margin-bottom: 30px;
}

#footer img {
  position: relative;
  width: 10%;
}

#footer span {
  position: relative;
  float: left;
  width: 100%;
  text-align: center;
  margin: 10px 0px;
}

#social-menu,
#help-menu {
  position: relative;
  float: right;
  margin: 0.4% 1% 0px 0px;
}

#social-menu {
  width: 20%;
  float: left;
  text-align: left;
}

.menuSocial {
  position: relative;
  float: left;
  padding: 0px;
  margin: 0px;
}

.menuSocial li {
  display: inline;
  list-style: none;
  padding: 0px 10px;
}

.menuSocial li img {
  height: 30px;
  width: auto !important;
}

#help-menu ul {
  margin: 0px;
  list-style: none;
  padding: 0px;
  text-align: right;
}

#help-menu ul li {
  margin: 5px;
  font-size: 12px;
  display: inline;
  /* font-style: italic; */
}

.logo-renma-menu {
  height: 2vh;
  width: auto !important;
  margin-left: 10px;
  margin-top: -10px;
}

#footer a {
  color: #cc181d;
}

#footer a:hover {
  color: #857e7c;
}

/* --- Sovrascrittura CSS per Slider News --- */

/* Contenitore principale dello slider */
#news .jtcs118.owl-carousel .owl-stage-outer {
  overflow: hidden !important;
  /* L'altezza viene gestita da JavaScript, ma aggiungiamo una transizione per fluidità */
  transition: height 0.4s ease-in-out !important;
}

/* Assicuriamo che l'immagine si adatti correttamente */
#news .jtcs118.owl-carousel .owl-item img.jtcs-image {
  width: 100% !important;
  height: auto !important; /* Mantiene le proporzioni originali */
  object-fit: cover; /* Copre l'area senza distorcere l'immagine */
  display: block;
}

/* Nascondiamo il testo sotto l'immagine per basare l'altezza solo sulla foto */
#news .jtcs118.owl-carousel .owl-item #articleData {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5); /* Sfondo semi-trasparente per leggibilità */
  color: white;
  padding: 15px;
  box-sizing: border-box;
}

#news .jtcs118.owl-carousel .owl-item h5,
#news .jtcs118.owl-carousel .owl-item .jt-author-date {
  color: white !important;
  margin: 0;
}

#iubenda-cs-paragraph p,
#iubenda-cs-paragraph p *,
#iubenda-cs-banner .iubenda-banner-content:not(.iubenda-custom-content) *, #iubenda-cs-banner [class*=" iub"], #iubenda-cs-banner [class^=iub] {
  color: #FFF !important;
}

#sponsor_tecnico span {
  position: absolute;
  margin-top: 3.5%;
  margin-left: 1%;
  font-weight: 900;
  font-size: larger;
}






/* BANNER CROWDFUNDING */
/* Layout a 3 colonne gestito in modo generico da #banners .custom (vedi sopra):
   non dipende più dagli ID fissi dei singoli moduli, quindi supporta
   qualsiasi numero di div .custom aggiunti dentro #banners. */
#banners {
  text-align: center !important;
  background-color: #ac0001 !important;
}@media(max-width: 768px) {#top {
  position: relative;
  float: left;
  width: 100%;
  background-color: #FFF;
  border-bottom: 1px solid #cc181d;
  box-shadow: 2px 2px 5px -2px #929292;
  -webkit-box-shadow: 2px 2px 5px -2px #929292;
  -moz-box-shadow: 2px 2px 5px -2px #929292;
  background-image: url('/images/jch-optimize/rs/768/images_varie_foto-stadio-trasparente.webp');
  background-size: 100%;
  background-position: center;
}}@media(max-width: 576px) {#top {
  position: relative;
  float: left;
  width: 100%;
  background-color: #FFF;
  border-bottom: 1px solid #cc181d;
  box-shadow: 2px 2px 5px -2px #929292;
  -webkit-box-shadow: 2px 2px 5px -2px #929292;
  -moz-box-shadow: 2px 2px 5px -2px #929292;
  background-image: url('/images/jch-optimize/rs/576/images_varie_foto-stadio-trasparente.webp');
  background-size: 100%;
  background-position: center;
}}@media(max-width: 768px) {#next-match,
#biglietti {
  position: relative;
  float: left;
  width: 50%;
  margin: 2% 0px;
  text-align: center !important;
  color: #000 !important;
  /*
  background-image: url('/images/jch-optimize/rs/768/images_varie_foto-stadio-trasparente.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  */
}}@media(max-width: 576px) {#next-match,
#biglietti {
  position: relative;
  float: left;
  width: 50%;
  margin: 2% 0px;
  text-align: center !important;
  color: #000 !important;
  /*
  background-image: url('/images/jch-optimize/rs/576/images_varie_foto-stadio-trasparente.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  */
}}
/* CSS Document */

[data-id="mainMenu"] .mobilemenuck-bar-title,
[data-id="mainMenu"].mobilemenuck {
  background-color: #FFF;
  -webkit-box-shadow: 2px 2px 5px -2px #929292;
  -moz-box-shadow: 2px 2px 5px -2px #929292;
  border-bottom: 5px solid #cc181d;
}

[data-id="mainMenu"].mobilemenuck {
  position: fixed !important;
  background-color: #f6f6f6;
  height: 100vh;
  z-index: 99999999999 !important;
  overflow: hidden !important;
}

[data-id="mainMenu"] .mobilemenuck-title {
  background: transparent;
  height: auto;
}

[data-id="mainMenu"] .mobilemenuck-bar-button,
[data-id="mainMenu"] .mobilemenuck-item > .level1 {
  background: #f6f6f6;
  color: #cc181d;
}

[data-id="mainMenu"] .mobilemenuck-bar-button {
  background: #FFF;
}

[data-id="mainMenu"] .mobilemenuck-item > .level1.open {
  background: #f6f6f6;
}

.mobilemenuck-item .level2 span {
  font-size: 16px;
}

[data-id="mainMenu"] .mobilemenuck-item {
  padding: 0px 10vw;
}

[data-id="mainMenu"] .mobilemenuck-item .mobilemenuck-item,
[data-id="mainMenu"] .mobilemenuck-item .mobilemenuck-item .mobilemenuck-item {
  padding: 0px
}

[data-id="mainMenu"] .mobilemenuck-item > .level1.open .mobilemenuck-togglericon,
.mobilemenuck-button,
.mobilemenuck-item .open span {
  color: #000 !important;
}

.mobilemenuck-item span {
  font-weight: bold;
  font-size: 18px;
  text-transform: uppercase;
}

.mobilemenuck-togglericon {
  color: #f6f6f6 !important;
}

[data-id="mainMenu"] .mobilemenuck-togglericon:after {
  background: #cc181d !important;
}

[data-id="mainMenu"] .level2 + .mobilemenuck-submenu .mobilemenuck-item > div {
  background-color: #FFF;
}

[data-id="mainMenu"] .mobilemenuck-item > .level1:not(.headingck):hover,
[data-id="mainMenu"] .mobilemenuck-item > .level1.open,
[data-id="mainMenu"] .mobilemenuck-item > .level2:not(.headingck):hover,
[data-id="mainMenu"] .mobilemenuck-item > .level2.open,
[data-id="mainMenu"] .level2 + .mobilemenuck-submenu .mobilemenuck-item > div:not(.headingck):hover {
  background-color: #cc181d;
}

[data-id="mainMenu"] .mobilemenuck-item > .level1:not(.headingck):hover span,
[data-id="mainMenu"] .mobilemenuck-item > .level1.open span,
[data-id="mainMenu"] .mobilemenuck-item > .level2:not(.headingck):hover span,
[data-id="mainMenu"] .mobilemenuck-item > .level2.open span,
[data-id="mainMenu"] .mobilemenuck-item > .level1.open .mobilemenuck-togglericon,
.mobilemenuck-button, .mobilemenuck-item .open span {
  color: #FFF !important;
}

[data-id="mainMenu"] .level2 + .mobilemenuck-submenu .mobilemenuck-item > div span {
  color: #635c5a !important;
  font-weight: bold !important;
  font-size: 16px !important;
}

[data-id="mainMenu"] .level2 + .mobilemenuck-submenu .mobilemenuck-item > div:hover span {
  color: #FFF !important;
}

.mobilemenuck-button {
  color: #635c5a !important;
}

/* --- #banners su TABLET e SMARTPHONE (fino a 767px) --- */
/* Sotto i 768px i due riquadri passano in colonna. L'immagine torna
   intera (altezza naturale) e l'iframe — scalato da banners.js —
   occupa tutta la larghezza con il contenuto SEMPRE INTERO, solo
   rimpicciolito in proporzione (niente più tagli): l'altezza di ogni
   riquadro è sempre quella del proprio contenuto. Senza JavaScript
   l'iframe tiene l'altezza del codice di embed, come prima. */
@media (max-width: 767px) {

  #banners {
    flex-direction: column;
  }

  #banners .custom,
  #banners .custom:has(iframe),
  #banners .custom:not(:has(iframe)) {
    width: 100%;
    flex: none;
    min-width: 0;
  }

  #banners .custom img {
    height: auto;
    object-fit: unset;
  }

  /* In colonna il riquadro con l'immagine torna a flusso normale
     (niente più position: absolute del desktop): immagine intera a
     tutta larghezza, altezza naturale */
  #banners:has(iframe) .custom:not(:has(iframe)) a {
    position: relative !important;
  }

  #banners:has(iframe) .custom:not(:has(iframe)) img {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    object-fit: initial;
  }

}

/* SMARTPHONE */
@media (max-width: 450px) {

  #sponsor_tecnico img {
    margin-left: -30% !important;
  }

  #sponsor_tecnico span {
    margin-top: 6.5%;
  }

  #banners,
  .moduli-contenuto.bottom {
    background-color: #FFF !important;
  }

  .newsletter {
    background-color: #ac0000;
  }

  #banners .mod-custom,
  .newsletter,
  .downloadApp img,
  #news2 {
    border-radius: 50px !important;
    margin: 5% !important;
    width: 90% !important;
  }

  #news2 {
    width: 80% !important;
  }

  .newsletter h3 {
    font-size: 11vw !important;
  }

  /* BANNER CROWDFUNDING */
  /* i due moduli sulla stessa riga, a prescindere da quanti wrapper ci sono */
  #mod-custom188,
  #mod-custom176 {
    width: 100% !important;
    max-width: 100% !important;       /* così ci stanno in due sulla riga */
  }

  img.renma {
    width: 100%;
  }

  #testoArticolo img.abbonamenti {
    width: 100%;
    margin: 0px;
  }

  #inner-top {
    display: none;
  }

  #logo {
    width: 20%;
  }

  #news {
    padding-top: 0vh;
    margin-top: -7vh;
  }

  #news #articleData {
    width: 60vw !important;
  }

  .dettagliMatch .team span {
    font-size: 5vw;
    line-height: 6vw;
  }

  .dettagliMatch .score span {
    font-size: 5.5vw;
    line-height: 6.5vw;
  }

  .game_counter {
    width: 80%;
    margin: 0px 5%;
    padding: 5%;
  }

  .djl_theme_bootstrap.mod_djl_counter .dj-date-counter {
    font-size: 26px;
    margin: 0px
  }

  .djl_theme_bootstrap.mod_djl_counter .dj-date-counter span span {
    background: transparent;
    letter-spacing: 0px;
  }

  .contacts {
    /* width: 70%;
    padding: 5%;
    margin: 10%; */
    width: 94%;
    margin: 10% 0%;
    height: 250px;
  }

  .contacts span {
    font-size: 100%;
  }

  .visform {
    position: relative;
    float: left;
    width: 100%;
  }

  .visforms fieldset {
    width: 100%;
    padding: 5% 0%;
  }

  .visforms input,
  .visforms textarea,
  .visforms select {
    width: 80%;
  }

  .eventgallery-events-gridlist .item-container {
    width: 100% !important;
    margin: 5% 0px;
  }

  #events .item-container .item {
    padding: 0px;
  }

  #djleague table thead th,
  #djleague table thead th span {
    font-size: 14px;
    line-height: 26px;
  }

  #djleague table thead tr th,
  #djleague table tbody tr td {
    padding: 5px;
  }

  .djl_schedule_list .time,
  .djl_schedule_list .venue {
    display: none;
  }

  #next-match {
    width: 100%;
    padding: 0px;
    border-right: 0px;
  }

  #biglietti {
    width: 90%;
    margin: 0px 5%;
    padding: 0px;
    border-top: 2px solid #000;
  }

  #biglietti p {
    font-size: 7vw;
    line-height: 8vw;
  }

  #biglietti .btn-link {
    font-size: 4vw;
  }

  .liveMatch * {
    text-align: center;
  }

  .liveMatch table {
    width: 90%;
    margin: 0px 5%;
  }

  .nextMatch .team_logo,
  .liveMatch table .team_logo {
    display: block !important;
    height: 60px !important;
    width: auto !important;
    margin: 20px auto !important;
    float: none !important;;
  }

  .liveMatch table .name {
    font-size: 18px;
    line-height: 28px;
  }
  
  .liveMatch table .score {
    font-size: 24px;
    line-height: 34px;
  }

  .dettagliMatch img {
    width: 100% !important;
    margin: 20px 0% !important;
  }

  .claim_sponsor_match {
    font-size: 18px;
    margin: 80px 0px 0px 0px;
  }

  .dettagliMatch .infoMatch img,
  .sponsor_match_img {
    width: 100% !important;
    margin: 50px 0% !important;
  }

  .dettagliMatch .infoMatch img {
    margin: -50px 0px 50px 0px !important;
  }

  .liveMatch .team_home,
  .liveMatch .vs_score,
  .liveMatch .team_away {
    width: 30% !important;
  }

  .notizieBlog .blog-item {
    width: 100%;
    margin: 5% 0px;
  }

  .item-pagecategoria .article-info .category-name,
  .item-pagecategoria .article-info .published {
    position: relative;
    float: left;
    width: 40%;
    padding: 5px 5%;
    margin: 0px;
    text-align: center;
  }

  .societa .left.item-image {
    width: 100% !important;
    margin: 0px 0px 40px 0px !important;
  }

  .com-content-article__body {
    width: 100%;
  }

  .fields-container {
    position: relative;
    float: left;
    width: 90%;
    background-color: #f6f6f6;
    border-radius: 20px;
    margin: 0px;
    padding: 5%;
  }

  .pagination__wrapper ul li {
    font-size: 8vw;
  }

  .moduletable.videogallery,
  .moduletable.photogallery,
  .moduletable.sponsorMese {
    width: 100%;
  }

  .moduletable.sponsorMese img {
    width: 90%;
    margin: 0px 5%;
  }

  .crediti #testoArticolo img {
    width: 100% !important;
    margin-right: 0px;
  }

  /* Impilati uno sotto l'altro: ogni riquadro è un QUADRATO DINAMICO,
     l'altezza segue sempre la larghezza (aspect-ratio 1/1: se la
     larghezza cambia, cambia anche l'altezza). L'altezza minima è
     quella del contenuto (min-height automatico dei flex item): se
     gli elementi della newsletter non ci stanno nel quadrato, il
     riquadro cresce quanto basta e nulla viene mai nascosto. */
  .newsletter,
  .downloadApp {
    width: 100%;
    /* aspect-ratio: 1 / 1; */
    height: auto;
    max-height: none;
  }

  /* Il modulo "scarica l'app": nessun padding, così l'immagine quadrata
     riempie esattamente il riquadro senza venire tagliata */
  .downloadApp {
    max-height: none;
    height: auto;
    padding: 0px;
  }

  /* Il mockup su smartphone: sempre intero e centrato, con un tetto
     di altezza per non allungare troppo la pagina */
  #mod-custom190 .mockup-app,
  #mod-custom190 img[src*="mockup-app"] {
    max-height: 50vh;
  }

  .newsletter {
    width: 100%;
    margin-bottom: 5%;
  }

  .newsletter h3 {
    font-size: 12vw;
    line-height: 13vw;
  }

  .newsletter p {
    font-size: 4vw;
    line-height: 6vw;
  }

  .newsletter form input {
    max-width: 85%;
    font-size: 4vw;
  }

  .newsletter .acysubbuttons {
    max-width: 90%;
  }

  .newsletter form input.btn {
    font-size: 4vw;
  }

  .downloadApp {
    background-size: contain;
  }

  .downloadApp p {
    font-size: 9vw;
    line-height: 9vw;
  }

  .downloadApp p span a {
    font-size: 5vw;
    line-height: 5vw;
  }

  /* #storeContainer img {
    width: 100% !important;
    margin: 20px 0% !important;
  } */

  .downloadApp #storeContainer img,
  #article #storeContainer img {
    width: 40% !important;
    margin: 10px 5% !important;
  }

  .downloadApp #storeContainer {
    margin-bottom: 0px;
  }

  .downloadApp img,
  .downloadApp .mockup-app {
    width: 100%;
    max-height: 100vw;   /* mai più alta del quadrato a tutta larghezza */
    object-fit: contain; /* sempre intera: niente tagli né deformazioni */
  }

  #footer {
    width: 80%;
    padding: 10%;
  }

  #footer img {
    width: 30%;
  }

  #social-menu,
  #help-menu,
  #help-menu ul {
    width: 100%;
    float: left;
    text-align: center;
  }

  #help-menu {
    margin-top: 30px;
  }

  #help-menu ul img {
    width: 20%;
  }

  .menuSocial {
    width: 100%;
  }

  .organigramma-societario {
    position: relative !important;
    float: left !important;
    display: grid !important;
  }

  .organigramma-societario img {
    position: relative !important;
    float: left !important;
    width: 100% !important;
    flex: none !important;
    margin: 5% 0px !important;
    width: 100% !important;
  }

  #banners {
    flex-direction: column;
  }

  #banners .custom,
  #banners-footer .custom {
    width: 100%;
  }

  #banners .custom {
    flex: none;
  }

  #banners .custom img {
    height: auto;
    object-fit: unset;
  }

  #mod-custom188 a span {
    font-size: 8vw;
    line-height: 9vw;
  }

  /* In colonna: ogni riquadro calcola la propria altezza da solo
     (quadrato dinamico), senza lo stretch orizzontale del desktop
     che su mobile può gonfiare l'altezza */
  .moduli-contenuto.bottom {
    height: auto;
    flex-direction: column;
    align-items: stretch;
  }

}

.menuSocialMobile {
  width: 100%;
  text-align: center;
  list-style: none;
  padding: 0px;
  margin: 50px 0px 0px 0px;
  display: inline-flex;
}

.menuSocialMobile img {
  width: 30%;
  height: auto;
}

#menuTopMobile {
  position: fixed;
  top: 5px;
  z-index: 9999999999 !important;
  width: auto !important;
  text-align: right !important;
  right: 20vw;
}

#menuTopMobile img {
  width: auto !important;
  height: 7vw;
  /* border: 1px solid #cc181d; */
  border-radius: 500px;
}

#menuTopMobile img:hover {
  border: 1px solid #FFF;
  border-radius: 500px;
}
/* --------------------------------------------------------------------------
   1. Variabili
   -------------------------------------------------------------------------- */
#menu_centrale {
  --menu-sfondo-barra: #ffffff;
  --menu-bordo-colore: #b9152c;
  --menu-bordo-spessore: 1px;
  --menu-raggio: 8px;                    /* da allineare ai box di #news2     */
  --menu-voce-sfondo: #f5f5f5;
  --menu-voce-sfondo-hover: #ececec;
  --menu-voce-sfondo-attiva: #eeeeee;
  --menu-testo: #1a1a1a;
  --menu-testo-hover: #b9152c;
  --menu-gap: 18px;                      /* spazio tra le voci su desktop     */
  --menu-gap-mobile: 12px;               /* spazio verticale su mobile        */
  --menu-margine-laterale: 15px;         /* margine laterale desktop          */
  --menu-margine-laterale-mobile: 15px;  /* = margine degli altri box mobile  */
  --menu-padding-barra: 12px;
  --menu-margine-basso: 100px;            /* stacco dal contenuto sottostante  */
  --menu-voce-padding: 6px;
  --menu-testo-dimensione: 15px;
  --menu-altezza-voce-mobile: 58px;
}

/* --------------------------------------------------------------------------
   2. La barra bianca a tutta larghezza schermo
   -------------------------------------------------------------------------- */
#menu_centrale {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-bottom: var(--menu-margine-basso) !important;

  background: var(--menu-sfondo-barra);
  padding: var(--menu-padding-barra) var(--menu-margine-laterale) !important;
  box-sizing: border-box;
  float: none !important;
  clear: both;
}

#menu_centrale *,
#menu_centrale *::before,
#menu_centrale *::after {
  box-sizing: border-box;
}

/* eventuali wrapper interni non devono limitare la larghezza */
#menu_centrale:not(ul) > div,
#menu_centrale:not(ul) > nav {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  float: none;
}

/* --------------------------------------------------------------------------
   3. LISTA DI PRIMO LIVELLO — voci affiancate
      Primo selettore  : l'id è sulla <ul> stessa.
      Secondo selettore: l'id è su un contenitore, e prendo la prima <ul>
                         che non sia dentro un <li> (cioè non un sottomenu).
   -------------------------------------------------------------------------- */
ul#menu_centrale,
#menu_centrale:not(ul) ul:not(li ul) {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  gap: var(--menu-gap) !important;

  width: 100% !important;
  max-width: none !important;
  list-style: none !important;
  float: none !important;
  border: 0;
}

/* i margini/padding della lista li azzero solo quando NON è anche la barra */
#menu_centrale:not(ul) ul:not(li ul) {
  margin: 0 !important;
  padding: 0 !important;
  background: none;
}

/* --------------------------------------------------------------------------
   4. Gli <li>: stessa larghezza, affiancati
   -------------------------------------------------------------------------- */
#menu_centrale li {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;

  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  list-style: none !important;
  background: none;
  border: 0;
}

#menu_centrale li::before,
#menu_centrale li::after {
  content: none !important;
}

/* --------------------------------------------------------------------------
   5. La voce: quadrato, bordo rosso, contenuto centrato
   -------------------------------------------------------------------------- */
#menu_centrale li > a,
#menu_centrale li > span,
#menu_centrale li > .nav-header,
#menu_centrale li > .mod-menu__heading {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;

  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  padding: var(--menu-voce-padding);
  overflow: hidden;

  background: var(--menu-voce-sfondo);
  border: var(--menu-bordo-spessore) solid var(--menu-bordo-colore);
  border-radius: var(--menu-raggio);

  color: var(--menu-testo);
  font-size: var(--menu-testo-dimensione);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease;
}

#menu_centrale li > a:hover,
#menu_centrale li > a:focus-visible {
  background: var(--menu-voce-sfondo-hover);
  color: var(--menu-testo-hover);
  text-decoration: none;
}

#menu_centrale li.active > a,
#menu_centrale li.current > a {
  background: var(--menu-voce-sfondo-attiva);
  color: var(--menu-testo-hover);
}

#menu_centrale a:focus-visible,
#menu_centrale span:focus-visible {
  outline: 2px solid var(--menu-bordo-colore);
  outline-offset: 2px;
}

/* immagine: larga quanto la voce, centrata, mai fuori dal quadrato */
#menu_centrale li > a img,
#menu_centrale li > span img {
  display: block;
  margin: 0 auto;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: inherit;
}

#menu_centrale li > a:has(> img:only-child) {
  padding: 0;
  gap: 0;
}

/* VARIANTE — immagine che riempie tutto il quadrato ritagliando gli eccessi:

#menu_centrale li > a img {
  height: 100% !important;
  object-fit: cover;
}
*/

/* --------------------------------------------------------------------------
   6. Sottomenu — qualunque <ul> che sta dentro un <li>
   -------------------------------------------------------------------------- */
#menu_centrale li ul {
  flex-direction: column !important;
  gap: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#menu_centrale li li {
  flex: 0 0 auto !important;
  width: 100% !important;
}

#menu_centrale li li > a,
#menu_centrale li li > span {
  flex-direction: row;
  aspect-ratio: auto;
  min-height: 42px;
  padding: 8px 12px;
  border: 0;
  border-bottom: 1px solid #e2e2e2;
  border-radius: 0;
  font-size: 14px;
  font-weight: 500;
}

#menu_centrale li li:last-child > a,
#menu_centrale li li:last-child > span {
  border-bottom: 0;
}

#menu_centrale li li > a img,
#menu_centrale li li > span img {
  width: auto !important;
  max-height: 24px;
}

@media (min-width: 992px) {
  #menu_centrale li ul {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    min-width: 220px;
    margin-top: 6px !important;

    background: var(--menu-sfondo-barra);
    border: var(--menu-bordo-spessore) solid var(--menu-bordo-colore);
    border-radius: var(--menu-raggio);
    overflow: hidden;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
  }

  #menu_centrale li:hover > ul,
  #menu_centrale li:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  #menu_centrale li li > ul {
    top: 0;
    left: 100%;
    margin-top: 0 !important;
  }
}

/* --------------------------------------------------------------------------
   7. Mobile — una sotto l'altra, contenuto centrato, margini laterali
      uguali a quelli degli altri elementi della pagina
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  #menu_centrale {
    padding-left: var(--menu-margine-laterale-mobile) !important;
    padding-right: var(--menu-margine-laterale-mobile) !important;
  }

  ul#menu_centrale,
  #menu_centrale:not(ul) ul:not(li ul) {
    flex-direction: column !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: var(--menu-gap-mobile) !important;
  }

  #menu_centrale li {
    flex: 0 0 auto !important;
    width: 100% !important;
  }

  /* la voce non è più vincolata al quadrato: si adatta al contenuto
     (l'immagine quadrata a tutta larghezza) con un'altezza minima */
  #menu_centrale li > a,
  #menu_centrale li > span {
    aspect-ratio: auto;
    min-height: var(--menu-altezza-voce-mobile);
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  /* immagine quadrata, larga quanto tutto il <li> che la contiene */
  #menu_centrale li > a img,
  #menu_centrale li > span img {
    width: 100% !important;
    max-width: 100%;
    height: auto !important;
    max-height: none;
    aspect-ratio: 1 / 1;
    object-fit: contain;   /* "cover" se preferisci riempire ritagliando */
    margin: 0 auto;
  }

  /* sottomenu visibili, rientrati sotto la voce padre */
  #menu_centrale li ul {
    position: static;
    gap: var(--menu-gap-mobile) !important;
    margin-top: var(--menu-gap-mobile) !important;
    padding-left: 18px !important;
    background: none;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  #menu_centrale li li > a,
  #menu_centrale li li > span {
    border: var(--menu-bordo-spessore) solid var(--menu-bordo-colore);
    border-radius: var(--menu-raggio);
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   8. Accessibilità
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  #menu_centrale * {
    transition: none !important;
  }
}
