/* 
Theme Name: Decantico Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Decantico Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: decantico-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
=================
=================
GENERAL
=================
=================
 */

.accent {
  color: var(--e-global-color-primary) !important;
}

/*
=================
=================
HEADER
=================
=================
 */

.header-link {
  border-bottom: 1px solid #fff;
}

.elementor-widget-ld-login .learndash-wrapper {
  display: flex;
}

.elementor-widget-ld-login .learndash-wrapper a {
  padding: 1em 1.5em !important;
}

/* Cart icon */
.elementor-menu-cart__wrapper .elementor-button:focus {
  background-color: var(--e-global-color-da29bfd);
  color: var(--e-global-color-secondary);
}

/* Logo */
@media screen and (max-width: 1400px) and (min-width: 1024px) {
  #logo {
    width: 100%;
    margin-bottom: 10px;
  }
}

/*
=================
=================
LOGIN
=================
=================
 */

.learndash-wrapper-login-modal .ld-modal.ld-login-modal {
  max-width: 550px !important;
}

.ld-login-modal-branding img {
  max-width: 100% !important;
  width: 250px !important;
}

/*
=================
=================
HOME
=================
=================
 */

@media (min-width: 1024px) {
  .home__academy {
    max-width: 530px;
  }

  .home__mentoring {
    max-width: 490px;
  }

  .home__docente {
    max-width: 380px;
  }
}

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

#iscrizione-newsletter form .elementor-form-fields-wrapper {
  display: grid !important;
  grid-template-columns: 1fr minmax(180px, 30%);
}

#iscrizione-newsletter .elementor-field-group-email {
  grid-column: 1/-1;
  grid-row: 1;
}

#iscrizione-newsletter .elementor-field-type-submit {
  grid-column: 2/-1;
  grid-row: 1;
}

#iscrizione-newsletter .elementor-field-group-privacypolicy {
  order: 1;
  grid-column: span 2;
}

/*
=================
=================
BLOG
=================
=================
 */

#blog__loop .elementor-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
}

#blog__loop .elementor-pagination .page-numbers {
  background-color: #fff;
  height: 35px;
  width: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 40px;
}

#blog__loop .elementor-pagination .page-numbers.current,
#blog__loop .elementor-pagination .page-numbers:hover {
  background-color: var(--e-global-color-primary);
}

/*
=================
=================
FAQ
=================
=================
 */

.faq-link {
  font-weight: 700;
  text-decoration: underline !important;
}

.faq-list {
  padding-inline-start: 15px;
}

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

.contatti-titolo {
  max-width: 640px;
}

/*
=================
=================
WOOCOMMERCE - ACCOUNT
=================
=================
*/

.woocommerce .woocommerce-MyAccount-navigation-link--downloads {
  display: none !important;
}

/* Nav */
.woocommerce .woocommerce-MyAccount-navigation {
  border: 1px solid #d5d8dc;
  padding: 0 25px;
}

.woocommerce .woocommerce-table--order-details {
  font-family: "Plus Jakarta Sans", sans-serif;
}

.woocommerce .woocommerce-MyAccount-content .woocommerce-orders-table__row a,
.woocommerce .woocommerce-MyAccount-content .product-name a {
  color: var(--e-global-color-primary) !important;
}

.woocommerce
  .woocommerce-MyAccount-content
  .woocommerce-orders-table__row
  a.button,
.woocommerce
  .woocommerce-MyAccount-content
  .woocommerce-table--order-details
  a.button {
  color: var(--e-global-color-primary) !important;
  border: 1px solid var(--e-global-color-primary) !important;
  border-radius: 0 !important;
}

/* Message */

.woocommerce-notices-wrapper {
  width: 1240px !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
  background-color: #ffffff;
  color: var(--e-global-color-secondary);
  border-top: none !important;
  border: 1px solid var(--e-global-color-primary) !important;
  padding: 20px 40px !important;
}

.woocommerce .woocommerce-info::before {
  display: none !important;
}

.woocommerce .woocommerce-error li {
  margin-left: 10px !important;
}

.woocommerce-cart .woocommerce-message {
  display: none;
}

/* Address title */
.woocommerce .woocommerce-Address-title {
  font-family: "Plus Jakarta Sans", Sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 28px;
}

/*
=================
=================
WOOCOMMERCE - CHECKOUT
=================
=================
*/

.woocommerce-billing-fields .select2-selection {
  height: 59px !important;
}

.woocommerce-checkout
  .select2-container--default
  .select2-results__option--highlighted[aria-selected],
.woocommerce-checkout
  .select2-container--default
  .select2-results__option--highlighted[data-selected] {
  background-color: var(--e-global-color-primary) !important;
}

/*
=================
=================
CORSO
=================
=================
 */

.corso__sidebar {
  position: sticky !important;
  top: 145px;
}

/* LearnDash Custom */
.learndash-wrapper .ld-tabs .ld-tabs-navigation:after,
.learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab:after {
  height: 1px;
}

.learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab .ld-icon {
  font-size: 1em;
}

.learndash-wrapper .ld-tabs .ld-tabs-navigation .ld-tab {
  color: var(--e-global-color-text);
}

/* Contenuto del Corso */
.single-sfwd-courses .ld-item-list-actions .ld-expand-button {
  display: none;
}

/* Espandi Lezione */
#lista-lezioni .learndash-wrapper .ld-item-details .ld-expand-button .ld-text {
  color: var(--e-global-color-primary) !important;
}

/* Button - Inizia questo Corso */
#inizia-corso-btn .learndash-wrapper a.btn-join {
  background-color: var(--e-global-color-primary) !important;
  font-family: "Plus Jakarta Sans", Sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: 0.5px;
  color: var(--e-global-color-da29bfd);
  border-style: none;
  border-radius: 40px 40px 40px 40px;
  padding: 12px 60px 12px 60px;
}

/* Lista Lezioni */
.learndash-wrapper .ld-item-list .ld-item-list-item {
  border-radius: 0;
  border: none;
  border-bottom: 1px solid #e2e7ed;
  margin: 0;
}

.learndash-wrapper .ld-item-list-items {
  border: 1px solid #e2e7ed;
  padding: 0 25px;
  background-color: #fff;
}

.learndash-wrapper .ld-item-list .ld-item-list-item .ld-item-list-item-preview {
  padding: 15px 0;
}

.learndash-wrapper .ld-item-details {
  display: none;
}

/*
=================
=================
LEZIONE
=================
=================
 */

/* Header - Dropdown */
.learndash-wrapper
  .ld-focus
  .ld-focus-header
  .ld-user-menu
  .ld-user-menu-items
  a:hover {
  opacity: 1 !important;
  background-color: #e35d77 !important;
}

.learndash-wrapper .ld-focus .ld-focus-main .ld-focus-content {
  padding: 0;
}

.learndash-wrapper .ld-focus .ld-focus-main .ld-focus-content h1 {
  padding: 100px 40px;
  color: #ffffff;
  font-size: 50px;

  background-color: #63103d;
  background-image: url(https://gorilla3.sviluppo.host/wp-content/uploads/2025/01/decantico-subheader-background.jpg);
  background-position: center left;
  background-repeat: no-repeat;
  background-size: cover;
}

.single-sfwd-lessons
  .learndash-wrapper
  .ld-focus
  .ld-focus-main
  .ld-focus-content
  .ld-lesson-status,
.single-sfwd-lessons .learndash-wrapper .ld-tabs .ld-tabs-navigation,
.single-sfwd-lessons .learndash-wrapper .ld-tabs-content p,
.single-sfwd-lessons .learndash-wrapper .ld-tabs-content .wp-block-buttons,
.single-sfwd-lessons .learndash-wrapper .ld-lesson-topic-list {
  padding: 0 40px !important;
  background: #fff;
}

.single-sfwd-lessons .learndash-wrapper .ld-tabs .ld-tabs-navigation:after {
  margin: 0 40px;
}

.single-sfwd-lessons .learndash-wrapper .ld-breadcrumbs {
  border: 1px solid #dc3555 !important;
  border-radius: 0;
  background: #fff;
}

.single-sfwd-lessons .learndash-wrapper .ld-breadcrumbs,
.single-sfwd-lessons .learndash-wrapper .ld-breadcrumbs a {
  font-size: 15px !important;
  font-weight: 500 !important;
}

.single-sfwd-lessons .learndash-wrapper .ld-status {
  margin-bottom: 0;
}

.single-sfwd-lessons .learndash-wrapper .ld-video {
  margin-bottom: 40px;
}

/* Button - Fine lezione */
.single-sfwd-lessons .wp-block-button__link {
  background-color: var(--e-global-color-primary) !important;
  font-family: "Plus Jakarta Sans", Sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 26px;
  letter-spacing: 0.5px;
  color: var(--e-global-color-da29bfd) !important;
  border-style: none;
  border-radius: 40px 40px 40px 40px;
  padding: 12px 60px 12px 60px;
}

.single-sfwd-lessons .wp-block-button__link:hover,
.single-sfwd-lessons .wp-block-button__link:active {
  background-color: #e35d77 !important;
}

/* Buttons - Footer lezioni */
.learndash-wrapper:not(.ld-registration__outer-wrapper)
  .ld-content-actions
  .ld-content-action {
  flex-basis: fit-content;
}

/* Buttons - Segna come completato */
.learndash-wrapper:not(.ld-registration__outer-wrapper)
  .learndash_mark_complete_button {
  padding: 12px 40px !important;
}

/* Button - Torna indietro */
.learndash-wrapper .learndash-link-previous-incomplete span {
  transform: translateY(-50%) !important;
}

/* Table */
.single-sfwd-lessons .learndash-wrapper .ld-table-list {
  border-radius: 0 !important;
}

.single-sfwd-lessons .learndash-wrapper .ld-table-list .ld-table-list-items {
  border: 1px solid #e2e7ed;
}

.single-sfwd-lessons .learndash-wrapper .ld-table-list.ld-no-pagination {
  border-bottom: 1px solid #e2e7ed;
}

.single-sfwd-lessons
  .learndash-wrapper:not(.ld-registration__outer-wrapper)
  .ld-content-actions {
  border-top: 1px solid #e2e7ed;
}

/* Tablet */
@media (max-width: 768px) {
  .learndash-wrapper .ld-focus .ld-focus-main .ld-focus-content h1 {
    padding: 60px 40px;
    font-size: 40px;
  }

  /* Lezione Precedente/Successiva */
  .single-sfwd-lessons
    .learndash-wrapper
    .ld-focus
    .ld-focus-header
    .ld-content-actions
    .ld-content-action {
    padding: 0;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .single-sfwd-lessons
    .learndash-wrapper
    .ld-focus
    .ld-focus-main
    .ld-focus-content,
  .single-sfwd-lessons
    .learndash-wrapper
    .ld-focus.ld-focus-sidebar-collapsed
    .ld-focus-main
    .ld-focus-content {
    margin: 0;
    padding: 0;
  }

  .single-sfwd-lessons
    .learndash-wrapper
    .ld-focus
    .ld-focus-main
    .ld-focus-content
    .ld-lesson-status,
  .single-sfwd-lessons .learndash-wrapper .ld-tabs .ld-tabs-navigation,
  .single-sfwd-lessons .learndash-wrapper .ld-lesson-topic-list {
    padding: 0 25px !important;
  }

  .single-sfwd-lessons
    .learndash-wrapper
    .ld-focus
    .ld-focus-main
    .ld-focus-content
    h1 {
    padding: 40px 25px;
    font-size: 30px;
  }

  .single-sfwd-lessons .learndash-wrapper .ld-content-actions {
    display: none;
  }

  .single-sfwd-courses
    .learndash-wrapper
    .ld-item-list
    .ld-item-list-item
    .ld-item-title {
    margin-bottom: 20px !important;
  }
}

/*
=================
=================
PROFILO
=================
=================
 */

.learndash-wrapper .ld-profile-summary .ld-profile-stat-certificates {
  display: none !important;
}

.learndash-wrapper .ld-profile-summary .ld-profile-stat-completed {
  border-right: 0 !important;
}
