/* ============================================================
 * menu-overrides.css
 * Override per il menu e header della nuova grafica.
 * Risolve conflitti tra il CSS del template 2024 e Bootstrap 5.
 * Caricato per ULTIMO da head.php in modo da vincere sulla cascade.
 * ============================================================ */

/* --- Reset link color: il template imposta a:#007bff in newstyle.css,
       sovrascriviamo per i link di navigazione/header --- */
header a,
#main_navbar a,
.top-links a,
.offcanvas a,
nav a {
  color: inherit;
}

/* --- Top bar (desktop) --- */
.top-bar {
  background: #000;
  line-height: 44px;
  color: #fff;
  position: relative;
  z-index: 1080;
}
.top-bar .top-links > ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
}
.top-bar .top-links > ul > li {
  list-style: none;
  position: relative;
}
.top-bar .top-links .dropdown-menu {
  display: none;
  list-style: none;
}
.top-bar .top-links .dropdown-menu.show {
  display: block;
  pointer-events: auto;
}
.top-bar .top-links li > a {
  color: #fff;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
}
.top-bar .top-links li > a:hover { color: #ffa08a; }
.top-bar .top-links li.disabled {
  color: #acacac;
  padding: 0 15px;
  font-weight: 300;
}
.top-bar .top-links .dropdown-menu {
  background: #fff;
  border: 1px solid #b00818;
  border-radius: 0;
  z-index: 1080;
}
.top-bar .top-links .dropdown-menu .dropdown-item { color: #333; border-radius: 0; }
.top-bar .top-links .dropdown-menu .dropdown-item:hover { background: #f5f5f5; color: #b00818; }

/* --- Logo desktop --- */
#logo .standard-logo img {
  max-height: 100px;
  width: auto;
}

/* --- Navbar principale (#main_navbar) --- */
#main_navbar {
  background: #b00818;
  background: linear-gradient(#b00818, #dc0014);
  border-top: 1px solid #f5f5f5;
  padding: 0;
}
#main_navbar .navbar-nav .nav-link {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  padding: 14px 15px;
  transition: color .2s ease, background .2s ease;
}
#main_navbar .navbar-nav .nav-link:hover,
#main_navbar .navbar-nav .nav-item.active .nav-link {
  color: #ffa08a;
  background: rgba(0,0,0,.15);
}
#main_navbar .btn-danger {
  background-color: #fff;
  color: #b00818;
  border-color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  padding: 6px 14px;
}
#main_navbar .btn-danger:hover {
  background-color: #ffa08a;
  color: #fff;
}

/* --- Header mobile (sotto i 992px) --- */
@media (max-width: 991.98px) {
  body { padding-top: 65px; }
  .header-mobile {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 65px;
    background: #c91c1c;
    z-index: 99990;
    display: flex !important;
    align-items: center;
    padding: 0 12px;
  }
  .header-mobile .logo {
    width: auto;
    flex: 1;
    height: 45px;
    margin: 0;
  }
  .header-mobile .logo img {
    height: 45px;
    width: auto;
  }
  .header-mobile .search {
    width: 50px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid rgba(255,255,255,.3);
    border-right: 1px solid rgba(255,255,255,.3);
    padding: 0;
    position: static;
  }
  .header-mobile .search a {
    color: #fff;
    font-size: 1.6em;
    text-decoration: none;
  }
  .header-mobile .hamburger {
    position: relative;
    width: 40px;
    height: 40px;
    margin-left: 12px;
    cursor: pointer;
    flex: 0 0 40px;
  }
  .header-mobile .hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: .3s ease;
  }
  .header-mobile .hamburger span:nth-child(1) { top: 10px; }
  .header-mobile .hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
  .header-mobile .hamburger span:nth-child(3) { bottom: 10px; top: auto; }
}

/* --- Offcanvas (Bootstrap 5) — sovrascrive 2024.css che forza height:0 --- */
.offcanvas {
  /* Bootstrap default position/size va bene; rimuoviamo gli override del template */
  margin-top: 0 !important;
  height: 100vh !important;
  background-color: #ce2220;
  color: #fff;
  z-index: 100000; /* sopra header-mobile (99990) */
}
.offcanvas-backdrop { z-index: 99995; }
.offcanvas.offcanvas-start,
.offcanvas.offcanvas-end {
  position: fixed;
}
.offcanvas-header {
  background: #ce2220;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.offcanvas-header h5,
.offcanvas-header .offcanvas-title { color: #fff; margin: 0; }
.offcanvas-body a {
  color: #e8e8e8;
  text-decoration: none;
  display: block;
  padding: 10px 4px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.offcanvas-body a:hover { color: #fff; background: rgba(255,255,255,.12); }

/* Pulsanti dentro offcanvas (sfondo rosso) */
.offcanvas-body .btn {
  border-radius: 0;
  font-weight: 700;
}
.offcanvas-body .btn.btn-danger {
  background: #fff;
  border-color: #fff;
  color: #b00818;
}
.offcanvas-body .btn.btn-danger:hover {
  background: #ffe9e9;
  color: #b00818;
}
.offcanvas-body .btn.btn-outline-dark {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.offcanvas-body .btn.btn-outline-dark:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: #fff;
}
.offcanvas-body a.text-danger {
  color: #fff !important;
}
.offcanvas-body .border-top {
  border-top-color: rgba(255,255,255,.25) !important;
}

/* --- Selettore lingua dropdown (Bootstrap 5) --- */
.top-bar .dropdown-menu {
  min-width: 180px;
}

/* --- divFastCity / section_city (fast city links) --- */
.section_city {
  padding: 10px 0;
  background: #75030e;
  background: linear-gradient(#75030e, #a50010);
  color: #fff;
}
.section_city a {
  color: #fff;
  font-weight: 300;
  font-size: .875rem;
  margin: 0;
  text-decoration: none;
}
.section_city a:hover { color: #ffa08a; text-decoration: underline; }
.section_city .fast-cat { font-size: .9rem; }
.section_city .fast-cat strong { font-weight: 700; margin-right: 4px; }
.section_city .fast-sep { color: #ffb3a8; margin: 0 6px; }

/* --- Page title --- */
#titolo-pagina #page-title {
  background: #ce2220;
  background: linear-gradient(#ce2220, #a81b1a);
  color: #fff;
  padding: 30px 0;
}
#titolo-pagina #page-title h1 {
  margin: 0;
  font-size: 1.8rem;
  color: #fff;
}
#titolo-pagina #page-title span {
  color: #ccc;
  font-size: 1rem;
}
#titolo-pagina .page-title-bread {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
}
#titolo-pagina .page-title-bread .breadcrumb {
  margin: 0;
  background: transparent;
  padding: 0;
  font-size: 14px;
}
#titolo-pagina .page-title-bread .breadcrumb-item,
#titolo-pagina .page-title-bread .breadcrumb-item a { color: #555; }
#titolo-pagina .page-title-bread .breadcrumb-item a:hover { color: #b00818; }
#titolo-pagina .page-title-bread .breadcrumb-item.active { color: #999; }
#titolo-pagina .page-title-bread .breadcrumb-item + .breadcrumb-item::before { color: #999; }

/* --- Footer overrides --- */
#footer.dark {
  background: #333;
  color: #cfcfcf;
}
#footer.dark a { color: #cfcfcf; }
#footer.dark a:hover { color: #ce2220; }
#copyrights { background: #282828; color: #888; }

/* --- Popup maggiorenne --- */
#popup-maggiorenne-container.modal.show { background: rgba(0,0,0,.55); }
#popup-maggiorenne-container .modal-content {
  background: #ffffff;
  color: #222;
  border: 1px solid #e3e3e3;
  border-radius: 0;
}
#popup-maggiorenne-container .modal-content h3 { color: #222; }
#popup-maggiorenne-container .modal-content p { color: #444; }
#popup-maggiorenne-container .modal-content a { color: #cc0000; text-decoration: underline; }
#popup-maggiorenne-container .modal-content .btn { border-radius: 0; }
#popup-maggiorenne-container .btn-entra {
  background: #cc0000;
  border: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 16px 48px;
  box-shadow: 0 4px 14px rgba(204,0,0,.35);
  transition: background .2s, transform .1s;
}
#popup-maggiorenne-container .btn-entra:hover { background: #aa0000; transform: translateY(-1px); }
#popup-maggiorenne-container .btn-entra:active { transform: translateY(0); }
#popup-maggiorenne-container .btn-esci {
  background: transparent;
  color: #666;
  border: 1px solid #ccc;
  padding: 14px 28px;
  font-size: .95rem;
}
#popup-maggiorenne-container .btn-esci:hover { background: #f5f5f5; color: #333; }

/* ==========================================================================
   Footer - layout pulito (2026)
   ========================================================================== */
#footer {
  background: #333 !important;
  color: #cfcfcf !important;
  border-top: 1px solid #2a2a2a !important;
  margin-top: 60px !important;
  padding: 0 !important;
  display: block !important;
  align-items: initial !important;
  flex-direction: initial !important;
  overflow-x: hidden !important;
}
#footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 15px 40px 15px;
  width: 100%;
  box-sizing: border-box;
}
#footer .row {
  display: flex !important;
  flex-wrap: wrap !important;
  margin-left: -15px;
  margin-right: -15px;
}
#footer [class^="col-"], #footer [class*=" col-"] {
  padding-left: 15px;
  padding-right: 15px;
  margin-bottom: 30px;
  box-sizing: border-box;
}
@media (min-width: 768px) {
  #footer .col-md-3 { flex: 0 0 25%; max-width: 25%; }
}
@media (max-width: 767px) {
  #footer .col-12,
  #footer .col-6 { flex: 0 0 100%; max-width: 100%; }
}
#footer h4,
#footer h5 {
  color: #fff !important;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid #b9141d;
  display: inli  display: inli  display: inli  display: 5re  display: inli  display: in  t  display: inli  displa#footer p.small {
  color: #9a9a9a;
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 8px;
}
#footer#footer#footer#foo{
               one;
           0;
  marg  marg  marg  mr ul.l  marg  marg  marg  marg  margtom: 8px;
}}}}}}}er ul.list-unstyled li a,
#footer a.text-light {
  color: #cfcfcf !important;
  text-decoration: none !important;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
#footer ul.list-unst#footer ul.list-unfoote#footer ul.list-uner {
#footer ul.list-unstportant;
}
#copyrights {
  background: #000 !important;
  color: #888 !important;
  padding: 18px 0 !important;
  border-top: 1px solid #1a1a1a;
  font-size: 0.8rem;
}
#copyrights .container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
#copyrights strong { color: #cfcfcf; }
