@charset "utf-8";
/* CSS Document */

:root {
  --pd-primary: #3e779d;/* #0d2a4a;*/
  --pd-secondary: #b1001d;
  --pd-accent: #f2f2f2;
  --pd-promo: #b1001d; /* rosso */

  --pd-bg: #ffffff;
  --pd-text: #1f2933;
  --pd-muted: #6c757d;

  --pd-footer-bg: #0d2a4a;
}

/* TESTI */
body {
  font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 0.93rem;
  line-height: 1.6;
  color: #212529;

  min-height: 100vh;
  background: linear-gradient(
    45deg,
    rgba(13, 110, 253, 0.06),   /* blu */
    rgba(255, 255, 255, 0.9)   /* bianco */
  );
  background-attachment: fixed;
}

/* TITOLI */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--pd-primary); /* #0b2a5b; /* blu istituzionale */
}

h1 {
  font-size: 2.3rem;
}

h2 {
  font-size: 2.0rem;
}

h3 {
  font-size: 1.4rem;
}

a {color:#000;}

@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
}

.navbar-brand span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
}


.navbar .nav-link {
  color: #fff;
  font-weight: 500;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #ffd54f; /* giallo caldo, visibilità top */
}

.navbar .nav-link:hover {
  background: rgba(255,255,255,.15);
}

.navbar-collapse .nav-link {
  padding: .8rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
}

.navbar .nav-link.active {
  background: rgba(255,255,255,.25);
  font-weight: 600;
}

/* Override Bootstrap */
.btn-primary {
  background-color: var(--pd-primary);
  border-color: var(--pd-primary);
}

.btn-primary:hover {
  background-color: var(--pd-secondary);
  border-color: var(--pd-secondary);
}

.bg-primary {
  background-color: var(--pd-primary) !important;
}

.bg-promo {
  background-color: var(--pd-promo) !important;
}

.text-primary {
  color: var(--pd-primary) !important;
}

.text-secondary {
  color: var(--pd-secondary) !important;
}


.news-excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  height: 30vh; /* altezza base mobile */
  min-height: 200px;
  overflow: hidden;
}

.hero-slider h1,
.hero-slider h2 {
  font-family: 'Bebas Neue', sans-serif;
  color: #fff;
  letter-spacing: 0.08em;
  text-shadow: 0 3px 10px rgba(0,0,0,.6);
}


/* Altezza desktop */
@media (min-width: 768px) {
  .hero-slider {
    height: 420px;
  }
}

@media (min-width: 992px) {
  .hero-slider {
    height: 520px;
  }
}

/* Carousel-inner e immagini assolute */
.hero-slider .carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slider .carousel-item {
  position: absolute;  /* FORZA tutte le slide a riempire il container */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slider .carousel-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;      /* riempie tutto il container */
  object-position: center;/* soggetto sempre centrato */
}

/* Testo */
.hero-slider .carousel-caption {
  z-index: 2;
}

.hero-slider h1,
.hero-slider h2 {
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

/* Ombra elegante */
.shadow-hero {
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}


.hero-slider .carousel-caption h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.hero-slider .carousel-caption h2 {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
}





.news-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  color: var(--pd-primary);
}

.news-text {
  font-family: 'Roboto', sans-serif;
  font-size: 0.90rem;
}


/* Contenitore azioni sidebar */
.sidebar-actions {
  padding: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Bottoni principali */
.btn-action-primary,
.btn-action-secondary {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 1rem;
  border-radius: 10px;
}

/* Bottone principale */
.btn-action-primary {
  background-color: #0b2a5b;
  color: #fff;
}

.btn-action-primary:hover {
  background-color: #091f43;
  color: #fff;
}

/* Bottone secondario */
.btn-action-secondary {
  background-color: #ffffff;
  color: #0b2a5b;
  border: 2px solid #0b2a5b;
}

.btn-action-secondary:hover {
  background-color: #0b2a5b;
  color: #ffffff;
}


.birthday-ticker {
  background-color: #0b2a5b;
  color: #ffffff;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.ticker-wrap {
  width: 100%;
  overflow: hidden;
}

.ticker-move {
  display: inline-block;
  padding: 0.75rem 0;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
  animation: ticker-scroll 18s linear infinite;
}

.ticker-move strong {
  font-weight: 700;
  color: #ffdd57; /* accento festoso ma elegante */
}

.birthday-ticker:hover .ticker-move {
  animation-play-state: paused;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}


/* Card social */
.sidebar-social {
  padding: 1.5rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Titolo */
.sidebar-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0b2a5b;
}

/* Link social */
.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* Facebook */
.social-link.facebook {
  background-color: #e7f0ff;
  color: #1877f2;
}

.social-link.facebook:hover {
  background-color: #1877f2;
  color: #ffffff;
}

/* Instagram */
.social-link.instagram {
  background-color: #fbe7f0;
  color: #c13584;
}

.social-link.instagram:hover {
  background: linear-gradient(45deg,
    #feda75,
    #fa7e1e,
    #d62976,
    #962fbf,
    #4f5bd5);
  color: #ffffff;
}

/* Icone */
.social-link i {
  font-size: 1.4rem;
}


.sidebar-instagram {
  padding: 1.5rem;
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.instagram-embed iframe {
  width: 100%;
  height: 380px;
}

@media (max-width: 768px) {
  .instagram-embed iframe {
    height: 320px;
  }
}


/* Bottone LEGGI */
.btn-leggi {
  color: #ffffff !important;  /* testo sempre bianco */
}

/* Hover */
.btn-leggi:hover {
  color: #ffffff !important;
}



.hero-news {
  position: relative;
  height: 280px;
  overflow: hidden;
}
.hero-news-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-news-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.25),
    rgba(0,0,0,0.55)
  );
  display: flex;
  align-items: flex-end;
}

.hero-news-title {
  font-family: 'Bebas Neue', sans-serif;
  color: #fff;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

/* Mobile */
@media (max-width: 768px) {
  .hero-news {
/*    height: 180px;
*/  }

  .hero-news-title {
    font-size: 1.6rem;
  }
}

.hero-news--plain {
  background-color: var(--bs-primary);
  height: auto;
}


/* Link footer */
footer a {
  color: #ffffff;
  text-decoration: underline;
}

footer a:hover {
  color: #ffdd57; /* accento elegante */
  text-decoration: none;
}


.ultime-notizie h3 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.08em;
}

.ultime-notizie h5 {
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
}

.ultime-notizie h4 a {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 500;
  color: var(--pd-primary);

}
.ultime-notizie h4 a:hover {
	text-decoration:none;
  color: var(--pd-promo);

}

.ultime-notizie img {
  object-fit: cover;
}

/* MODALE PER INGRANDIMENTO IMMAGINI */

	.modal-backdrop.show {
	  opacity: 0.8;   /* default Bootstrap ~0.5 */
	  background-color: #000;
	}
	
/* TORNA IN ALTO SOLO PER MOBILE */
	#backToTop {

  position: fixed;
  bottom: 20px;
  right: 16px;        /* ⬅️ basso a DESTRA */
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;      /* sopra modali, cookie, footer */
}

/* SOLO MOBILE */
@media (max-width: 768px) {
  #backToTop {
    display: flex;
  }
}


/* Bottone dropdown */
.btn-archivio {
  background-color: #003366;  /* blu istituzionale */
  color: #fff;
  border: none;
}

.btn-archivio:hover,
.btn-archivio:focus {
  background-color: #002244;  /* versione più scura al hover */
  color: #fff;
}

/* Dropdown items */
.dropdown-menu {
  background-color: #f8f9fa;  /* colore chiaro del sito */
  border: 1px solid #003366;  /* bordo blu istituzionale */
}

.dropdown-item {
  color: #003366;  /* testo blu istituzionale */
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #003366;  /* hover blu scuro */
  color: #fff;                 /* testo bianco al passaggio */
}



.hero-carousel-internal {
position: relative;
  overflow: hidden;}

.hero-carousel-internal,
.hero-carousel-internal .carousel,
.hero-carousel-internal .carousel-inner,
.hero-carousel-internal .carousel-item {
  height: 280px !important;
  min-height: 280px !important;
  max-height: 280px !important;
}
.hero-carousel-internal img {
  width: 100%;
  height: 100%;
  object-fit: cover;  /* mantiene proporzioni e riempie contenitore */
}

	
.hero-carousel-internal .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 12s ease; /* durata pari al tempo di visualizzazione della slide */
}

.hero-carousel-internal .carousel-item.active img {
  transform: scale(1.1); /* zoom leggero 10% */
}

/* Mobile */
@media (max-width: 576px) {
.hero-carousel-internal,
.hero-carousel-internal .carousel,
.hero-carousel-internal .carousel-inner,
.hero-carousel-internal .carousel-item {
  height: 200px !important;
  min-height: 20px !important;
  max-height: 200px !important;
}
}

.accordion-button {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: .05em;
}

.accordion-button:not(.collapsed) {
  background-color: #e9f2fa;
  color: #003366;
}

.accordion-body img {
  max-width: 100%;
  border-radius: .5rem;
  margin-bottom: 1rem;
}

.section-icon {
  font-size: 1.3rem;
  margin-right: .5rem;
  color: #003366;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: .06em;
  color: var(--pd-secondary);
  border-bottom: 2px solid #e9f2fa;
  padding-bottom: .3rem;
  margin-bottom: .8rem;
}

.role {
  font-weight: 500;
  color: #003366;
  width: 35%;
  vertical-align: top;
}

/* Mobile */
@media (max-width: 576px) {
  .role {
    width: 100%;
    display: block;
  }
}


@media (max-width: 768px) {
  table.scheda thead {
    display: none;
  }

  table.scheda tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #dee2e6;
    border-radius: .5rem;
    padding: .5rem;
    background: #fff;
  }

  table.scheda td {
    display: flex;
    justify-content: space-between;
    padding: .4rem .5rem;
    border: none;
  }

  table.scheda td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #003366;
  }
}


.dataTables_filter input {
  border-radius: .5rem;
  border: 1px solid #ced4da;
}

.dataTables_filter label {
  font-weight: 500;
}

table.dataTable tbody tr:hover {
  background-color: rgba(0,51,102,.05);
}


/* Container per gestire l'arrotondamento degli angoli */
.table-pd-container {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    margin-top: 20px;
}

.table-pd {
    margin-bottom: 0;
	font-size: 0.8rem;
}

/* Intestazione scura con testo bianco */
.table-pd thead th {
    background-color: var(--pd-primary);
    color: #ffffff;
    border-bottom: 2px solid #1a252f;
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* Righe alternate (Striped) personalizzate 
.table-pd tbody tr:nth-of-type(odd) {
    background-color: rgba(31, 136, 250, .08);
}*/

/* Effetto Hover */
.table-pd tbody tr:hover {
    background-color: #f1f4f7 !important;
    transition: background-color 0.3s ease;
}

/* Bordi e spaziatura celle */
.table-pd td, .table-pd th {
    vertical-align: middle;
    padding: 10px 8px;
    border-color: #edf2f7;
    border-bottom: 1px solid #1a252f;

}

/* MENU VERTICALE */
/* CONTENITORE */
.menu-verticale .list-group-item {
  position: relative;
  background-color: rgba(0, 51, 102, 0.04);
  border: 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
  padding: 0;
  overflow: hidden;
  transition: background-color .25s ease;
}

.menu-verticale .list-group-item:last-child {
  border-bottom: 0;
}

/* BARRA LATERALE */
.menu-verticale .list-group-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: #003366;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .25s ease;
}

/* LINK */
.menu-verticale a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 0.7rem 1rem;
  text-decoration: none;
  color: #003366;
  font-weight: 500;
  font-size: 0.95rem;
  transition: padding-left .25s ease, color .25s ease;
}

/* ICONE */
.menu-verticale i {
  font-size: 1rem;
  color: rgba(0,51,102,.6);
  transition: color .25s ease;
}

/* HOVER */
.menu-verticale .list-group-item:hover {
  background-color: rgba(0, 51, 102, 0.12);
}

.menu-verticale .list-group-item:hover::before {
  transform: scaleY(1);
}

.menu-verticale .list-group-item:hover a {
  padding-left: 1.25rem;
}

.menu-verticale .list-group-item:hover i {
  color: #003366;
}

/* ATTIVO */
.menu-verticale .list-group-item.active {
  background-color: #003366;
}

.menu-verticale .list-group-item.active::before {
  transform: scaleY(1);
  background-color: #fff;
}

.menu-verticale .list-group-item.active a,
.menu-verticale .list-group-item.active i {
  color: #fff;
  font-weight: 600;
}


.atleta-box {
  background: var(--pd-primary);	
	color: #f4d03f;
  font-weight: 600;
    border-radius: .5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.atleta-photo img {
  width: 100%;
  max-width: 200px;
  border-radius: .5rem;
  border: 2px solid #fff;
  object-fit: cover;
}

.label {
  font-weight: 500;
  color: #f1f1f1;
}

.badge-pb {
  background: linear-gradient(135deg, #cfa63a, #f4d03f);
  color: #003366;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: .05em;
  border-radius: .35rem;
}

.badge-pb2 {
  background: linear-gradient(135deg, #cfa63a, #f4d03f);
  color: #000;
  border-radius: .35rem;
  padding:2px;
}


.badge-sb {
  background: linear-gradient(135deg, #2fa4a9, #5fd1c6);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: .05em;
  border-radius: .35rem;
}

.nav-tabs .nav-link {
  color: #003366;
  font-weight: 500;
}

.nav-tabs .nav-link.active {
  background-color: #003366;
  color: #fff;
  border-color: #003366 #003366 #fff;
}

.nav-tabs {
  border-bottom: 2px solid #003366;
}

/*PONDO ZONE STYLE*/

.pz-header{
  background: var(--pd-secondary);
  color:#fff;
  padding:.75rem 1.25rem;
}


.pz-sidebar{
  background:#f8f9fa;
  border-right:1px solid #ddd;
  min-height:100%;
  padding:1rem;
}

.pz-menu-section + .pz-menu-section{
  margin-top:1.5rem;
}

.pz-menu-title{
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:#6c757d;
  margin-bottom:.5rem;
  font-weight:600;
}

.pz-sidebar .nav-link{
  color:#333;
  padding:.6rem .75rem;
  border-radius:.4rem;
  margin-bottom:.25rem;
  display:flex;
  align-items:center;
  gap:.6rem;
  font-weight:500;
}

.pz-sidebar .nav-link:hover{
  background:#e9ecef;
}

.pz-sidebar .nav-link.active{
  background:#0d6efd;
  color:#fff;
}

.pz-sidebar .nav-link i{
  font-size:1rem;
  opacity:.85;
}



input.form-control,
select.form-select,
textarea.form-control {
    background-color: #eaf4ff;
    transition: all 0.2s ease;
}

input.form-control:focus,
select.form-select:focus,
textarea.form-control:focus {
    background-color: #ffffff;
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,.25);
}

.menu-contab {
    background: var(--pd-primary);
}

.menu-contab .nav-link {
    color: #ffffff !important;
    font-weight: 500;
}

.menu-contab .nav-link:hover {
    color: #ffe082 !important;
}

.menu-contab .dropdown-menu {
    border-radius: 10px;
}
.clickable-row {
    cursor: pointer;
}