/**
 * Theme Name: Blocksy Child
 * Description: Blocksy Child theme
 * Author: Creative Themes
 * Template: blocksy
 * Text Domain: blocksy
 */

/* Menu utente corsi / Area riservata */
.aic-area-riservata-login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    line-height: 1;
}

.aic-area-riservata-login-btn i {
    color: #e97817;
}

.aic-utente-corsi-box {
    position: relative;
    display: inline-block;
    z-index: 9999;
    font-family: inherit;
}

.aic-utente-corsi-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.aic-utente-avatar-lettera {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d9a93b;
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.aic-utente-nome {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    white-space: nowrap;
}

.aic-utente-freccia {
    font-size: 12px;
    color: #ffffff;
    opacity: 0.8;
}

.aic-utente-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 220px;
    background: #071c35;
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: all 0.18s ease;
    z-index: 99999;
}

.aic-utente-corsi-box:hover .aic-utente-dropdown,
.aic-utente-corsi-box.is-open .aic-utente-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.aic-utente-dropdown a,
.aic-utente-dropdown .aic-utente-empty {
    display: block;
    padding: 11px 16px;
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.3;
    white-space: nowrap;
}

.aic-utente-dropdown a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #f59a23;
}

.aic-utente-empty {
    opacity: 0.6;
    cursor: default;
}

@media (max-width: 767px) {
    .aic-utente-dropdown {
        right: auto;
        left: 0;
    }

    .aic-utente-nome {
        font-size: 13px;
    }
}
/* Dine Menu utente corsi / Area riservata */

/* Calendario live corso */
.calendario-live-box {
    width: 100%;
}

.calendario-live-box h3 {
    margin: 0 0 28px;
    font-family: Lato, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #111110;
    text-align: center;
    letter-spacing: 1.2px;
}

.calendario-live-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.calendario-live-col h4 {
    margin: 0 0 16px;
    padding-bottom: 10px;
    width: 70%;
    border-bottom: 2px solid #E07820;
    font-family: Lato, sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #E07820;
    letter-spacing: 1.2px;
}

.calendario-live-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.calendario-live-col li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    font-family: Lato, sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #111110;
}

.calendario-live-col li.data-passata span:last-child {
    text-decoration: line-through;
    opacity: .45;
}

.cal-icon {
    font-size: 13px;
    line-height: 1;
    color: #111110;
}

@media (max-width: 767px) {
    .calendario-live-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .calendario-live-col h4 {
        width: 100%;
    }
}
/* Fine Calendario live corso */

/* Regole per woocommerce carrello e checkout*/
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: transparent !important;
    border: 2px solid #E07820 !important;
    color: #E07820 !important;
}

/* Testo interno */
.woocommerce-message *,
.woocommerce-info *,
.woocommerce-error * {
    color: #E07820 !important;
}

/* Link (tipo "Visualizza carrello") */
.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
    color: #E07820 !important;
    text-decoration: underline;
}

/* Icona a sinistra */
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    color: #E07820 !important;
}
.woocommerce ul.woocommerce-error {
    border-color: #E07820 !important;
}

.woocommerce ul.woocommerce-error::before {
    color: #E07820 !important;
}

.woocommerce ul.woocommerce-error li {
    color: #E07820 !important;
}

.woocommerce div.product p.price {
    margin-bottom: 0 !important;
}

.single-product .ppc-button-wrapper,
.single-product .paypal-buttons,
.single-product .paypal-button-container {
    display: none !important;
}

/* Nasconde PayPal SOLO nel carrello */
.woocommerce-cart .wc-proceed-to-checkout iframe,
.woocommerce-cart .wc-proceed-to-checkout .paypal-button,
.woocommerce-cart .wc-proceed-to-checkout .ppc-button-wrapper,
.woocommerce-cart .wc-proceed-to-checkout .paypal-buttons {
    display: none !important;
}

/* Bottone "Continua con gli acquisti" */
.woocommerce-cart .woocommerce-message a.button.wc-forward {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
}

/* Hover */
.woocommerce-cart .woocommerce-message a.button.wc-forward:hover {
    background-color: transparent !important;
    color: #ffffff !important;
}

/* Bottone "Annulla?" */
.woocommerce-cart .woocommerce-message a.restore-item {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none !important;
    display: inline-block;
}

/* Hover */
.woocommerce-cart .woocommerce-message a.restore-item:hover {
    background-color: transparent !important;
    color: #ffffff !important;
}

/* Margin top label checkout campi */
.woocommerce-checkout .woocommerce-billing-fields .form-row label {
    margin-bottom: 2px !important;
}

/* Margin bottom label checkout campi */
.woocommerce-checkout .woocommerce-billing-fields .form-row {
    margin-bottom: 12px !important;
}

/* Sfondo bianco contenitore carta checkout (solo pagina pagamento) */
body.page-id-252.woocommerce-checkout 
.ppc-button-wrapper,
body.page-id-252.woocommerce-checkout 
.ppcp-card-form {
    background: #ffffff !important;
    border-radius: 6px !important;
}

/*Stile pulsanti allegati pdf area riservata*/
.acf-pdf-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.acf-pdf-btn {
    display: block;
    width: 100%;
    padding: 12px 24px;
    border: 1px solid #111110;
    border-radius: 9px;
    background: #fff;
    color: #111110;
    font-family: Montserrat, sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none !important;
    line-height: 1.2;
}

.acf-pdf-btn:hover,
.acf-pdf-btn:focus {
    background: #fff;
    color: #111110;
    border-color: #111110;
    text-decoration: none !important;
}

/*Nascondo login woocommerce da carrello*/
.woocommerce-order-received .woocommerce-form-login-toggle,
.woocommerce-order-received .woocommerce-form-login {
    display: none !important;
}
/* Fine Regole per woocommerce carrello e checkout*/

/*Menu shortcode mobile + tablet per ciao...*/
/* ================================
   AIC MOBILE ACCOUNT - HEADER
================================ */

/* Link Login quando utente NON è loggato */
.aic-mobile-account-login-link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: #ffffff !important;
  cursor: pointer;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 42px;
  line-height: 1;
  text-decoration: none !important;
}

.aic-mobile-account-login-link:hover,
.aic-mobile-account-login-link:focus {
  color: #ffffff !important;
  text-decoration: none !important;
}

.aic-mobile-account-login-link i {
  color: #f28c28 !important;
  font-size: 20px;
  line-height: 1;
}

.aic-mobile-account-login-link span {
  color: #ffffff !important;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
}


/* Bottone avatar quando utente È loggato */
.aic-mobile-account-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.aic-mobile-account-trigger:hover,
.aic-mobile-account-trigger:focus {
  background: transparent;
  outline: none;
}

.aic-mobile-account-avatar {
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 999px;
  background: #d9a441;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  overflow: hidden;
}

.aic-mobile-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


/* ================================
   AIC MOBILE ACCOUNT - POPUP
================================ */

.aic-mobile-account-popup {
  color: #ffffff;
}

.aic-mobile-account-popup h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
}

.aic-mobile-account-popup p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.5;
}


/* Popup fallback non loggato */
.aic-mobile-account-popup-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(242, 140, 40, 0.14);
  color: #f28c28;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 18px;
}

.aic-mobile-account-popup-btn {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  background: #f28c28;
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 12px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 700;
}

.aic-mobile-account-popup-btn:hover,
.aic-mobile-account-popup-btn:focus {
  color: #ffffff !important;
  background: #f28c28;
  text-decoration: none !important;
}


/* Header utente nel popup */
.aic-mobile-account-popup-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.aic-mobile-account-popup-avatar {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 999px;
  background: #d9a441;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  overflow: hidden;
}

.aic-mobile-account-popup-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aic-mobile-account-popup-hi {
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
}

.aic-mobile-account-popup-subtitle {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  line-height: 1.2;
  margin-top: 3px;
}


/* Link menu popup */
.aic-mobile-account-popup-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.aic-mobile-account-popup-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
}

.aic-mobile-account-popup-links a:hover,
.aic-mobile-account-popup-links a:focus {
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff !important;
  text-decoration: none !important;
}

.aic-mobile-account-popup-links a i {
  color: #f28c28;
  width: 18px;
  min-width: 18px;
  text-align: center;
  font-size: 14px;
}

.aic-mobile-account-popup-links a span {
  flex: 1;
}

.aic-mobile-account-popup-empty {
  padding: 13px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}


/* ================================
   SOLO MOBILE / TABLET
================================ */

@media (min-width: 1025px) {
  .aic-mobile-account-login-link,
  .aic-mobile-account-trigger {
    display: none !important;
  }
}