/*
 Theme Name:   Divi Child
 Theme URI:    https://www.elegantthemes.com/gallery/divi/
 Description:  Divi Child Theme per LCF Congress Factory
 Author:       Antigravity
 Author URI:   https://lcfcongress.com
 Template:     Divi
 Version:      1.0.0
*/

/* ===== PAGINA SOCIETÀ SCIENTIFICHE ===== */

.lcf-societa-page {
  padding: 60px 0;
  background-color: #f8fafc;
}

.lcf-societa-hero {
  text-align: center;
  margin-bottom: 50px;
  background: #0f172a;
  padding: 80px 20px;
  border-radius: 12px;
}

.lcf-societa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.lcf-societa-item {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lcf-societa-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.lcf-societa-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: all 0.4s ease;
}

.lcf-societa-card:hover {
  transform: translateY(-8px);
  border-color: #0093d0;
  box-shadow:
    0 20px 25px -5px rgba(0, 147, 208, 0.1),
    0 10px 10px -5px rgba(0, 147, 208, 0.04);
}

.lcf-societa-card:hover img {
  transform: scale(1.05);
}

/* Responsività */
@media (max-width: 1024px) {
  .lcf-societa-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .lcf-societa-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .lcf-societa-hero {
    padding: 60px 20px;
  }
}

@media (max-width: 480px) {
  .lcf-societa-grid {
    grid-template-columns: 1fr;
  }
}

#main-header .container.et_menu_container {
  display: flex;
  justify-content: center;
  align-items: center;
}

#main-header #et-top-navigation {
  float: none !important;
}

/* ===== STILI GENERALI ===== */

/* Fix per visibilita titoli header */
h1,
.entry-title,
.main_title {
  color: #ffffff !important;
}

/* ===== MARQUEE LOGHI PARTNER ===== */

/* Contenitore marquee con overflow nascosto */
.lcf-logos-marquee {
  overflow: hidden;
  padding: 20px 0;
}

/* Traccia scorrevole */
.lcf-logos-track {
  display: flex;
  gap: 50px;
  align-items: center;
  animation: scrollLogos 30s linear infinite;
  width: max-content;
}

/* Singolo logo nel marquee */
.lcf-logo-item {
  height: 100px;
  width: auto;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.85;
  transition: all 0.3s ease;
}

.lcf-logo-item:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Animazione scorrimento continuo */
@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===== CARD EVENTI ===== */

/* Label data/sede sopra il titolo */
.lcf-event-meta {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

/* Link titolo evento */
.lcf-event-title a {
  color: #0093d0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.lcf-event-title a:hover {
  color: #0f172a;
}

/* ===== SEZIONE CONTATTI ===== */

/* Link ciano nei contatti */
.lcf-contact-link {
  color: #0093d0;
  text-decoration: none;
  transition: color 0.2s ease;
}

.lcf-contact-link:hover {
  color: #0f172a;
}

/* ===== PAGINA COSA FACCIAMO ===== */

body.lcf-page-cosa-facciamo .et_pb_row {
  max-width: 1080px;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.lcf-page-cosa-facciamo .lcf-sezione-titolo,
body.lcf-page-cosa-facciamo h2.lcf-sezione-titolo {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 700 !important;
  font-size: 22px !important;
  letter-spacing: 0.5px !important;
  color: #0f172a !important;
  text-align: center;
  margin-bottom: 32px !important;
  padding-bottom: 12px;
  border-bottom: 3px solid #0093d0;
}

/* Card: bordo ciano come altre pagine */
body.lcf-page-cosa-facciamo .lcf-cosa-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 10px;
  background: #f8fafc;
  border-radius: 0 6px 6px 0;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0093d0;
  transition:
    border-color 0.2s,
    box-shadow 0.2s ease;
}

body.lcf-page-cosa-facciamo .lcf-cosa-card:hover {
  border-left-color: #0077a8;
  box-shadow: 0 2px 8px rgba(0, 147, 208, 0.08);
}

/* Icone: dimensioni fisse 36px - override qualsiasi altro stile */
body.lcf-page-cosa-facciamo .lcf-cosa-card .lcf-cosa-icon,
body.lcf-page-cosa-facciamo img.lcf-cosa-icon,
body.lcf-page-cosa-facciamo .lcf-cosa-servizi .et_pb_text img,
body.lcf-page-cosa-facciamo .lcf-cosa-finanza .et_pb_text img {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  object-fit: contain !important;
  flex-shrink: 0;
}

body.lcf-page-cosa-facciamo .lcf-cosa-card-body {
  flex: 1;
  min-width: 0;
}

body.lcf-page-cosa-facciamo .lcf-cosa-card strong {
  display: block;
  color: #0093d0;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

body.lcf-page-cosa-facciamo .lcf-cosa-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
}

/* Valore aggiunto */
body.lcf-page-cosa-facciamo .lcf-cosa-card-valore {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 22px 20px;
}

body.lcf-page-cosa-facciamo .lcf-cosa-card-valore .lcf-cosa-icon,
body.lcf-page-cosa-facciamo .lcf-cosa-card-valore img.lcf-cosa-icon,
body.lcf-page-cosa-facciamo .lcf-cosa-valore .et_pb_text img {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
}

body.lcf-page-cosa-facciamo .lcf-cosa-card-valore strong {
  color: #0093d0;
  font-size: 14px;
}

body.lcf-page-cosa-facciamo .lcf-cosa-card-valore p {
  font-size: 13px;
}

body.lcf-page-cosa-facciamo .et_pb_section[style*="background-color:#f8fafc"] {
  padding: 50px 0 !important;
}

/* ===== PAGINA CALENDARIO EVENTI ===== */

/* Coerenza con home e Cosa Facciamo: palette #0f172a, #0093d0, #f8fafc, #64748b */
body.lcf-page-calendario .et_pb_row {
  max-width: 1080px;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Titoli mese (Febbraio 2026, Marzo 2026) come sezione titolo */
body.lcf-page-calendario h2.et_pb_module_header,
body.lcf-page-calendario .et_pb_text h2 {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 700 !important;
  font-size: 22px !important;
  letter-spacing: 0.5px !important;
  color: #0f172a !important;
  margin-bottom: 24px !important;
  padding-bottom: 10px;
  border-bottom: 3px solid #0093d0;
}

/* Link titolo evento nel calendario */
body.lcf-page-calendario .et_pb_text_inner h3 a,
body.lcf-page-calendario .lcf-event-title a,
body.lcf-page-calendario .et_pb_blurb_content h4 a {
  color: #0093d0 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

body.lcf-page-calendario .et_pb_text_inner h3 a:hover,
body.lcf-page-calendario .lcf-event-title a:hover,
body.lcf-page-calendario .et_pb_blurb_content h4 a:hover {
  color: #0f172a !important;
}

/* Link Vedi dettaglio */
body.lcf-page-calendario a[href*="/eventi/"],
body.lcf-page-calendario
  a[href*="eventi"]:not(.et_pb_button):not([class*="share"]) {
  color: #0093d0 !important;
  font-weight: 600;
}

body.lcf-page-calendario a[href*="/eventi/"]:hover,
body.lcf-page-calendario
  a[href*="eventi"]:not(.et_pb_button):not([class*="share"]):hover {
  color: #0f172a !important;
}

/* Meta evento (data, luogo) come lcf-event-meta */
body.lcf-page-calendario .et_pb_text_inner p,
body.lcf-page-calendario .lcf-event-meta {
  color: #64748b;
  font-size: 13px;
}

/* Legenda e filtri: stile coerente */
body.lcf-page-calendario .et_pb_text a[href*="mec-category"] {
  color: #0093d0;
  font-weight: 600;
}

/* Card evento (blurb): bordo ciano come Cosa Facciamo - solo se contiene link evento */
body.lcf-page-calendario .et_pb_blurb:has(a[href*="/eventi/"]) {
  border-left: 4px solid #0093d0;
  padding-left: 16px;
  margin-bottom: 20px;
}

body.lcf-page-calendario .et_pb_blurb:has(a[href*="/eventi/"]):hover {
  border-left-color: #0077a8;
}

/* ===== FOOTER ===== */

/* Link social nel footer */
.lcf-social-link {
  color: #0093d0;
  text-decoration: none;
  margin-right: 15px;
  transition: color 0.2s ease;
}

.lcf-social-link:hover {
  color: #38bdf8;
}

/* ===== FIX FOOTER MEDIA GALLERY ===== */

/* Assicura che il contenuto principale occupi almeno l'altezza della viewport meno header/footer e lo centra */
#main-content.lcf-media-gallery-page {
  min-height: calc(100vh - 420px); /* Valore approssimativo per header + footer */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centra verticalmente il contenuto */
  padding: 60px 0;
}

/* Rimosso flex-grow per permettere il centraggio verticale tramite il parent */
#main-content.lcf-media-gallery-page .lcf-mg-main {
  flex-grow: 0;
}

@media (min-height: 800px) {
  #main-content.lcf-media-gallery-page {
    min-height: calc(100vh - 350px);
  }
}

/* --- TOP BAR (STILE ORIGINALE BLU) --- */
.lcf-top-bar {
    background: #004a99; /* Blu professionale simile all'originale */
    color: #ffffff;
    padding: 5px 0; /* Più sottile */
    font-size: 13px;
    font-family: inherit;
}

.lcf-top-bar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lcf-top-bar a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.lcf-top-bar a:hover {
    color: #e2c08d; /* Colore d'accento simile all'originale (oro/crema) */
}

.lcf-top-bar .et-pb-icon {
    margin-right: 8px;
    font-size: 14px;
    vertical-align: middle;
}

/* Social Links */
.lcf-social-links {
    display: inline-flex;
    gap: 15px;
    margin-right: 25px;
    vertical-align: middle;
}

.lcf-social-links a {
    font-size: 16px;
}

/* Login Button */
.lcf-login-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    padding: 4px 12px;
    border-radius: 3px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    margin-left: 15px;
}

.lcf-login-btn:hover {
    background: #ffffff !important;
    color: #004a99 !important;
}

.lcf-login-btn .et-pb-icon {
    font-size: 12px;
}

/* Responsive */
@media (max-width: 767px) {
    .lcf-top-bar-container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .lcf-top-bar-right {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .lcf-social-links {
        margin-right: 0;
    }
}

/* Bottone Login - Menu */
.menu-item.menu-item-login{
    align-items: center!important;
}
.btn-menu-login {
    display: flex!important;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 9999px;
    background-color: #3f57a1;
    color: #ffffff !important;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.btn-menu-login:hover {
    background-color: #2d3f75;
    color: #ffffff;
}

.btn-menu-login svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
