/*
Theme Name: CSW GPT
Theme URI: 
Author: ConSellWeb
Author URI: 
Description: TEMA BRIDGE CON CHATGPT
Requires at least: 6.8
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: csw-gpt
Tags: full-site-editing, accessibility-ready, minimal, clean, lightweight
*/

/* -----------------------------------------------------
   BASE GLOBALE E RESET
----------------------------------------------------- */

html {
  scroll-behavior: smooth;
}

/* -----------------------------------------------------
   NAVIGAZIONE (GUTENBERG)
   - Effetto hover con underline animato
----------------------------------------------------- */

/* Rimuove underline e imposta colore hover */
.wp-block-navigation__container a:hover {
  color: red !important;
  text-decoration: none;
}

/* Mantiene colore di sfondo ereditato */
.wp-block-navigation__container {
  background-color: inherit;
}

/* Effetto underline animato */
.wp-block-navigation-item__content {
  position: relative;
}

.wp-block-navigation-item__content::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #e79211;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-in-out;
  text-decoration: none !important;
}

/* Hover & Active */
.wp-block-navigation-item__content:hover::after,
.current-menu-item .wp-block-navigation-item__content::after {
  transform: scaleX(1);
}

/* -----------------------------------------------------
   PULSANTI GLOBALI (GUTENBERG)
   - Colori e hover personalizzato
----------------------------------------------------- */

.wp-element-button, .wp-block-button__link {
    background-color: #f0f0f0;
    border-width: 0;
    border-radius: 10px;
    color: #000000;
    font-size: 11px;
    line-height: inherit;
    padding: 5px 10px;
    text-decoration: none;
}

.wp-block-button__link:hover {
  color: #ffffff;
  background: #000000;
}

/* -----------------------------------------------------
   PULSANTI CUSTOM (GUTENBERG)
   - Colori e hover personalizzato
----------------------------------------------------- */

.button-uno__link:hover {
  background-color: #e79211 !important;
}

/* -----------------------------------------------------
   ICONE LOGIN/LOGOUT/REGISTRAZIONE (SHORTCODE)
   - Stili per le immagini SVG
----------------------------------------------------- */

/* Rimuove lo stile da "pulsante testuale" per fare spazio alle icone */
.btn-login, .btn-logout, .btn-register, .btn-lostpassword {
  background: none; 
  padding: 0; 
  border: none;
  margin: 0 5px; /* Spazio tra le icone se sono affiancate */
}

/* Stilizza tutte le icone SVG con la stessa dimensione */
.login-icon, .logout-icon, .register-icon, .lostpassword-icon {
    width: 20px; /* Imposta la dimensione desiderata */
    height: auto;
    cursor: pointer;
}

.login-icon:hover, .logout-icon:hover, .register-icon:hover, .lostpassword-icon:hover {
    opacity: 0.8; /* Effetto hover semplice */
}



/* -----------------------------------------------------
   RESPONSIVE
   - Nasconde logo mobile su desktop
----------------------------------------------------- */

@media (min-width: 769px) {
  .logo-mobile {
    display: none;
  }
}

/* -----------------------------------------------------
   JETENGINE / GUTENBERG VARI
----------------------------------------------------- */

.jet-listing-dynamic-repeater__items {
    display: flex;
    flex-direction: column !important; 
}

/* Contenitore generale del blocco codice */
.csw-code-block {
  position: relative;
  background: #f0f0f0;
  border-radius: 8px;
  padding: 10px;
  border: 1px solid #ddd;
  overflow-x: auto;
  font-family: Consolas, monospace;
  max-width: 90%;
  margin: 0 12px 24px 12px; /* allineato al titolo */
}

.csw-code-title {
  width: 80%;
  text-align: left;
  margin: 10px auto;
}

.csw-code-block pre,
.csw-code-block code {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
  font-family: Consolas, monospace;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Stili specifici per i form JetEngine */
.jet-sm-gb-33f24ed3-b9c4-45ad-9f82-5d2ae141f09b .jet-form-builder-row,
.jet-sm-gb-33f24ed3-b9c4-45ad-9f82-5d2ae141f09b .jet-form-builder__field-wrap input {
  padding: 10px;
  max-width: 50%;
}

.jet-sm-gb-3aaaf18d-9183-434c-99d7-d7fafefaf518 .jet-form-builder__field-wrap textarea {
  padding: 10px;
  max-width: 80%;
  text-align: end;
}

.jet-sm-gb-d7bf33c0-7a95-448f-bbea-9c7ae3a1229d .jet-form-builder__field-wrap textarea {
  padding: 10px;
}

/* messagio form successo */
.jet-form-builder-message--success {
    display: none;
}

/* -----------------------------------------------------
   UTILITIES
----------------------------------------------------- */

.overflow-hidden {
  overflow: hidden;
}

.sticky {
  position: sticky;
  top: 0px;
}

.z-index {
  z-index: 999;
}
