/*
Theme Name:   Astra Child
Theme URI:    
Description:  Tema figlio per il tema Astra. Utilizza questo tema per personalizzare Astra senza perdere le modifiche durante gli aggiornamenti.
Author:       Francesco Parisi
Author URI:   
Template:     astra
Version:      1.0.0
*/

/* Inizia qui il tuo CSS personalizzato */

/* Nascondi l'icona e il testo predefiniti del Back to Top */
#ast-scroll-top .ast-icon.icon-arrow {
  display: none !important;
}

#ast-scroll-top .screen-reader-text {
  display: none !important;
}

/* Imposta l'immagine personalizzata come sfondo del Back to Top */
#ast-scroll-top {
  background-image: url("../../../favicon/back_to_top.png"); /* Assicurati che il percorso sia corretto */
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(255, 86, 53, 0.6) !important;
  background-size: contain; /* O 'cover' a seconda di come vuoi scalare l'immagine */
  width: 40px; /* Adatta in base alle dimensioni della tua immagine */
  height: 40px; /* Adatta in base alle dimensioni della tua immagine */
  text-indent: -9999px !important; /* Nasconde qualsiasi testo residuo */
  overflow: hidden;
  line-height: 1; /* Evita problemi di altezza della linea */
  padding: 0 !important; /* Rimuovi eventuali padding predefiniti */
  border: none !important; /* Rimuovi eventuali bordi predefiniti */
  border-radius: 5px; /* Opzionale: per angoli arrotondati */
}

#ast-scroll-top:hover {
  opacity: 0.8; /* Opzionale: effetto al passaggio del mouse */
}

.uagb-post__comment {
  display: none !important;
}

.post-type-post .uagb-post__comment {
  display: none !important;
}

.post-type-page .uagb-post__comment {
  display: none !important;
}

.wpcf7-list-item-label {
  color: white;
}

.my-contact-label {
  color: white;
}

.site-title {
  display: none !important;
}

/*
 * Stili per il menu dell'Header Trasparente di Astra
 */

/* Colore base dei link del menu */
.ast-theme-transparent-header .main-header-menu .menu-item a {
  color: #ff3300 !important; /* <-- CAMBIA QUI: Metti il colore che vuoi (es. bianco) */
}

/* Colore del link quando ci passi sopra con il mouse (hover) */
.ast-theme-transparent-header .main-header-menu .menu-item a:hover {
  color: #ff7300 !important; /* <-- CAMBIA QUI: Metti il colore per l'hover (es. giallo AGI) */
}

/* Colore della pagina corrente/attiva nel menu */
.ast-theme-transparent-header .main-header-menu .menu-item.current-menu-item a,
.ast-theme-transparent-header
  .main-header-menu
  .menu-item.current-menu-ancestor
  a {
  color: #d4ac0d !important; /* <-- CAMBIA QUI: Metti il colore per la voce attiva (es. rosso) */
}

/* Sposta il menu di navigazione secondario verso il basso */
#ast-hf-menu-2 {
  padding-top: 160px;
}

/* Imposta il colore dei link all'interno del menu specifico */
#ast-hf-menu-2 .menu-link {
  color: #d4ac0d !important;
  font-weight: bold !important; /* Rende il testo in grassetto */
  font-size: 0.9em !important; /* Imposta la dimensione del carattere. Modifica questo valore se necessario. */
}

.site .site-content #primary .ast-article-single,
.ast-separate-container .site-content #secondary .widget {
  padding: 0 !important; /* Rimuove il padding predefinito */
}

.news-two-columns {
  display: grid;
  grid-template-columns: 1fr 280px; /* testo a sinistra, banner a destra */
  gap: 20px;
  margin-top: 20px;
}

.news-detail-banner img {
  width: 100%;
  height: auto;
  max-width: 280px;
}

.news-single-column {
  margin-top: 20px;
}

.news-single-column img {
  width: 100%;
}

.entry-meta {
  font-size: 14px;
  margin-bottom: 15px;
  color: #666;
}

.entry-meta .entry-author {
  font-weight: bold;
  margin-right: 10px;
}

.db-banner-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-direction: column;
}

.db-banner {
  margin: 0 auto;
  width: 100%;
  max-width: 1200px;
}

.db-banner-dx {
  margin-bottom: 10px;
}

.db-banner img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}

.db-banner-margin-top {
  margin-top: 8px;
}

.uagb-post-grid {
  max-width: 100% !important;
  width: 100% !important;
}

.uagb-post-grid .uagb-post__inner-wrap {
  padding: 0 10px;
}

.spacer1 {
  clear: both;
  height: 12px;
}

.db-entry-title {
  font-weight: bold;
  font-size: 38px;
  margin-bottom: 8px;
}

.db-entry-meta {
  font-size: 14px;
}

.db-entry-author {
  color: #333;
  font-weight: bold;
}

.db-entry-date {
  color: #333;
}

.db-content * {
  font-size: 19px;
  margin-top: 20px;
}

@media (max-width: 768px) {
  .db-content * {
    font-size: 21px;
  }
}

/* Barra */
.share-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem; /* sta bene sotto meta */
}
.share-bar .share-label {
  font-weight: 700;
  margin-right: 0.25rem;
}

/* Bottoni rotondi color brand */
.share-bar .share-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  text-decoration: none;
  transition: transform 0.12s ease, filter 0.12s ease;
  color: #fff; /* icona bianca */
  border: none; /* niente bordi grigi */
}
.share-bar .share-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* Colori brand */
.share-bar .fb {
  background: #1877f2;
}
.share-bar .x {
  background: #000000;
}
.share-bar .li {
  background: #0a66c2;
}
.share-bar .wa {
  background: #25d366;
}
.share-bar .tg {
  background: #26a4e3;
}

/* Instagram: gradiente ufficiale */
.share-bar .ig {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%,
    #fdf497 5%,
    #fd5949 45%,
    #d6249f 60%,
    #285aeb 90%
  );
  color: #fff;
}

/* Dimensione icone FA */
.share-bar i {
  font-size: 16px;
  line-height: 1;
}
.uagb-block-4c5bfabb {
  display: none !important;
}

/* ===== Featured Links (sotto barra rossa, sopra ticker) ===== */
.featured-links {
  max-width: var(--ast-container-width, 1240px);
  margin: 12px auto 12px;
  padding: 0 20px;
  display: flex;
  gap: 0.75rem;
  text-decoration: none;
  flex-wrap: wrap;
  align-items: center;
}

.featured-links .fl {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  text-decoration: none !important;
  font-weight: 800;
  letter-spacing: 0.2px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
  line-height: 1;
}

.featured-links .fl-ico {
  font-weight: 900;
  line-height: 1;
}

/* colori */
.fl-frank {
  background: #ffc107;
  color: #161616;
}
.fl-corvo {
  background: #d7263d;
  color: #fff;
}

/* hover */
.featured-links .fl:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

/* mobile */
@media (max-width: 768px) {
  .featured-links {
    padding: 0 16px;
    gap: 0.5rem;
  }
  .featured-links .fl {
    flex: 1 1 auto;
    justify-content: center;
  }
}

/* Solo nel menu header di Astra */
.main-header-bar-navigation
  .main-header-menu
  > .menu-item.is-pill
  > .menu-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 9999px;
  font-weight: 800;
  letter-spacing: 0.2px;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
  transition: transform 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease;
}

/* Colori brand */
.main-header-bar-navigation .menu-item.is-frank > .menu-link {
  background: #0076ff;
  color: #fff; /* Reverendo Frank */
}
.main-header-bar-navigation .menu-item.is-corvo > .menu-link {
  background: #d7263d;
  color: #fff; /* Corvo Rosso */
}

/* Hover */
.main-header-bar-navigation .menu-item.is-pill > .menu-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.14);
}

/* Mettili più in evidenza spostandoli a sinistra del gruppo (flex-order) */
.main-header-bar-navigation .main-header-menu > .menu-item.is-frank {
  order: -2;
}
.main-header-bar-navigation .main-header-menu > .menu-item.is-corvo {
  order: -1;
}

/* Mobile: pill più larghe e centrati */
@media (max-width: 921px) {
  .main-header-bar-navigation
    .main-header-menu
    > .menu-item.is-pill
    > .menu-link {
    padding: 0.65rem 1.1rem;
    border-radius: 12px;
  }
}
/* Sostituisci gli ID con i tuoi */
.main-header-bar-navigation #menu-item-7520 > .menu-link,
.main-header-bar-navigation #menu-item-7524 > .menu-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 4px 12px;
  border-radius: 18px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
  height: 30px;
  margin-left: 12px;
}

/* Colori (assegna per voce) */
#menu-item-7520 > .menu-link {
  background: #ffc107;
  color: #333 !important;
} /* Frank */
#menu-item-7524 > .menu-link {
  background: #d7263d;
  color: #fff !important;
} /* Corvo */

/* Hover */
#menu-item-7520 > .menu-link:hover,
#menu-item-7524 > .menu-link:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

/* Portali in testa al gruppo menu */
#menu-item-7520 {
  order: -2;
}
#menu-item-7524 {
  order: -1;
}

.menu-item.is-frank > .menu-link::before {
  content: "✦" !;
}
.menu-item.is-corvo > .menu-link::before {
  content: "✒";
}

.wp-image-7083 {
  max-width: 1000px !important;
  width: 500px !important;
}

/* = Frank ===================================================== */
#menu-item-7520 {
  margin-left: 22px;
} /* sposta tutto il blocco per far uscire l’icona a sinistra */
#menu-item-7520 > .menu-link {
  background: #ffc107;
  color: #333 !important;
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: visible;
  padding-left: 30px !important; /* spazio interno per il testo */
  min-height: 44px; /* per centrare verticalmente */
  border-radius: 999px;
  margin-top: 8px;
}
#menu-item-7520 > .menu-link::before {
  content: "";
  width: 46px;
  height: 46px; /* DIMENSIONE ICONA */
  position: absolute;
  left: -28px; /* quanto sporge fuori */
  top: 50%;
  transform: translateY(-50%);
  background: url("https://www.calabriapost.net/banner/frank.png") no-repeat
    center / contain;
  pointer-events: none; /* non blocca i click sul link */
}

/* = Corvo Rosso =============================================== */
#menu-item-7524 {
  margin-left: 22px;
} /* evita che l'icona di Frank lo invada */
#menu-item-7524 > .menu-link {
  background: #d7263d;
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  position: relative;
  overflow: visible;
  padding-left: 30px !important; /* spazio interno per il testo */
  min-height: 44px;
  border-radius: 999px;
  margin-top: 8px;
}
#menu-item-7524 > .menu-link::before {
  content: "";
  width: 43px;
  height: 43px; /* DIMENSIONE ICONA */
  position: absolute;
  left: -28px; /* sbordo a sinistra */
  top: 50%;
  transform: translateY(-50%);
  background: url("https://www.calabriapost.net/banner/corvo.png") no-repeat
    center / contain;
  pointer-events: none;
}

/*------------------*/

.wpbm-clamp {
  max-width: var(--wp--style--global--content-size, 1280px);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  box-sizing: border-box;
}

/* ===== CATEGORIA: reverendo-frank → font “antico” ===== */
.category-reverendo-frank .entry-title,
.category-reverendo-frank .entry-content,
.category-reverendo-frank p,
.category-reverendo-frank,
.category-reverendo-frank h1 {
  font-family: "Garamond", "Palatino Linotype", "Book Antiqua",
    "Times New Roman", serif !important;
  letter-spacing: 0.02em !important;
}

/* ===== CATEGORIA: corvo-rosso → font moderno + immagine sopra al testo ===== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap");

.category-corvo-rosso .entry-title,
.category-corvo-rosso .entry-content {
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif !important;
}

/* Immagine fissa sopra al contenuto del post, larga 300px */
.category-corvo-rosso .entry-content::before {
  content: url("https://esempio.it/PERCORSO/URL-DELLA-FOTO.jpg") !important;
  display: block;
  width: 300px; /* larghezza richiesta */
  height: auto; /* mantiene le proporzioni dell'immagine */
  margin: 0 auto 1rem; /* centrata, con spazio sotto */
}

/* Contenitore bottoni mobile */
.rubriche-buttons-mobile {
  display: none !important;
  width: 100%;
  max-width: 1200px;
  margin: 10px auto;
  display: flex;
  gap: 10px;
  font-size: 13px;
  justify-content: center;
}

/* Mobile */
@media (max-width: 768px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .news-two-columns {
    grid-template-columns: 1fr;
  }
  .news-detail-banner {
    margin-top: 20px;
  }

  .site-footer {
    font-size: 19px !important;
    line-height: 1.3;
  }

  .uagb-post__title {
    font-size: 22px !important;
    line-height: 1.3;
  }

  /* Testo estratto */
  .uagb-post__text p {
    font-size: 19px !important;
    line-height: 1.5;
  }

  .uagb-post__date,
  .db-entry-meta,
  .post-category-top {
    font-size: 17px !important;
    line-height: 1.5;
  }

  .rubriche-buttons-mobile a.agi-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-radius: 6px;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
  }

  .rubriche-buttons-mobile a.agi-btn img {
    height: 30px;
    width: auto;
    border-radius: 4px;
  }

  .agi-btn-yellow {
    background: #ffc107;
    color: #161616 !important;
  }

  .agi-btn-red {
    background: #c00;
    color: #fff;
  }

  .rubriche-buttons-mobile {
    display: flex !important;
  }
}

.ast-mobile-menu-trigger-fill {
  width: 47px !important;
  height: 45px !important;
}

.ast-mobile-svg {
  width: 25px !important;
  height: 25px !important;
}

/*
.site-header,
.site-branding,
.header-inner {
  min-height: 90px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.single .site-header,
.single-post .site-header {
  min-height: 90px;
  padding-top: 12px;
  padding-bottom: 12px;
}
*/

.single #masthead .ast-container,
.single-post #masthead .ast-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

.single #masthead,
.single-post #masthead {
  width: 100%;
}

@media (max-width: 921px) {
  #masthead {
    pointer-events: none;
  }
  #masthead * {
    pointer-events: auto;
  }
  .site-header-primary-section-right {
    height: 10px;
  }
  /*
  .ast-builder-grid-row {
    border: 2px solid red;
    height: 10px;
  }
*/
  .ast-primary-header-bar {
    pointer-events: none;
    height: 10px !important;
  }
  .ast-primary-header {
    pointer-events: none;
    border: 2px solid green;
    height: 10px !important;
    overflow: hidden !important;
  }

  .ast-primary-header-bar,
  .ast-primary-header,
  .main-header-bar,
  .site-primary-header-wrap,
  .site-header-focus-item,
  .ast-builder-grid-row-layout-default,
  .ast-builder-grid-row-tablet-layout-default,
  .ast-builder-grid-row-mobile-layout-default {
    pointer-events: none !important;
    height: 10px !important;
  }

  .ast-button-wrap {
    margin-top: 20px;
  }

  .ast-builder-grid-row {
    height: 10px !important;
  }

  .ast-primary-header-bar {
    height: 10px;
  }

  .ast-main-header-wrap,
  .main-header-bar-wrap {
    height: 10px;
  }
}
