/* ==========================================================
   CUSTOM.CSS – ETESIAMIELI.IT
   Versione definitiva – Novembre 2025
   ========================================================== */

/* ==============================
   HEADER E MENU
   ============================== */
.burger-icon > span {
  background: #fff !important;
}

#sp-header {
  height: auto !important;
  margin: 0;
  padding: 30px !important;
}

#sp-header .container {
  border-color: #fff !important;
  padding-bottom: 30px;
}

/* ==============================
   LOGIN / ACCOUNT / MESSAGGI
   ============================== */
.mod-login__submit.form-group .btn-secondary {
  display: none !important;
}

#system-message-container joomla-alert {
  font-size: 20px;
}

/* ==============================
   HIKASHOP - CARRELLO E CHECKOUT
   ============================== */
span.hikashop_small_cart_total_title {
  font-size: 0;
  margin-top: 0;
  display: block;
  margin-left: 20px;
}

div.hikashop_cart_dropdown_content {
  right: 0;
  width: 200px;
  background: #4b4b4b;
  font-size: 14px;
  border: none !important;
}

div.hikashop_cart_dropdown_content thead {
  display: none;
}

div.hikashop_cart_dropdown_content tfoot {
  background: #f29100;
  padding: 3px;
  color: #fff;
  margin-bottom: 10px !important;
}

div.hikashop_cart_dropdown_content tbody td,
div.hikashop_cart_dropdown_content tbody,
div.hikashop_cart_dropdown_content tbody tr,
div.hikashop_cart_dropdown_content tfoot {
  display: block;
  width: 100%;
}

#hikashop_cart_module div.hikashop_cart_dropdown_content td.hikashop_cart_module_product_image.hikashop_cart_value {
  display: none;
}

div.hikashop_cart_dropdown_content tbody td.hikashop_cart_module_product_name_value.hikashop_cart_value {
  border-top: 1px solid #ccc;
  padding-top: 10px;
  margin-top: 10px;
}

div.hikashop_cart_dropdown_content tbody tr:first-child td.hikashop_cart_module_product_name_value.hikashop_cart_value {
  border: none;
  padding-top: 0;
  margin-top: 0;
}

a.hikabtn.hikashop_cart_proceed_to_checkout {
  background: #bb7103;
  color: #fff;
}

/* Quantità prodotti */
.hikashop_product_quantity_div .hikashop_product_quantity_change_div_plus_default,
.hikashop_product_quantity_div .hikashop_product_quantity_change_div_minus_default {
  display: inline-block;
  margin-top: 7px;
}

a.hikashop_product_quantity_field_change_plus.hikashop_product_quantity_field_change.hikabtn,
a.hikashop_product_quantity_field_change_minus.hikashop_product_quantity_field_change.hikabtn {
  padding: 0;
  width: 25px !important;
  height: 25px !important;
  margin: 0 0 0 5px !important;
  line-height: 21px;
}

/* Checkout – testi bianchi */
form#hikashop_checkout_form label,
form#hikashop_checkout_form span,
form#hikashop_checkout_form p,
form#hikashop_checkout_form th,
form#hikashop_checkout_form td {
  color: #fff;
}

/* ==============================
   PRODOTTI
   ============================== */
span.hikashop_product_msrp_price.hikashop_product_price_full {
  font-size: 25px;
  font-weight: bold;
  margin-bottom: 10px;
  display: block;
}

div#hikashop_product_right_part {
  text-align: right;
}

div#hikashop_product_right_part button#hikashop_product_quantity_field_1_add_to_cart_button {
  margin: 20px 0;
  background: #bb7103;
  color: #fff;
}

div#hikashop_product_right_part div#hikashop_product_description_main {
  text-align: left;
  padding-left: 10px;
}

div#hikashop_product_right_part div#hikashop_product_description_main ul {
  padding-left: 20px;
}

/* ==============================
   LAYOUT GENERALE
   ============================== */
section#sp-main-body aside#sp-right,
section#sp-main-body aside#sp-left {
  width: 19%;
  display: inline-block;
}

section#sp-main-body main#sp-component.col-lg-8 {
  width: 80%;
  display: inline-block;
}

div#sp-component.col-lg-8.col-xl-12 {
  width: 66.6666667%;
}

/* ==============================
   MEDIA QUERIES
   ============================== */
@media (max-width: 1550px) {
  .sp-megamenu-parent > li > a,
  .sp-megamenu-parent > li > span {
    padding: 0 20px !important;
  }
}

@media (max-width: 1450px) {
  .sp-megamenu-parent > li > a,
  .sp-megamenu-parent > li > span,
  .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a {
    font-size: 18px !important;
  }

  .sp-megamenu-parent > li > a,
  .sp-megamenu-parent > li > span {
    padding: 0 15px !important;
  }
}

@media (max-width: 1399px) {
  .container,
  .container-lg,
  .container-md,
  .container-sm,
  .container-xl {
    max-width: 100% !important;
  }

  header#sp-header .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0;
    padding-right: 0;
  }

  div#sp-menu {
    margin-right: -20px;
  }
}

@media (max-width: 1300px) {
  section#sp-main-body main#sp-component.col-lg-8,
  section#sp-main-body aside#sp-right.col-lg-4 {
    width: 100% !important;
  }
}

@media (max-width: 1199px) {
  .sp-megamenu-parent > li > a,
  .sp-megamenu-parent > li > span,
  .sp-megamenu-parent .sp-dropdown li.sp-menu-item > a {
    font-size: 16px !important;
  }

  .sp-megamenu-parent > li > a,
  .sp-megamenu-parent > li > span {
    padding: 0 13px !important;
  }

  .view-article .sphere-article-details .article-details-title-wrap h1 {
    font-size: 80px !important;
    line-height: 1.1 !important;
    width: 90% !important;
  }

  .sp-page-title .sp-page-title-heading {
    font-size: 90px !important;
  }
}

@media (max-width: 1100px) {
  section#sp-main-body main#sp-component,
  section#sp-main-body aside#sp-right,
  section#sp-main-body aside#sp-left {
    width: 100% !important;
    display: inline-block;
    padding: 0 20px;
  }

  div#sp-logo {
    margin: 0 auto;
  }

  div#sp-menu {
    flex: none !important;
    text-align: center;
    margin: 0 auto !important;
  }
}

/* === LAYOUT MOBILE OTTIMIZZATO === */
@media (max-width: 991px) {
  .view-article .sphere-article-details .article-details-title-wrap h1 {
    font-size: 40px !important;
    line-height: 1.1 !important;
    width: 100% !important;
    margin-bottom: 0 !important;
  }

  a.link-login {
    display: none !important;
  }

  .sp-page-title .sp-page-title-heading {
    font-size: 70px !important;
  }

  .container,
  .container-fluid,
  #sp-main-body,
  #sp-component,
  main#sp-component,
  section#sp-main-body main#sp-component.col-lg-8,
  section#sp-main-body aside#sp-right,
  section#sp-main-body aside#sp-left,
  #hikashop_product_right_part,
  #hikashop_product_left_part,
  .hikashop_cart_dropdown_content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px !important;
    box-sizing: border-box;
    display: block !important;
  }

  body, html {
    overflow-x: hidden;
  }

  img, iframe, table {
    max-width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 600px) {
  .sp-page-title .sp-page-title-heading {
    font-size: 45px !important;
  }

  #sp-main-body {
    padding: 30px 0;
  }
}

/* ==========================================================
   STILI FORM, MODULI E TITOLI
   ========================================================== */
.form-label,
label {
  font-weight: 300;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0.15px;
  margin-bottom: 6px;
  color: #fff;
}

legend {
  font-weight: 400;
  font-size: 24px;
  color: #f29100;
  margin-bottom: 10px;
  padding-left: 10px;
}

.form-select,
select,
input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  display: block;
  width: 100%;
  font-size: 16px;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 12px;
  box-sizing: border-box;
}

/* Pulsanti HikaShop */
.hikacart,
.hikabtn,
.hika_j2 .btn {
  display: inline-block;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  color: #000;
  background-color: #f29100;
  border: 1px solid #f29100;
  border-radius: 6px;
  padding: 8px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.hikacart:hover,
.hikabtn:hover,
.hika_j2 .btn:hover {
  background-color: #bb7103;
  color: #fff;
  border-color: #bb7103;
}

/* Titoli moduli laterali */
#sp-left .sp-module .sp-module-title,
#sp-right .sp-module .sp-module-title {
  margin: 0 0 20px;
  padding-top: 20px;
  padding-bottom: 5px;
  font-size: 20px;
  font-weight: 700;
  border-bottom: 1px solid #f3f3f3;
  color: #f29100;
}

#sp-left .sp-module ul > li > a,
#sp-right .sp-module ul > li > a {
  display: block;
  padding: 4px 0;
  line-height: 1.6;
  color: #fff;
  transition: color 0.3s;
}

#sp-left .sp-module ul > li > a:hover,
#sp-right .sp-module ul > li > a:hover {
  color: #f29100;
}

.view-article .sphere-article-details .article-details-title-wrap h1,
.sp-page-title .sp-page-title-heading,
.view-category .article-list .article .article-body .article-header h2 a {
  color: #ffffff;
}

p {
  font-size: 18px;
  line-height: 1.6;
  color: #fff;
}

/* Miglior accessibilità */
a, button, .hikabtn, .hika_j2 .btn {
  transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #f29100;
  outline-offset: 2px;
}

/* ======================================
   FIX COLORI TESTO – CHECKOUT HIKASHOP
   ====================================== */
body.view-checkout,
.hikashop_checkout,
.hikashop_checkout_cart,
.hikashop_checkout_login,
.hikashop_checkout_address,
.hikashop_checkout_payment,
.hikashop_checkout_shipping,
.hikashop_checkout_coupon,
.hikashop_checkout_button,
#hikashop_checkout_form {
  color: #fff !important;
}

.hikashop_checkout label,
.hikashop_checkout span,
.hikashop_checkout p,
.hikashop_checkout th,
.hikashop_checkout td,
.hikashop_checkout div,
.hikashop_checkout_cart table,
.hikashop_checkout_cart td,
.hikashop_checkout_cart th {
  color: #fff !important;
}

.hikashop_checkout small,
.hikashop_checkout a,
.hikashop_checkout .hikashop_checkout_cart_total,
.hikashop_checkout .hikashop_checkout_subtotal {
  color: #f2f2f2 !important;
}

.hikashop_checkout button,
.hikashop_checkout input[type="button"],
.hikashop_checkout input[type="submit"] {
  background-color: #bb7103 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 6px;
  padding: 10px 20px;
}

.hikashop_checkout button:hover,
.hikashop_checkout input[type="button"]:hover,
.hikashop_checkout input[type="submit"]:hover {
  background-color: #f29100 !important;
}

.hikashop_checkout_cart table {
  border-color: #444 !important;
}

.hikashop_checkout input[type="text"],
.hikashop_checkout input[type="email"],
.hikashop_checkout input[type="tel"],
.hikashop_checkout select,
.hikashop_checkout textarea {
  background: #fff !important;
  color: #000 !important;
  border-radius: 6px;
  border: 1px solid #ccc !important;
}

.hikashop_checkout_shipping_price,
.hikashop_checkout_shipping_name,
.hikashop_checkout_shipping_title,
.hikashop_checkout_shipping td,
.hikashop_checkout_shipping span,
.hikashop_checkout_shipping div {
  color: #fff !important;
}

/* ======================================
   FONT MOBILE – Prezzo prodotti nel carrello
   ====================================== */
@media (max-width: 767px) {
  .hikashop_product_price,
  .hikashop_product_price_0,
  .hikashop_checkout_cart .hikashop_product_price,
  .hikashop_checkout_cart .hikashop_product_price_0 {
    font-size: 14px !important;
    line-height: 1.3 !important;
  }
}

/* ======================================
   FRECCE NAVIGAZIONE ARTICOLI BLOG – FIX DEFINITIVO
   ====================================== */
a.btn.btn-sm.btn-outline-secondary.prev,
a.btn.btn-sm.btn-outline-secondary.prev:hover,
a.btn.btn-sm.btn-outline-secondary.prev:focus,
a.btn.btn-sm.btn-outline-secondary.prev:active {
  background-color: #bb7103 !important;
  border-color: #bb7103 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 8px 14px !important;
  font-size: 14px !important;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s, color 0.3s;
}

a.btn.btn-sm.btn-outline-secondary.prev:hover {
  background-color: #f29100 !important;
}

a.btn.btn-sm.btn-outline-secondary.prev span,
a.btn.btn-sm.btn-outline-secondary.prev i,
a.btn.btn-sm.btn-outline-secondary.prev::before {
  color: #fff !important;
  fill: #fff !important;
}

a.btn.btn-sm.btn-outline-secondary.next,
a.btn.btn-sm.btn-outline-secondary.next:hover {
  background-color: #bb7103 !important;
  color: #fff !important;
  border: none !important;
}
