/*
Theme Name: Child Theme
Theme URI:  https://default.web-pages.it
Author:     Massimiliano Miotto
Author URI: https://www.massimilianomiotto.it
Template:   enfold
Version:    1.0
License:    GNU General Public License v2 or later
*/

/* =========================================================
   ENFOLD (Avia) - Upcoming Events (3 colonne + icona + CTA)
   ========================================================= */

#top .av-upcoming-events{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(380px, 1fr)) !important; /* colonne più larghe */
  gap: 32px !important;
}

/* La "card" è l'anchor */
#top .av-upcoming-events > a.av-upcoming-event-entry{
  position: relative !important;
  display: block !important;

  background: rgba(255,255,255,.10) !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  border-radius: 16px !important;

  padding: 28px 22px 96px 86px !important; /* spazio icona + spazio CTA */
  text-decoration: none !important;

  transition: transform .25s ease, box-shadow .25s ease;
}

/* Hover card (fluido in entrata/uscita) */
#top .av-upcoming-events > a.av-upcoming-event-entry:hover{
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

/* Icona calendario a sinistra */
#top .av-upcoming-events > a.av-upcoming-event-entry::before{
  content: "📅" !important;
  position: absolute !important;
  left: 22px !important;
  top: 26px !important;
  font-size: 30px !important;
  line-height: 1 !important;
  opacity: .75 !important;
}

/* Titolo evento */
#top .av-upcoming-events h4.av-upcoming-event-title{
  font-size: 24px !important;
  font-weight: 900 !important;
  line-height: 1.12 !important;
  margin: 0 0 14px 0 !important;
}

/* Data (home: niente ore, gestite via PHP/CSS) */
#top .av-upcoming-events .tribe-event-date-start{
  font-size: 16px !important;
  font-weight: 900 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}

/* Spaziatura tra schedule e venue */
#top .av-upcoming-events .av-upcoming-event-schedule{
  display: inline-block !important;
  margin-bottom: 10px !important;
}

/* Venue */
#top .av-upcoming-events .av-upcoming-event-venue{
  display: block !important;
  font-size: 14px !important;
  opacity: .80 !important;
}

/* Nasconde l'orario evento nel blocco home */
#top .av-upcoming-events .tribe-event-time{
  display: none !important;
}

/* CTA: compare solo in hover */
#top .av-upcoming-events > a.av-upcoming-event-entry::after{
  content: "DETTAGLI EVENTO  →";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;

  display: block;
  text-align: center;

  padding: 14px 18px;
  border-radius: 14px;

  border: 3px solid #E35899;
  background: #FBE1EC;   /* rosa più chiaro */
  color: #E35899;

  font-size: 14px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;

  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;

  transition:
    opacity .25s ease,
    transform .25s ease,
    background .25s ease;
}

#top .av-upcoming-events > a.av-upcoming-event-entry:hover::after{
  opacity: 1;
  transform: translateY(0);
  background: #F6CFE0; /* hover */
}

/* Responsive */
@media (max-width: 989px){
  #top .av-upcoming-events{
    grid-template-columns: 1fr !important;
  }
}

/* Nasconde SOLO il menu nel socket, lasciando social e copyright */
#socket .sub_menu_socket,
#socket nav,
#socket .menu{
  display: none !important;
}




