/* =============================================================================
   GUG Nuoto — custom.css
   Personalizzazione tema Nimbus — sovrascrive solo le variabili necessarie
   Posizione: bl-themes/gug/assets/css/custom.css
   ============================================================================= */

/* -----------------------------------------------------------------------------
   1. VARIABILI COLORE — Blu FIN
      #0066b3  blu FIN principale
      #004d8a  blu FIN scuro (bordo logo)
      #00aeef  celeste FIN (logo interno)
   ----------------------------------------------------------------------------- */
:root {
  --accent-color:             #0066b3;
  --accent-color-rgb:         0, 102, 179;
  --nav-hover-color:          #ffffff;
  --nav-dropdown-hover-color: #0066b3;
}

/* Impedisce a Firefox mobile di ingrandire automaticamente il testo quando
   la barra del browser cambia la viewport durante lo scroll. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}


/* -----------------------------------------------------------------------------
   2. HEADER — banner fisso sempre visibile, anche quando si scrolla
   ----------------------------------------------------------------------------- */

#header,
.scrolled #header {
  /* Fisso, non sticky: su telefono lo sticky ricalcola la posizione quando
     la barra del browser si chiude e il video hero esce, e la fascia scatta. */
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1020;
  width: 100%;
  box-sizing: border-box;
  background-image: url('../img/banner.webp') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
  padding: 0;
  /* 90px di fascia + 3px di bordo: il padding del body usa la stessa misura. */
  height: 93px;
  min-height: 0;
  border-bottom: 3px solid #004d8a;
  box-shadow: none !important;
  transition: none;
}
body {
  padding-top: 93px;
}
section {
  scroll-margin-top: 93px;
}

/* Overlay semitrasparente sempre attivo */
#header .container-fluid,
.scrolled #header .container-fluid {
  background: rgba(0, 30, 70, 0.55) !important;
  padding: 10px 20px;
  align-self: stretch;
  min-height: 0;
}

/* Logo GUG + titolo sito (logo a sinistra, testo a destra) */
.header .logo {
  gap: 12px;
  text-decoration: none;
}

.header .logo::before,
.scrolled .header .logo::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  background-image: url('../img/logo_gug.webp');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
}

.header .logo .logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 0;
  text-size-adjust: none;
}

.header .logo .logo-sitename,
.scrolled .header .logo .logo-sitename {
  display: block;
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  color: #ffffff !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.header .logo .logo-tagline,
.scrolled .header .logo .logo-tagline {
  display: block;
  margin-top: 2px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  text-transform: none;
}

/* Menu sempre bianco sopra il banner */
#header,
.scrolled #header {
  --nav-color:       rgba(255, 255, 255, 0.90) !important;
  --nav-hover-color: #ffffff !important;
  --heading-color:   #ffffff !important;
}

/* Dropdown su sfondo chiaro */
.navmenu .dropdown ul {
  --nav-dropdown-color:       #333333;
  --nav-dropdown-hover-color: #0066b3;
}

/* Bottone Home */
.header .btn-getstarted,
.header .btn-getstarted:focus {
  background: rgba(0, 102, 179, 0.85);
  border: 1px solid rgba(255,255,255,0.3);
  color: #ffffff;
  font-size: 13px;
  padding: 7px 18px;
}
.header .btn-getstarted:hover {
  background: #004d8a;
}

/* Ricerca: lente in header su tutte le pagine, il campo si apre sotto
   la barra. Su mobile la lente sta prima dell'hamburger. */
.gug-search-toggle {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 12px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
}
.gug-search-toggle:hover,
.gug-search-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.15);
}
.gug-search-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.gug-header-search {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 998;
  background: #f4f6f9;
  border-bottom: 1px solid #dfe4ea;
  box-shadow: 0 6px 16px rgba(0, 30, 70, 0.12);
  padding: 14px 0;
}
.gug-header-search[hidden] {
  display: none;
}
.gug-header-search-form {
  display: flex;
  gap: 8px;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 16px;
}
.gug-header-search-form input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  background: #fff;
  color: #1c2430;
  font-size: 1rem;
}
.gug-header-search-form input:focus {
  outline: 2px solid #0066b3;
  outline-offset: 1px;
  border-color: #0066b3;
}
.gug-header-search-form button {
  flex: none;
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: #0066b3;
  color: #fff;
  font-weight: 600;
}
.gug-header-search-form button:hover {
  background: #004d8a;
}
@media (max-width: 1199px) {
  .gug-search-toggle {
    order: 1;
    margin: 0 14px 0 0;
  }
  #header .navmenu {
    order: 2;
  }
}

/* Colori menu bianco-su-banner: SOLO desktop.
   Su mobile il pannello è bianco: il testo bianco rende le voci invisibili. */
@media (min-width: 1200px) {
  /* Il bordo è sempre riservato. Al passaggio cambia solo il colore:
     ridurre il padding faceva uscire il cursore e la voce scattava. */
  .navmenu > ul > li > a {
    border-bottom: 2px solid transparent;
  }

  /* Voce attiva menu — solo primo livello (bianco su banner) */
  .navmenu > ul > li > a.active,
  .navmenu > ul > li > a.active:focus,
  .scrolled .navmenu > ul > li > a.active,
  .scrolled .navmenu > ul > li > a.active:focus {
    color: #ffffff !important;
    border-bottom-color: #00aeef;
  }

  /* Hover voci menu — solo primo livello, non dropdown */
  .navmenu > ul > li:hover > a,
  .scrolled .navmenu > ul > li:hover > a {
    color: #ffffff !important;
    border-bottom-color: rgba(255, 255, 255, 0.5);
  }

  /* Voce attiva / hover dropdown desktop — blu FIN su sfondo bianco */
  .navmenu .dropdown ul a.active,
  .navmenu .dropdown ul a.active:focus,
  .scrolled .navmenu .dropdown ul a.active,
  .scrolled .navmenu .dropdown ul a.active:focus {
    color: #0066b3 !important;
    border-bottom: none !important;
    padding-bottom: 0;
    font-weight: 600;
  }

  .navmenu .dropdown ul li:hover > a,
  .navmenu .dropdown ul a:hover,
  .scrolled .navmenu .dropdown ul li:hover > a,
  .scrolled .navmenu .dropdown ul a:hover {
    color: #0066b3 !important;
    border-bottom: none !important;
  }
}


/* -----------------------------------------------------------------------------
   3. FOOTER
   ----------------------------------------------------------------------------- */

.footer h2 {
  color: #004d8a;
  border-bottom: 2px solid #0066b3;
  padding-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
}

.footer .footer-about .logo span {
  color: #0066b3;
}

.footer .copyright {
  border-top: 1px solid rgba(0, 102, 179, 0.15);
}


/* -----------------------------------------------------------------------------
   4. VARIE — scroll top, cards, breadcrumb, sidebar, titolo articolo
   ----------------------------------------------------------------------------- */

.scroll-top { background-color: #0066b3 !important; }
.scroll-top:hover { background-color: #004d8a !important; }

.posts-list article:hover {
  box-shadow: 0 4px 16px rgba(0, 102, 179, 0.15);
}

.breadcrumbs a { color: #0066b3; }
.breadcrumbs a:hover { color: #004d8a; }

.blog-details .title {
  border-left: 4px solid #0066b3;
  padding-left: 14px;
}

.sidebar .widget-title,
.sidebar .plugin-label {
  border-bottom: 2px solid #0066b3;
  padding-bottom: 8px;
  margin-bottom: 1rem;
  color: #004d8a;
  font-size: 1.15rem;
  font-weight: 600;
}
.sidebar .widget-title i { color: #0066b3; }


/* -----------------------------------------------------------------------------
   5. MOBILE — banner sempre visibile
   ----------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  body {
    padding-top: 83px;
  }
  section {
    scroll-margin-top: 83px;
  }
  #header,
  .scrolled #header {
    height: 83px;
    min-height: 0;
  }
  #header .container-fluid,
  .scrolled #header .container-fluid {
    background: rgba(0, 30, 70, 0.65) !important;
  }
  .header .logo::before,
  .scrolled .header .logo::before {
    width: 50px;
    height: 50px;
  }
  .header .logo .logo-sitename,
  .scrolled .header .logo .logo-sitename {
    font-size: 22px;
  }
  .header .logo .logo-tagline,
  .scrolled .header .logo .logo-tagline {
    font-size: 13px;
  }
}

@media (max-width: 576px) {
  body {
    padding-top: 73px;
  }
  section {
    scroll-margin-top: 73px;
  }
  #header,
  .scrolled #header {
    background-position: center 60% !important;
    height: 73px;
    min-height: 0;
  }
  #header .container-fluid,
  .scrolled #header .container-fluid {
    background: rgba(0, 30, 70, 0.70) !important;
    padding-right: 12px;
    padding-left: 12px;
  }
  .header .logo {
    min-width: 0;
    gap: 8px;
  }
  .gug-search-toggle {
    margin-right: 8px;
    margin-left: 12px;
  }
  .header .logo .logo-text {
    flex: 0 1 auto;
    overflow: hidden;
  }
  .header .logo::before,
  .scrolled .header .logo::before {
    width: 44px;
    height: 44px;
  }
  .header .logo .logo-sitename,
  .scrolled .header .logo .logo-sitename {
    font-size: clamp(18px, 5.6vw, 22px);
  }
  /* In vw perché la riga intera deve stare tra logo e lente su ogni telefono. */
  .header .logo .logo-tagline,
  .scrolled .header .logo .logo-tagline {
    font-size: clamp(10px, 3.1vw, 13px);
    letter-spacing: 0.01em;
    white-space: nowrap;
  }
}

/* A 320 px il sottotitolo perdeva «Libere» contro la lente. */
@media (max-width: 360px) {
  .gug-search-toggle {
    width: 34px;
    height: 34px;
    margin-left: 6px;
    margin-right: 4px;
  }
  .header .logo {
    gap: 6px;
  }
  .header .logo::before,
  .scrolled .header .logo::before {
    width: 38px;
    height: 38px;
  }
  .header .logo .logo-tagline,
  .scrolled .header .logo .logo-tagline {
    font-size: 9px;
    letter-spacing: 0;
  }
}


/* -----------------------------------------------------------------------------
   6. FIX CAMPO RICERCA SIDEBAR
   ----------------------------------------------------------------------------- */
.sidebar input[type="text"],
.sidebar input[type="search"],
.sidebar .search-form input,
#simple-search input,
#simple-search input[type="text"] {
  background-color: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #cccccc !important;
}

.sidebar .search-form form {
  background-color: #ffffff !important;
  border: 1px solid #cccccc !important;
}

/* -----------------------------------------------------------------------------
   7. DESCRIZIONE (excerpt) nelle card della home e delle categorie
   ----------------------------------------------------------------------------- */
.posts-list article .post-description {
  font-size: 13px;
  color: #6c757d;
  line-height: 1.55;
  margin: 5px 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* -----------------------------------------------------------------------------
   8. IMMAGINI RESPONSIVE nei contenuti dei post e delle pagine
   ----------------------------------------------------------------------------- */
.article img,
.content img,
.blog-details img {
  max-width: 100% !important;
  height: auto !important;
}
.article .post-img a.glightbox {
  display: block;
  cursor: zoom-in;
}

/* Cover post: crop 16/9 — deve vincere su height:auto !important qui sopra */
.blog-details .article > .post-img {
  margin: 0 0 1.25rem 0;
  aspect-ratio: 16 / 9;
  max-height: 320px;
  overflow: hidden;
  background: #e9ecef;
}
.blog-details .article > .post-img a.glightbox {
  display: block;
  width: 100%;
  height: 100%;
}
.blog-details .article > .post-img img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block;
}
@media (max-width: 575px) {
  .blog-details .article > .post-img {
    max-height: 200px;
  }
}

/* -----------------------------------------------------------------------------
   9. FIX MENU MOBILE — pannello bianco: testo sempre scuro (mai bianco)
   ----------------------------------------------------------------------------- */
@media (max-width: 1199px) {
  .mobile-nav-active .navmenu > ul > li > a,
  .mobile-nav-active .navmenu > ul > li > a:focus {
    color: #333333 !important;
    border-bottom: none !important;
    background: transparent !important;
  }

  .mobile-nav-active .navmenu > ul > li > a:hover,
  .mobile-nav-active .navmenu > ul > li:hover > a,
  .mobile-nav-active .navmenu > ul > li > a.active,
  .mobile-nav-active .navmenu > ul > li > a.active:focus {
    color: #0066b3 !important;
    border-bottom: none !important;
    background: transparent !important;
  }

  /* Sottomenu */
  .mobile-nav-active .navmenu .dropdown ul a,
  .mobile-nav-active .navmenu .dropdown ul a:focus {
    color: #333333 !important;
    background: transparent !important;
  }

  .mobile-nav-active .navmenu .dropdown ul a:hover,
  .mobile-nav-active .navmenu .dropdown ul li:hover > a,
  .mobile-nav-active .navmenu .dropdown ul a.active,
  .mobile-nav-active .navmenu .dropdown ul a.active:focus {
    color: #0066b3 !important;
    background: transparent !important;
  }
}

/* -----------------------------------------------------------------------------
   10. TABELLE DOCUMENTI PDF — allineamento icona/testo e spaziatura righe
   ----------------------------------------------------------------------------- */

/* Azzera i margini dei <p> dentro le <td> (TinyMCE li aggiunge automaticamente) */
/* Escludi .table-ufficiali: ha le sue regole nella sezione 11 */
.content table:not(.table-ufficiali) td p,
.blog-details .content table:not(.table-ufficiali) td p {
  margin: 0;
  padding: 0;
}

/* Spaziatura verticale uniforme tra le righe su tutti i dispositivi */
/* Escludi .table-ufficiali: ha padding e vertical-align propri */
.content table:not(.table-ufficiali) td,
.blog-details .content table:not(.table-ufficiali) td {
  padding: 10px 8px !important;
  vertical-align: middle !important;
}

/* Prima colonna (icona PDF): larghezza fissa solo sulle tabelle regolamenti/documenti */
/* Non applicare alle tabelle convocazioni (Ruolo/Nominativo/GUG) né a .table-ufficiali */
.content table:not(.table-ufficiali):has(img[src*="pdf-png"]) td:first-child,
.blog-details .content table:not(.table-ufficiali):has(img[src*="pdf-png"]) td:first-child {
  width: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
}

/* Icona PDF: quadrata e centrata nella cella */
.content table:not(.table-ufficiali) td img[src*="pdf-png"],
.blog-details .content table:not(.table-ufficiali) td img[src*="pdf-png"] {
  width: 28px !important;
  height: 28px !important;
  display: block !important;
  margin: 0 auto !important;
}

/* -----------------------------------------------------------------------------
   10b. TABELLE CONTENUTO — no overflow viewport + Archivio a card su mobile
   ----------------------------------------------------------------------------- */

/* La colonna flex Bootstrap non restringe sotto il min-content della tabella */
.blog-details-page .col-lg-8,
.blog-details-page .col-lg-12,
.blog-details .article,
.blog-details .content {
  min-width: 0;
  max-width: 100%;
}

.content .table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin: 0 0 1rem;
}

.content .table-archivio,
.content .table-archivio-storico {
  width: 100%;
  max-width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  height: auto !important;
}
.content .table-archivio th,
.content .table-archivio td,
.content .table-archivio-storico th,
.content .table-archivio-storico td {
  width: auto !important;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Stagioni correnti: su viewport stretto ogni riga diventa una card */
@media (max-width: 700px) {
  .content .table-archivio,
  .page-archivio .content table:has(th:nth-child(3)) {
    display: block;
    width: 100%;
    border: none;
  }
  .content .table-archivio thead,
  .page-archivio .content table:has(th:nth-child(3)) thead {
    display: none;
  }
  .content .table-archivio tbody,
  .page-archivio .content table:has(th:nth-child(3)) tbody {
    display: block;
    width: 100%;
  }
  .content .table-archivio tbody tr,
  .page-archivio .content table:has(th:nth-child(3)) tbody tr {
    display: block;
    width: 100%;
    margin: 0 0 12px;
    border: 1px solid #c5daf0;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f6fc;
    box-shadow: 0 2px 8px rgba(0, 77, 138, 0.06);
  }
  .content .table-archivio td,
  .page-archivio .content table:has(th:nth-child(3)) td {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 14px !important;
    border: none;
    border-top: 1px solid #d7e3ef;
    background: transparent !important;
  }
  .content .table-archivio td:first-child,
  .page-archivio .content table:has(th:nth-child(3)) td:first-child {
    display: block !important;
    border-top: none;
    background: #0066b3 !important;
    color: #fff !important;
    font-size: 1.05rem;
    font-weight: 700;
  }
  .content .table-archivio td:nth-child(2)::before,
  .page-archivio .content table:has(th:nth-child(3)) td:nth-child(2)::before {
    content: "Notizie";
  }
  .content .table-archivio td:nth-child(3)::before,
  .page-archivio .content table:has(th:nth-child(3)) td:nth-child(3)::before {
    content: "Attività";
  }
  .content .table-archivio td:nth-child(4)::before,
  .page-archivio .content table:has(th:nth-child(3)) td:nth-child(4)::before {
    content: "Tutti i contenuti";
  }
  .content .table-archivio td:not(:first-child)::before,
  .page-archivio .content table:has(th:nth-child(3)) td:not(:first-child)::before {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #5c6b7a;
    flex: 0 0 auto;
  }
  .content .table-archivio td a,
  .page-archivio .content table:has(th:nth-child(3)) td a {
    text-align: right;
  }
}

/* -----------------------------------------------------------------------------
   11. TABELLA CARD UFFICIALI (Liste/Profili)
       <table class="table-ufficiali" border="0"> con 4 TD per riga.
       Desktop: tabella nativa. Mobile: float 2-colonne via media query.
   ----------------------------------------------------------------------------- */
.content .table-ufficiali {
  border-collapse: separate !important;
  border-spacing: 10px !important;
  width: 100% !important;
}
.content .table-ufficiali td {
  border: none !important;
  text-align: center !important;
  vertical-align: top !important;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 102, 179, .10);
  padding: 20px 12px !important;
}
.content .table-ufficiali td[style*="background: transparent"],
.content .table-ufficiali td[style*="background:transparent"] {
  background: transparent !important;
  box-shadow: none !important;
}
.content .table-ufficiali td img:not(.wa-badge) {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block !important;
  margin: 0 auto !important;
}
.content .table-ufficiali td strong,
.content .table-ufficiali td b {
  display: block !important;
  margin: 10px 0 6px !important;
  font-size: .85rem !important;
  line-height: 1.3 !important;
}
.content .table-ufficiali td p { margin: 0 !important; padding: 0 !important; }
/* WA badge */
.content .table-ufficiali td a:has(.wa-badge) {
  display: block !important;
  width: fit-content !important;
  margin: 8px auto 0 !important;
  border: none !important;
  padding: 0 !important;
}
.content .table-ufficiali .wa-badge {
  width: 48px !important;
  height: auto !important;
  border-radius: 0 !important;
  display: block !important;
  margin: 0 auto !important;
  opacity: 0.85;
  transition: opacity .15s;
}
.content .table-ufficiali .wa-badge:hover { opacity: 1; }

/* Mobile: 2 colonne con CSS Grid — equalizza automaticamente l'altezza per riga */
@media (max-width: 575px) {
  .content .table-ufficiali {
    display: block !important;
    border-spacing: 0 !important;
    width: 100% !important;
  }
  /* tbody diventa grid container a 2 colonne */
  .content .table-ufficiali tbody {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }
  /* tr trasparente: i td diventano direttamente item della griglia */
  .content .table-ufficiali tr {
    display: contents !important;
  }
  .content .table-ufficiali td {
    display: block !important;
    box-sizing: border-box !important;
  }
  /* Celle filler trasparenti: nascoste su mobile */
  .content .table-ufficiali td[style*="background: transparent"],
  .content .table-ufficiali td[style*="background:transparent"] {
    display: none !important;
  }
  /* Nome: occupa sempre almeno 2 righe → CV allineati tra card nella stessa riga */
  .content .table-ufficiali td strong,
  .content .table-ufficiali td b {
    min-height: calc(2 * 1.3em) !important;   /* 2 righe × line-height 1.3 */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* -----------------------------------------------------------------------------
   11b. LISTE UFFICIALI — griglia card da {{liste-ufficiali}}
   ----------------------------------------------------------------------------- */
.content .gug-liste-h {
  margin: 1.5rem 0 0.85rem;
  padding-bottom: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #004d8a;
  border-bottom: 2px solid #0066b3;
}
.content .gug-liste-h:first-child {
  margin-top: 0.25rem;
}
.content .gug-liste-h i {
  color: #0066b3;
}
.content .gug-liste-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.content .gug-liste-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 102, 179, 0.1);
  border: 1px solid transparent;
  padding: 20px 12px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.content .gug-liste-card[hidden] {
  display: none !important;
}
.content .gug-liste-card:hover,
.content .gug-liste-card:focus-within {
  transform: translateY(-4px);
  border-color: #0066b3;
  box-shadow: 0 10px 24px rgba(0, 77, 138, 0.22);
}
.content .gug-liste-card:hover strong,
.content .gug-liste-card:focus-within strong {
  color: #0066b3;
}
.content .gug-liste-card:hover .btn-outline-primary,
.content .gug-liste-card:focus-within .btn-outline-primary {
  color: #fff;
  background: #0066b3;
  border-color: #0066b3;
}
@media (prefers-reduced-motion: reduce) {
  .content .gug-liste-card {
    transition: none;
  }
  .content .gug-liste-card:hover,
  .content .gug-liste-card:focus-within {
    transform: none;
  }
}
.content .gug-liste-card img:not(.wa-badge) {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  display: block;
  margin: 0;
}
.content .gug-liste-photo-empty {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  flex-shrink: 0;
  background: #e9ecef;
}
.content .gug-liste-photo-empty svg {
  display: block;
  width: 72px !important;
  height: 72px !important;
}
.content .gug-liste-card strong {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(3 * 1.3em);
  margin: 10px 0 4px;
  font-size: 0.85rem;
  line-height: 1.3;
}
.content .gug-liste-role-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.45em;
  margin: 0 0 8px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #004d8a;
  background: #e8f3fb;
  border-radius: 999px;
}
.content .gug-liste-role-badge.is-empty {
  visibility: hidden;
  background: transparent;
}
.content .gug-liste-card-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  width: 100%;
}
.content .gug-liste-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.15rem;
  margin: 0 0 0.5rem;
  padding: 0;
  list-style: none;
}
.content .gug-liste-compact li {
  margin: 0;
  padding: 0;
  font-size: 0.95rem;
}
.content .gug-liste-compact li:not(:last-child)::after {
  content: "·";
  margin-left: 0.45rem;
  color: #8aa4b8;
}
.content .gug-liste-compact a {
  color: #004d8a;
  text-decoration: none;
  font-weight: 600;
}
.content .gug-liste-compact a:hover {
  text-decoration: underline;
}
.content .gug-liste-card a:has(.wa-badge),
.content .gug-liste-wa-slot {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 0;
  border: none;
  padding: 0;
  height: 44px;
}
.gug-liste.gug-liste-searching > .nav-tabs {
  display: none;
}
.gug-liste.gug-liste-searching > .tab-content > .tab-pane {
  display: block;
  opacity: 1;
}
.gug-liste.gug-liste-searching > .tab-content > .tab-pane[hidden],
.gug-liste .gug-liste-h[hidden],
.gug-liste .gug-liste-compact li[hidden] {
  display: none !important;
}
.gug-liste.gug-liste-searching .gug-liste-compact li::after {
  content: none;
}
.gug-liste-search-section {
  display: none;
}
.gug-liste.gug-liste-searching .gug-liste-search-section {
  display: block;
  margin: 0.4rem 0 0.8rem;
  color: #004d8a;
  font-size: 1rem;
  font-weight: 700;
}
.content .gug-liste-card .wa-badge {
  width: 48px;
  height: auto;
  max-height: 44px;
  border-radius: 0;
  opacity: 0.85;
}
.content .gug-liste-card .wa-badge:hover {
  opacity: 1;
}
@media (max-width: 991px) {
  .content .gug-liste-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 575px) {
  .content .gug-liste-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

/* -----------------------------------------------------------------------------
   12. SCHEDA PROFILO UFFICIALE (sostituisce CV PDF)
       Contenuto in .profilo-ufficiale — timeline orizzontale + elenco attività.
   ----------------------------------------------------------------------------- */

/* Nasconde titolo H2 e cover del tema: già nell'identity della scheda */
.article:has(.profilo-ufficiale) > .title,
.article:has(.profilo-ufficiale) > .post-img,
.blog-details .article:has(.profilo-ufficiale) > .title,
.blog-details .article:has(.profilo-ufficiale) > .post-img {
  display: none !important;
}

.content .profilo-ufficiale {
  --pu-fin: #0066b3;
  --pu-fin-dark: #004d8a;
  --pu-fin-sky: #00aeef;
  --pu-ink: #1a2b3c;
  --pu-muted: #5c6b7a;
  --pu-line: #d7e3ef;
  --pu-wa: #0a2e5c;
}

.content .profilo-ufficiale .pu-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--pu-fin);
  text-decoration: none;
  transition: gap .15s ease;
}
.content .profilo-ufficiale .pu-back:hover {
  gap: 8px;
  color: var(--pu-fin-dark);
}

.content .profilo-ufficiale .pu-identity {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 22px;
  align-items: center;
  padding: 0 0 22px;
  border-bottom: 1px solid var(--pu-line);
  margin-bottom: 28px;
  position: relative;
}
.content .profilo-ufficiale .pu-identity::before {
  content: '';
  position: absolute;
  inset: -8px -8px auto;
  height: 100px;
  background:
    radial-gradient(ellipse 80% 120% at 10% 0%, rgba(0, 174, 239, .18), transparent 55%),
    linear-gradient(180deg, rgba(0, 77, 138, .06), transparent);
  pointer-events: none;
  z-index: 0;
  border-radius: 8px;
}
.content .profilo-ufficiale .pu-identity > * {
  position: relative;
  z-index: 1;
}

.content .profilo-ufficiale .pu-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(145deg, #d9e8f5, #f5f9fc);
  border: 4px solid #fff;
  box-shadow: 0 0 0 2px var(--pu-fin), 0 10px 28px rgba(0, 77, 138, .18);
  overflow: hidden;
  flex-shrink: 0;
}
.content .profilo-ufficiale .pu-photo img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.content .profilo-ufficiale .pu-name {
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: -.02em;
  color: var(--pu-fin-dark);
  line-height: 1.15;
  margin: 0 0 6px;
}
.content .profilo-ufficiale .pu-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--pu-ink);
  margin-bottom: 4px;
}
.content .profilo-ufficiale .pu-region {
  font-size: 13px;
  color: var(--pu-muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.content .profilo-ufficiale .pu-region .pu-pin {
  width: 10px;
  height: 10px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--pu-fin-sky);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, .2);
}

.content .profilo-ufficiale .pu-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.content .profilo-ufficiale .pu-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f2fb;
  color: var(--pu-fin-dark);
  border: 1px solid #c5daf0;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
}
.content .profilo-ufficiale .pu-pill.wa {
  background: var(--pu-wa);
  color: #fff;
  border-color: var(--pu-wa);
}
/* Fascia nazionale: distinta dalla qualifica internazionale World Aquatics. */
.content .profilo-ufficiale .pu-pill.is-fascia {
  background: #fff;
  color: var(--pu-fin-dark);
  border-color: #9cc2e8;
}

/* Timeline orizzontale */
.content .profilo-ufficiale .pu-timeline-wrap {
  margin: 0 0 32px;
}
.content .profilo-ufficiale .pu-timeline-label {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--pu-muted);
  margin-bottom: 18px;
}
.content .profilo-ufficiale .pu-timeline {
  list-style: none;
  margin: 0;
  padding: 0 4px;
  display: flex;
  align-items: flex-start;
  position: relative;
  /* Supporta 5+ tappe senza schiacciarle a larghezza zero */
  gap: 4px;
}
.content .profilo-ufficiale .pu-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 18px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pu-fin-sky), var(--pu-fin), var(--pu-fin-dark));
  z-index: 0;
}
.content .profilo-ufficiale .pu-tl-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 4px;
  margin: 0 !important; /* reset .content p se le tappe sono <p> */
  flex: 1 1 0;
  min-width: 4.5rem;
}
.content .profilo-ufficiale .pu-tl-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--pu-fin);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--pu-fin-sky), 0 2px 8px rgba(0, 102, 179, .25);
  margin-bottom: 12px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.content .profilo-ufficiale .pu-tl-item:hover .pu-tl-dot {
  transform: scale(1.2);
  box-shadow: 0 0 0 3px var(--pu-fin-sky), 0 4px 12px rgba(0, 102, 179, .35);
}
/* is-highlight: stesso blu degli altri pallini (solo alone leggermente più marcato) */
.content .profilo-ufficiale .pu-tl-item.is-highlight .pu-tl-dot {
  background: var(--pu-fin);
  box-shadow: 0 0 0 2px var(--pu-fin-sky), 0 2px 10px rgba(0, 102, 179, .35);
  transform: scale(1.08);
}
.content .profilo-ufficiale .pu-tl-yr {
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--pu-fin);
  line-height: 1;
  margin-bottom: 4px;
}
.content .profilo-ufficiale .pu-tl-lbl {
  font-size: 12px;
  font-weight: 700;
  color: var(--pu-ink);
  line-height: 1.3;
  max-width: 140px;
}
.content .profilo-ufficiale .pu-tl-extra {
  font-size: 11px;
  color: var(--pu-muted);
  margin-top: 3px;
  max-width: 140px;
  line-height: 1.3;
}

/* Sezioni attività — <div class="pu-sec"> (non <section>: Nimbus dà padding 60px) */
.content .profilo-ufficiale .pu-sec {
  padding: 0;
  margin-bottom: 26px;
  overflow: visible;
  background: transparent;
}
.content .profilo-ufficiale .pu-sec h2 {
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--pu-fin-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  margin: 0 0 12px;
  border-bottom: 2px solid var(--pu-fin);
}
.content .profilo-ufficiale .pu-sec h2 .pu-ico {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #e8f2fb;
  display: grid;
  place-items: center;
  color: var(--pu-fin);
  font-size: 11px;
  font-weight: 800;
  font-family: Montserrat, sans-serif;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.content .profilo-ufficiale .pu-rows {
  display: flex;
  flex-direction: column;
}
.content .profilo-ufficiale .pu-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 11px 4px;
  border-bottom: 1px dashed #e1eaf2;
}
.content .profilo-ufficiale .pu-row:last-child {
  border-bottom: 0;
}
.content .profilo-ufficiale .pu-evt {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--pu-ink);
  padding-top: 2px;
}
.content .profilo-ufficiale .pu-years {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.content .profilo-ufficiale .pu-yr {
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: #fff;
  border: 1px solid #c5daf0;
  color: var(--pu-fin-dark);
  border-radius: 5px;
  padding: 2px 7px;
  transition: background .15s, color .15s;
}
.content .profilo-ufficiale .pu-yr:hover {
  background: var(--pu-fin);
  color: #fff;
  border-color: var(--pu-fin);
}
.content .profilo-ufficiale .pu-footer {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--pu-line);
  font-size: 12px;
  color: var(--pu-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 700px) {
  /* Scroll sul wrap: così ::before sulla timeline copre tutta la larghezza contenuto */
  .content .profilo-ufficiale .pu-timeline-wrap {
    margin-left: -8px;
    margin-right: -8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
  }
  .content .profilo-ufficiale .pu-timeline {
    display: flex;
    width: max-content;
    min-width: 100%;
    box-sizing: border-box;
    gap: 0;
    padding: 4px 20px 12px;
    overflow: visible;
  }
  .content .profilo-ufficiale .pu-timeline::before {
    /* Da centro primo a centro ultimo pallino */
    left: calc(20px + 60px);
    right: calc(20px + 60px);
    top: 22px;
  }
  .content .profilo-ufficiale .pu-tl-item {
    flex: 0 0 120px;
    min-width: 120px;
    scroll-snap-align: center;
  }
}
@media (max-width: 640px) {
  .content .profilo-ufficiale .pu-identity {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .content .profilo-ufficiale .pu-region,
  .content .profilo-ufficiale .pu-badges {
    justify-content: center;
  }
  .content .profilo-ufficiale .pu-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* -----------------------------------------------------------------------------
   13. CONSENSO LISTE (form + CTA)
   ----------------------------------------------------------------------------- */
.consenso-cta {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  border-left: 4px solid #0066b3;
  background: #f4f7fb;
  border-radius: 0 8px 8px 0;
}
.consenso-cta-title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: #004d8a;
}
.consenso-cta-text {
  margin: 0 0 0.85rem;
  color: #333;
}

.consenso-form {
  margin: 1.25rem 0 0;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border: 1px solid #d9e3ef;
  border-radius: 10px;
}
.consenso-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1rem;
}
.consenso-field {
  margin-bottom: 0.9rem;
}
.consenso-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #004d8a;
  margin-bottom: 0.3rem;
}
.consenso-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.consenso-label-row label {
  margin-bottom: 0.3rem;
}
.consenso-limit {
  flex: none;
  margin-bottom: 0.3rem;
  color: #6c757d;
  font-size: 0.78rem;
  font-weight: 500;
}
.consenso-field input,
.consenso-field select,
.consenso-field textarea {
  width: 100%;
  border: 1px solid #c5d4e6;
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
  background: #fff;
}
.consenso-field input:focus,
.consenso-field select:focus,
.consenso-field textarea:focus {
  outline: 2px solid rgba(0, 102, 179, 0.25);
  border-color: #0066b3;
}
.consenso-check {
  margin: 0.85rem 0;
  font-size: 0.92rem;
  line-height: 1.45;
}
.consenso-check label {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  cursor: pointer;
}
.consenso-check input {
  margin-top: 0.25rem;
  flex-shrink: 0;
}
.consenso-note {
  font-size: 0.82rem;
  color: #6c757d;
  margin: 0.75rem 0 1rem;
}
.consenso-captcha-q {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  color: #333;
  font-weight: 500;
}
.consenso-submit {
  min-width: 11rem;
}
.consenso-hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.consenso-alert {
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.consenso-ok {
  background: #e8f6ee;
  border: 1px solid #8fceaa;
  color: #145c36;
}
.consenso-err {
  background: #fdeeee;
  border: 1px solid #e3a0a0;
  color: #8a1f1f;
}

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

/* -----------------------------------------------------------------------------
   GUG Regionali — sedi / presidenti / social (Chi siamo / GUG Regionali)
   ----------------------------------------------------------------------------- */
.content .social-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.content .social-btn i {
  font-size: 1.1rem;
}
.content .social-btn-ig {
  background: #fff5f8;
  color: #c13584;
  border-color: #f0c7d9;
}
.content .social-btn-ig:hover {
  background: #c13584;
  color: #fff;
  border-color: #c13584;
}
.content .social-btn-fb {
  background: #eef3fb;
  color: #1877f2;
  border-color: #c9daf5;
}
.content .social-btn-fb:hover {
  background: #1877f2;
  color: #fff;
  border-color: #1877f2;
}
.content .gug-regionali,
.content .gug-reg-grid {
  max-width: 100%;
  min-width: 0;
}
.content .gug-reg-grid {
  display: grid;
  /* min(..., 100%) evita overflow su viewport < 280px */
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 1rem;
}
.content .gug-reg-card[hidden] {
  display: none !important;
}
.content .gug-reg-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #d7e3ef;
  border-radius: 10px;
  background: #fff;
  padding: 1rem 1.1rem;
  box-shadow: 0 2px 10px rgba(0, 77, 138, 0.06);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.content .gug-reg-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.65rem;
  font-family: Montserrat, sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #004d8a;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid #0066b3;
}
/* Vince su .content img { height:auto !important }: la cartina è l'Italia intera */
.content .gug-reg-title .gug-reg-map {
  flex: 0 0 52px;
  width: 52px !important;
  height: 52px !important;
  max-width: 52px !important;
  object-fit: contain;
}
.content .gug-reg-row {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  color: #1a2b3c;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.content .gug-reg-row a {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.content .gug-reg-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #5c6b7a;
  margin-bottom: 0.1rem;
}
.content .gug-reg-address a,
.content .gug-reg-phone a {
  color: #0066b3;
  text-decoration: none;
}
.content .gug-reg-address a:hover,
.content .gug-reg-phone a:hover {
  text-decoration: underline;
}
.content .gug-reg-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: auto 0 0;
  padding-top: 0.85rem;
  border-top: 1px dashed #d7e3ef;
}
.content .gug-reg-social .social-btn {
  font-size: 0.8rem;
  padding: 0.35rem 0.55rem;
}

@media (max-width: 640px) {
  .content .gug-reg-grid {
    grid-template-columns: 1fr;
  }
  .content .gug-reg-card {
    padding: 0.9rem 0.85rem;
  }
  .content .gug-reg-title .gug-reg-map {
    flex-basis: 44px;
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
  }
}

/* ── Convocazioni (plugin JSON) ─────────────────────────────────────────── */
.content .convocazioni {
  margin: 0.5rem 0 1.25rem;
}
.content .conv-card {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}
.content .conv-toggle {
  width: 100%;
  background: #0066b3;
  border: none;
  padding: 12px 16px;
  text-align: left;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.content .conv-toggle:hover,
.content .conv-toggle:focus {
  background: #005291;
  color: #fff;
}
.content .conv-toggle-hint {
  font-size: 12px;
  font-weight: 400;
  opacity: 0.85;
  flex-shrink: 0;
  padding-top: 2px;
}
.content .conv-body {
  padding: 14px;
}
.content .conv-meta {
  background: #f0f6fc;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  margin-bottom: 14px;
  padding: 10px 14px;
}
.content .conv-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-bottom: 6px;
}
.content .conv-meta-line {
  margin-bottom: 6px;
}
.content .conv-meta-k {
  font-weight: 600;
}
.content .conv-team + .conv-team {
  margin-top: 16px;
}
.content .conv-team-label {
  margin: 0 0 8px;
  font-weight: 700;
  color: #004d8a;
}
.content .conv-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.content .conv-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 320px;
  table-layout: fixed;
}
.content .conv-table col.conv-col-role { width: 36%; }
.content .conv-table col.conv-col-name { width: 40%; }
.content .conv-table col.conv-col-gug { width: 24%; }
.content .conv-table th,
.content .conv-table td {
  overflow-wrap: break-word;
}
.content .conv-table th {
  background: #004d8a;
  color: #fff;
  padding: 8px 12px;
  text-align: left;
  border: 1px solid #003d6e;
}
.content .conv-table td {
  padding: 7px 12px;
  border: 1px solid #dee2e6;
}
.content .conv-row.is-alt td {
  background: #f8f8f8;
}
.content .conv-table a {
  color: #0066b3;
  font-weight: 600;
  text-decoration: none;
}
.content .conv-table a:hover {
  text-decoration: underline;
}
.content .conv-err,
.content .conv-empty {
  color: #6c757d;
  font-size: 0.95rem;
}

/* ── Calendario agonistico (plugin JSON) ────────────────────────────────── */
.content .calendario-agonistico {
  margin: 0.5rem 0 1.25rem;
}
.content .cal-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #d7e3ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 77, 138, 0.06);
}
.content .cal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  margin: 0;
}
.content .cal-table th {
  background: #004d8a;
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: .02em;
  border-bottom: 1px solid #003d6e;
}
.content .cal-table td {
  padding: 9px 12px;
  border-top: 1px solid #e8eef4;
  font-size: 0.92rem;
  color: #1a2b3c;
  vertical-align: top;
}
.content .cal-table tbody tr:nth-child(even) td {
  background: #f7fbff;
}
.content .cal-date {
  white-space: nowrap;
  font-weight: 700;
  color: #004d8a;
  font-variant-numeric: tabular-nums;
}
/* Icone 📅/📍: solo mobile (su desktop le colonne bastano) */
.content .cal-ico {
  display: none;
}
.content .cal-pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  background: #e8f2fb;
  color: #004d8a;
  border: 1px solid #c5daf0;
}
/* Verde per acque libere/fondo, qualunque sia la label scritta nel JSON */
.content .cal-fam-acque-libere .cal-pill {
  background: #eaf7f2;
  color: #0b6b4f;
  border-color: #b9e0d0;
}
.content .cal-title {
  font-weight: 600;
}
.content .cal-place {
  color: #5c6b7a;
}
.content .cal-err,
.content .cal-empty {
  color: #6c757d;
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  .content .cal-table {
    min-width: 0;
  }
  .content .cal-table thead {
    display: none;
  }
  .content .cal-table,
  .content .cal-table tbody,
  .content .cal-table tr,
  .content .cal-table td {
    display: block;
    width: 100%;
  }
  .content .cal-table tbody tr {
    padding: 0.75rem 0.9rem;
    border-top: 1px solid #e8eef4;
  }
  .content .cal-table tbody tr:first-child {
    border-top: none;
  }
  .content .cal-table td {
    border: none;
    padding: 0.2rem 0;
    background: transparent !important;
  }
  .content .cal-table td::before {
    content: attr(data-label) ": ";
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #5c6b7a;
  }
  .content .cal-date {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
  .content .cal-ico {
    display: inline;
    margin-right: 0.3em;
  }
  /* Su mobile le emoji sostituiscono le label Data/Luogo */
  .content .cal-date::before,
  .content .cal-place::before {
    content: none;
  }
}

/* -----------------------------------------------------------------------------
   HOME COMPOSITION — featured + strip Attività + bollettino notizie
   Niente griglia di card in home. Vedi Custom_CMS.md sez. 6 a0.
   ----------------------------------------------------------------------------- */

/* Nimbus: ogni <section> ha padding 60px — i blocchi home sono <div>
   per non ereditario. Spaziatura home: compatta ma respirabile. */
body.blog-page #blog.blog {
  padding: 24px 0 32px;
}
body.blog-page #blog.blog .gug-home-section {
  padding: 0;
  overflow: visible;
  background: transparent;
}
body.blog-page .page-title nav {
  padding: 10px 0;
}

/* Stesso respiro sulle pagine dettaglio (post, profili, statiche) */
body.blog-details-page #blog-details.blog-details {
  padding: 24px 0 32px;
}
body.blog-details-page .page-title nav {
  padding: 10px 0;
}

.gug-home-section {
  margin-bottom: 1.65rem;
}
.gug-home-section:last-child {
  margin-bottom: 0;
}
.gug-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0.65rem;
  padding-bottom: 0.45rem;
  border-bottom: 2px solid #e9ecef;
}
.gug-section-head h2 {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #004d8a;
  margin: 0;
}
.gug-section-head a {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  color: #0066b3;
  text-decoration: none;
}
.gug-section-head a:hover {
  color: #004d8a;
  text-decoration: underline;
}
.gug-hub-note {
  font-size: 0.875rem;
  color: #6c757d;
  margin: 0 0 1rem;
  line-height: 1.5;
}

/* Featured */
.gug-featured {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.25rem;
  align-items: start;
  text-decoration: none;
  color: inherit;
}
.gug-featured.has-cover {
  /* Colonna foto fissa: evita strip panoramica troppo larga e bassa */
  grid-template-columns: 280px 1fr;
  align-items: start;
}
.gug-featured:hover {
  text-decoration: none;
  color: inherit;
}
.gug-featured-media {
  overflow: hidden;
  background: #e9ecef;
  width: 100%;
  aspect-ratio: 4 / 3;
}
.gug-featured-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.gug-featured-mark {
  width: 140px;
  height: 140px;
  background: linear-gradient(145deg, #004d8a 0%, #0066b3 55%, #2a8fd4 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.gug-fm-day {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
}
.gug-fm-mon {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
}
.gug-featured-kicker {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #004d8a;
  margin-bottom: 6px;
}
.gug-featured-title {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.25;
  color: #212529;
  margin: 0 0 10px;
}
.gug-featured:hover .gug-featured-title {
  color: #0066b3;
}
.gug-featured-excerpt {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #495057;
  max-width: 62ch;
  margin: 0;
}
.gug-featured-more {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0066b3;
}

/* Attività strip */
.gug-attivita-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gug-attivita-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e9ecef;
  border-left: 4px solid #0066b3;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, background .15s;
}
.gug-attivita-link:hover {
  background: #f7fbff;
  border-color: #b8d4f0;
  border-left-color: #004d8a;
  text-decoration: none;
  color: inherit;
}
.gug-attivita-cover {
  width: 40px;
  height: 40px;
  object-fit: cover;
  flex-shrink: 0;
}
.gug-attivita-ico {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f2fb;
  color: #0066b3;
  font-size: 1.1rem;
}
.gug-attivita-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.gug-attivita-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #212529;
}
.gug-attivita-link:hover .gug-attivita-title {
  color: #0066b3;
}
.gug-attivita-desc {
  font-size: 0.8rem;
  color: #6c757d;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* News bulletin list */
.gug-news-list {
  background: #fff;
  border: 1px solid #e9ecef;
}
.gug-news-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid #e9ecef;
  text-decoration: none;
  color: inherit;
}
.gug-news-item.has-thumb {
  grid-template-columns: 120px 1fr;
  align-items: start;
}
.gug-news-item:last-child {
  border-bottom: none;
}
.gug-news-item:hover {
  background: #fafbfc;
  text-decoration: none;
  color: inherit;
}
.gug-news-thumb {
  display: block;
  width: 120px;
  height: 80px;
  overflow: hidden;
  background: #e9ecef;
  flex-shrink: 0;
}
.gug-news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gug-news-date {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #004d8a;
  padding-top: 2px;
  margin-bottom: 4px;
}
.gug-news-item:not(.has-thumb) > .gug-news-date {
  margin-bottom: 0;
}
.gug-news-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #212529;
  line-height: 1.3;
  margin-bottom: 4px;
}
.gug-news-item:hover .gug-news-title {
  color: #0066b3;
}
.gug-news-excerpt {
  display: block;
  font-size: 0.875rem;
  color: #6c757d;
  line-height: 1.5;
}

/* Category headers */
.gug-category-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  padding-bottom: 10px;
  border-bottom: 2px solid #0066b3;
}
.gug-category-title.is-notizie {
  border-bottom-color: #0066b3;
}
.gug-category-title.is-attivita {
  border-bottom-color: #0066b3;
}
.gug-hub-cta {
  margin: 0;
  font-size: 0.8rem;
}
.gug-hub-cta a {
  font-weight: 600;
  color: #0066b3;
  text-decoration: none;
}
.gug-hub-cta a:hover {
  text-decoration: underline;
}

.gug-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #d7e3ef;
}
.gug-pager-link {
  min-width: 7.5rem;
  padding: 8px 14px;
  border: 1px solid #b8d4f0;
  border-radius: 6px;
  color: #0066b3;
  font-size: .9rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
a.gug-pager-link:hover {
  color: #004d8a;
  background: #e8f2fb;
}
.gug-pager-link.is-disabled {
  color: #9aa8b5;
  border-color: #e6eef5;
  background: #f7fafc;
}
.gug-pager-status {
  color: #5c6b7a;
  font-size: .85rem;
  white-space: nowrap;
}
@media (max-width: 575px) {
  .gug-pager {
    flex-wrap: wrap;
    justify-content: center;
  }
  .gug-pager-status {
    order: -1;
    flex: 1 0 100%;
    text-align: center;
    margin-bottom: .25rem;
  }
}

@media (max-width: 991px) {
  .gug-attivita-strip {
    grid-template-columns: 1fr;
  }
  .gug-featured {
    grid-template-columns: 100px 1fr;
    gap: 1rem;
  }
  .gug-featured.has-cover {
    grid-template-columns: 220px 1fr;
  }
  .gug-featured-mark {
    width: 100px;
    height: 100px;
  }
  .gug-fm-day {
    font-size: 1.75rem;
  }
  .gug-featured-title {
    font-size: 1.15rem;
  }
}

/* -----------------------------------------------------------------------------
   12. NEL MONDO — tab Nuoto / Fondo + card evento per anno
   ----------------------------------------------------------------------------- */
.content .gug-nm-year {
  margin: 1.5rem 0 0.75rem;
  padding-bottom: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #004d8a;
  border-bottom: 2px solid #0066b3;
}
.content .gug-nm-year:first-child {
  margin-top: 0.25rem;
}
.content .gug-nm-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.content .gug-nm-event {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px 14px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e6eef5;
  border-radius: 8px;
}
.content .gug-nm-logo {
  width: 72px;
  height: 56px;
  object-fit: contain;
  display: block;
  margin: 0;
}
.content .gug-nm-logo-empty {
  background: #f0f4f8;
  border-radius: 4px;
}
.content .gug-nm-body {
  min-width: 0;
}
.content .gug-nm-title {
  margin: 0 0 2px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #212529;
  line-height: 1.3;
}
.content .gug-nm-place {
  margin: 0 0 2px !important;
  padding: 0 !important;
  font-size: 0.85rem;
  color: #5c6b7a;
  line-height: 1.35;
}
.content .gug-nm-officials {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0066b3;
  line-height: 1.35;
}
.content .nav-tabs {
  border-bottom-color: #c5d8ea;
}
.content .nav-tabs .nav-link {
  color: #004d8a;
  font-weight: 600;
}
.content .nav-tabs .nav-link.active {
  color: #0066b3;
  border-color: #c5d8ea #c5d8ea #fff;
}
@media (max-width: 575px) {
  .content .gug-nm-event {
    grid-template-columns: 56px 1fr;
    gap: 10px;
    padding: 8px 10px;
  }
  .content .gug-nm-logo {
    width: 56px;
    height: 44px;
  }
}

@media (max-width: 575px) {
  .gug-featured,
  .gug-featured.has-cover {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .gug-featured-media {
    aspect-ratio: 16 / 10;
    max-width: none;
  }
  .gug-featured-mark {
    width: 100%;
    height: 72px;
    flex-direction: row;
    gap: 10px;
  }
  .gug-fm-day {
    font-size: 1.6rem;
  }
  .gug-news-item,
  .gug-news-item.has-thumb {
    grid-template-columns: 88px 1fr;
    gap: 10px;
    padding: 12px;
  }
  .gug-news-thumb {
    width: 88px;
    height: 64px;
  }
}


/* -----------------------------------------------------------------------------
   14. PAGINE OPERATIVE A LARGHEZZA PIENA (.gug-wide)
       Liste, calendari, convocazioni ed elenchi documenti: 12 colonne senza
       sidebar (vedi gug_page_is_wide()). Da sola la larghezza in più lascia
       spazio vuoto a destra, quindi qui il contenuto viene ridistribuito.
       Solo da lg in su: sotto valgono le regole mobile delle altre sezioni.
   ----------------------------------------------------------------------------- */

/* Cover a banner. Il crop 16/9 della sez. 8 lascia la larghezza legata
   all'altezza (~570px), che su 12 colonne diventa un buco a destra: qui
   l'immagine si stende e i documenti restano nel primo schermo.
   Vale anche sugli hub di sezione (.gug-hub-page): con la cover alta 320px
   le card delle figlie finivano sotto la piega. */
.gug-wide .article > .post-img,
.blog-details .article.gug-hub-page > .post-img {
  aspect-ratio: auto;
  width: 100%;
  height: 200px;
  max-height: 200px;
}

@media (max-width: 575px) {
  .gug-wide .article > .post-img,
  .blog-details .article.gug-hub-page > .post-img {
    height: 140px;
    max-height: 140px;
  }
}

@media (min-width: 992px) {

  /* Liste ufficiali: colonne fluide invece di 4 fisse (sezione 11b) */
  .gug-wide .content .gug-liste-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  /* Elenchi di allegati: righe icona+link distribuite su più colonne.
     Le <tr> diventano item della griglia, come in sezione 11 su mobile. */
  .gug-wide .gug-doclist {
    overflow-x: visible;
  }
  .gug-wide .gug-doclist table,
  .gug-wide .gug-doclist tbody {
    display: block;
    width: 100%;
  }
  .gug-wide .gug-doclist colgroup {
    display: none;
  }
  .gug-wide .gug-doclist tbody {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    column-gap: 28px;
  }
  .gug-wide .gug-doclist tr {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 10px;
    height: auto !important;
  }
  .gug-wide .gug-doclist td {
    display: block;
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 6px 0 !important;
  }
  .gug-wide .gug-doclist td img {
    width: 22px !important;
    height: 22px !important;
  }

}


/* -----------------------------------------------------------------------------
   15. NAVIGAZIONE DELLE SEZIONI CHI SIAMO / REGOLAMENTI
       Card sugli hub e barra delle pagine sorelle sulle figlie. Gli elenchi
       sono generati dalla stessa configurazione usata dal menu principale.
   ----------------------------------------------------------------------------- */

.content .gug-hub-nav {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 12px;
  margin: 1.25rem 0 0;
}
.content .gug-hub-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  color: inherit;
  background: #fff;
  border: 1px solid #e9ecef;
  border-left: 4px solid #0066b3;
  text-decoration: none;
  transition: border-color .15s, background .15s;
}
.content .gug-hub-link:hover {
  color: inherit;
  background: #f7fbff;
  border-color: #b8d4f0;
  border-left-color: #004d8a;
  text-decoration: none;
}
.content .gug-hub-ico {
  display: inline-flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #0066b3;
  background: #e8f2fb;
  font-size: 1.1rem;
}
.content .gug-hub-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.content .gug-hub-title {
  color: #212529;
  font-size: .95rem;
  font-weight: 700;
}
.content .gug-hub-link:hover .gug-hub-title {
  color: #0066b3;
}
.content .gug-hub-desc {
  display: -webkit-box;
  overflow: hidden;
  color: #6c757d;
  font-size: .8rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}

.gug-sibling-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.35rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid #e9ecef;
}
.gug-sibling-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  color: #0066b3;
  background: #f4f9fd;
  border: 1px solid #d7e3ef;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.gug-sibling-link:hover {
  color: #004d8a;
  background: #e8f2fb;
  border-color: #b8d4f0;
  text-decoration: none;
}
.gug-sibling-link.is-current {
  color: #fff;
  background: #0066b3;
  border-color: #0066b3;
  pointer-events: none;
}

@media (max-width: 575px) {
  .content .gug-hub-nav {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .content .gug-hub-link {
    padding: 12px;
  }
  .gug-sibling-nav {
    gap: 6px;
  }
  .gug-sibling-link {
    padding: 7px 11px;
    font-size: .82rem;
  }
}


/* -----------------------------------------------------------------------------
   16. BROWSER DOCUMENTI — ricerca e conteggio
   ----------------------------------------------------------------------------- */

.content .gug-doc-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1rem 0;
  padding: 12px;
  background: #f4f9fd;
  border: 1px solid #d7e3ef;
  border-radius: 8px;
}
.content .gug-doc-search-label {
  position: relative;
  flex: 1 1 340px;
  margin: 0;
}
.content .gug-doc-search-label > .bi {
  position: absolute;
  top: 50%;
  left: 13px;
  color: #667788;
  transform: translateY(-50%);
  pointer-events: none;
}
.content .gug-doc-search {
  width: 100%;
  min-height: 42px;
  padding: 8px 38px;
  color: #1a2b3c;
  background: #fff;
  border: 1px solid #b9cad9;
  border-radius: 6px;
}
.content .gug-doc-search:focus {
  border-color: #0066b3;
  box-shadow: 0 0 0 3px rgba(0, 102, 179, .14);
  outline: 0;
}
.content .gug-doc-clear {
  min-height: 40px;
  padding: 7px 11px;
  color: #0066b3;
  background: transparent;
  border: 1px solid #b8d4f0;
  border-radius: 6px;
  font-size: .84rem;
  font-weight: 600;
}
.content .gug-doc-clear:hover {
  color: #004d8a;
  background: #e8f2fb;
}
.content .gug-doc-count {
  flex: 0 0 auto;
  color: #5c6b7a;
  font-size: .82rem;
  white-space: nowrap;
}
.content .gug-doc-search-section {
  display: none;
}
.content.gug-doc-searching > .nav-tabs {
  display: none;
}
.content.gug-doc-searching > .tab-content > .tab-pane.gug-search-pane {
  display: block;
  margin-bottom: 1.5rem;
  opacity: 1;
}
.content.gug-doc-searching > .tab-content > .tab-pane.gug-search-pane[hidden],
.content .gug-doc-row[hidden] {
  display: none !important;
}
.content.gug-doc-searching .gug-doc-search-section {
  display: block;
  margin: 0 0 .65rem;
  padding-bottom: .4rem;
  color: #004d8a;
  border-bottom: 2px solid #b8d4f0;
  font-size: 1rem;
  font-weight: 700;
}
/* TinyMCE salva un'altezza fissa sulla tabella. Con le righe nascoste
   quella misura resta e il documento rimasto finisce in fondo allo spazio. */
.content.gug-doc-searching .gug-doclist table,
.content.gug-doc-searching .gug-doclist tr,
.content.gug-doc-searching .gug-doclist td {
  height: auto !important;
}
.content.gug-doc-searching .tab-pane > p:empty {
  display: none;
}
.content .gug-doc-empty {
  margin: 0 0 1rem;
  padding: 14px;
  color: #5c6b7a;
  background: #fff8e6;
  border-left: 4px solid #e4a400;
}
.content .gug-doc-empty[hidden] {
  display: none;
}

@media (max-width: 575px) {
  .content .gug-doc-toolbar {
    align-items: stretch;
    flex-wrap: wrap;
    padding: 10px;
  }
  .content .gug-doc-search-label {
    flex-basis: 100%;
  }
  .content .gug-doc-count {
    align-self: center;
    margin-left: auto;
  }
}

/* -----------------------------------------------------------------------------
   17. HERO HOME (video)
   ----------------------------------------------------------------------------- */
/* Parte alta della home: il video non blocca la navigazione, si scrolla via.
   Il poster copre il primo frame e i casi in cui l'autoplay viene negato. */
/* Il video è 5:1 (3200×640): il 16:9 originale sta al centro e ai lati c'è
   solo acqua. La fascia ha lo stesso rapporto, quindi object-fit: cover la
   riempie senza strisce e senza tagliare il logo, che tocca quasi il bordo
   alto e basso. Niente tetto in vh: accorciare la fascia la renderebbe più
   larga del video e cover taglierebbe il cerchio. */
.gug-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 1;
  min-height: 220px;
  overflow: hidden;
  background: #8ea6b8 center / cover no-repeat;
}
.gug-hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/* Il velo scuro tiene leggibile il testo sulle scene chiare (bordo vasca,
   riflessi in mare). */
.gug-hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: 1.5rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(4, 28, 50, .35), rgba(4, 28, 50, .6));
  text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
  pointer-events: none;
  z-index: 2;
}
.gug-hero-title {
  margin: 0;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.1;
}
.gug-hero-claim {
  margin: 0;
  font-size: clamp(.95rem, 2.2vw, 1.3rem);
  font-weight: 500;
}
/* Su telefono la fascia si misura sulla larghezza, non sull'altezza dello
   schermo: 62vh su un telefono sono due terzi di pagina occupati da un video
   tagliato a spicchio, e le notizie finiscono sotto la piega. Con l'aspetto
   16:9 il logo resta intero e sotto la fascia si vede già il contenuto. */
@media (max-width: 767.98px) {
  .gug-hero {
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 190px;
    /* svh non cambia quando la barra del browser si chiude: 42vh sì, e
       l'altezza del video saltava proprio mentre usciva dallo schermo. */
    max-height: 42svh;
  }
  .gug-hero-video {
    object-fit: cover;
  }
  .gug-hero-overlay {
    padding: 1rem;
  }
  .gug-hero-title {
    font-size: clamp(1.5rem, 7.5vw, 2.4rem);
  }
  .gug-hero-claim {
    font-size: .9rem;
    max-width: 22ch;
  }
}
/* Senza animazioni resta il poster: stessa scena, nessun movimento. */
@media (prefers-reduced-motion: reduce) {
  .gug-hero-video {
    display: none;
  }
  .gug-hero {
    background-image: url("../img/hero-poster.webp");
  }
}

/* -----------------------------------------------------------------------------
   18. NOTIZIE REGIONALI
   ----------------------------------------------------------------------------- */
.gug-reg-news {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #dce7f0;
}
.gug-reg-news > h2 {
  margin-bottom: .4rem;
  color: #004d8a;
}
.gug-reg-news-lead {
  max-width: 62ch;
  color: #526677;
}
.gug-reg-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 20px;
  margin-top: 1.5rem;
}
.gug-reg-news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dce7f0;
  border-top: 4px solid #0066b3;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 77, 138, .06);
}
/* Cartine 200×~235 px: oltre la misura originale i contorni si sgranano */
.gug-reg-news-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 170px;
  padding: 12px;
  background: linear-gradient(180deg, #eef5fb 0%, #dfecf7 100%);
  border-bottom: 1px solid #dce7f0;
}
.gug-reg-news-cover img {
  width: auto;
  max-width: 100%;
  height: 100%;
  max-height: 146px;
  object-fit: contain;
  transition: transform .2s ease;
}
.gug-reg-news-card:hover .gug-reg-news-cover img {
  transform: scale(1.04);
}
.gug-reg-news-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px 20px;
}
.gug-reg-news-meta {
  margin-bottom: 8px;
  color: #5c6f7e;
  font-size: .82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.gug-reg-news-card h3 {
  margin: 0 0 18px;
  font-size: 1.1rem;
  line-height: 1.35;
}
.gug-reg-news-card h3 a {
  color: #1a2430;
}
.gug-reg-news-card h3 a:hover {
  color: #0066b3;
}
.gug-reg-news-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: auto;
}
.gug-reg-news-source {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .9rem;
  font-weight: 700;
}
.gug-reg-news-source.is-instagram {
  color: #c13584;
}
.gug-reg-news-source.is-facebook {
  color: #1877f2;
}
.gug-reg-news-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1.5rem;
  padding: 18px 20px;
  color: #526677;
  border: 1px dashed #b8d4f0;
  border-radius: 8px;
  background: #f6fafe;
}
.gug-reg-news-empty .bi {
  color: #0066b3;
  font-size: 1.5rem;
}
.gug-reg-news-empty p {
  margin: 0;
}

/* -----------------------------------------------------------------------------
   19. DIVENTA UFFICIALE DI GARA
   ----------------------------------------------------------------------------- */
.gug-join {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 1.75rem;
  padding: 12px 16px 12px 18px;
  border: 1px solid #dce7f0;
  border-left: 4px solid #0066b3;
  border-radius: 8px;
  background: #f6fafe;
  color: #1a2430;
}
.gug-join h2 {
  margin: 0;
  color: #004d8a;
  font-size: 1.05rem;
  line-height: 1.3;
}
.gug-join h2 .bi {
  margin-right: .35rem;
  color: #0066b3;
}
.gug-join p {
  margin: 2px 0 0;
  color: #526677;
  font-size: .92rem;
}
.gug-join-btn {
  flex: 0 0 auto;
  padding: .4rem .9rem;
  border-radius: 6px;
  background: #0066b3;
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.gug-join-btn:hover {
  background: #004d8a;
  color: #fff;
}
.gug-join-band {
  background: #fff;
  border-top: 1px solid #dce7f0;
}
.gug-join-band .gug-join {
  margin: 16px 0;
}
.sidebar .gug-join {
  flex-direction: column;
  align-items: stretch;
  margin: 0 0 1.5rem;
}
.sidebar .gug-join-btn {
  text-align: center;
}
@media (max-width: 767.98px) {
  .gug-join {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px 12px 16px;
  }
  .gug-join-btn {
    text-align: center;
  }
}

/* Area riservata: login e elenco, solo dopo l'accesso */
.content .gug-area-login form,
.content .gug-area-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.8rem;
}
.content .gug-area-login {
  max-width: 28rem;
}
.content .gug-area-login label {
  margin: 0.4rem 0 0;
  font-weight: 700;
  color: #073b70;
}
.content .gug-area-login input {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid #c5d4e2;
  border-radius: 6px;
}
.content .gug-area-bar {
  justify-content: space-between;
  margin-bottom: 1rem;
}
.content .gug-area-bar form {
  margin: 0;
}
.content .gug-area-flash {
  color: #8a2b2b;
  font-weight: 700;
}
.content .gug-area-note {
  color: #1d6b3a;
  font-weight: 700;
}
.content .gug-area-forgot {
  margin-top: 0.8rem;
  font-size: 0.9rem;
}
.content .gug-area-docs-title {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
}
.content .gug-area-email {
  max-width: 28rem;
  margin-top: 1.75rem;
  padding-top: 0.8rem;
  border-top: 1px solid #e1eaf2;
  color: #5c6b78;
  font-size: 0.92rem;
}
.content .gug-area-email summary {
  cursor: pointer;
  color: #073b70;
}
.content .gug-area-email summary strong {
  font-weight: 600;
}
.content .gug-area-email form {
  margin-top: 0.6rem;
}
.content .gug-area-email label {
  margin: 0.4rem 0 0;
  font-weight: 700;
  color: #073b70;
}
.content .gug-area-email input {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid #c5d4e2;
  border-radius: 6px;
}
.content .gug-area-email button {
  margin-top: 0.7rem;
}
.content .gug-area-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.content .gug-area-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e1eaf2;
}
.content .gug-area-list a {
  font-weight: 700;
}
.content .gug-area-list small {
  display: block;
  color: #5c6b78;
  font-weight: 400;
}
.content .gug-area-list span {
  flex-shrink: 0;
  color: #0066b3;
  font-size: 0.85rem;
}

.gug-formazione-season {
  margin: 0 0 1rem;
  font-weight: 700;
  color: #004d8a;
}
.gug-formazione-list {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
}
.gug-formazione-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid #e4eef6;
}
.gug-formazione-list a {
  font-weight: 600;
}
.gug-formazione-note {
  font-weight: 400;
  color: #5c6b78;
}
.gug-formazione-region {
  flex-shrink: 0;
  color: #5c6b78;
}
.gug-formazione-empty {
  color: #5c6b78;
}
@media (max-width: 575px) {
  .gug-formazione-list li {
    flex-direction: column;
    gap: 0.1rem;
  }
}
