/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://example.com
 Description:  Child theme per GeneratePress con integrazione Eventbrite
 Author:       Il Tuo Nome
 Author URI:   https://example.com
 Template:     generatepress
 Version:      1.0.0
*/

.site-content {
  max-width: 1024px;
  margin: 0 auto; /* Centra il contenuto */
  padding: 0 15px; /* Aggiunge spaziatura ai lati */
  box-sizing: border-box;
}

/* Stile generale del modulo */
.cred-form {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Font simile a Word */
    background-color: #f7f7f7; /* Colore chiaro di sfondo */
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Etichette */
.cred-form label {
    font-size: 1rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
    display: block;
}

/* Campi di input */
.cred-form .form-control {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
    font-size: 1rem;
    color: #333;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.cred-form .form-control:focus {
    border-color: #4a90e2; /* Colore blu Word-like */
    box-shadow: 0 0 6px rgba(74, 144, 226, 0.5);
}

/* Pulsanti */
.cred-form .btn {
    background-color: #4a90e2; /* Colore blu Word */
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.cred-form .btn:hover {
    background-color: #357ab8; /* Tonalità più scura di blu */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cred-form .btn i {
    margin-right: 5px;
    font-size: 1.2rem;
}

/* Checkbox e radio button */
.cred-form input[type="checkbox"],
.cred-form input[type="radio"] {
    margin-right: 8px;
}

/* Avvisi e messaggi */
.cred-form .alert {
    font-size: 0.95rem;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
}

/* Immagine in evidenza (anteprima) */
.cred-form .form-group img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Dropdown */
.cred-form select.form-control {
    padding: 8px 12px;
}

/* Layout responsivo */
@media (max-width: 768px) {
    .cred-form {
        padding: 15px;
    }
    .cred-form .btn {
        font-size: 1rem;
        padding: 8px 16px;
    }
}

/*per griglie post document e media*/
.grid-item {
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
  background-color: #f9f9f9;
  margin-bottom: 20px;
}

.grid-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 10px;
  border-radius: 8px;
}

.grid-item .card-title {
  font-weight: bold;
  color: #333;
}

.grid-item .card-text {
  color: #666;
}

.grid-item .wp-block-separator {
  border-color: #ccc;
}

.grid-item .button-group {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.grid-item .button-group i {
  font-size: 20px;
  cursor: pointer;
}

/*tabelle per lista contenuti start*/

/* Contenitore per isolare il CSS della tabella */
.table-container {
  width: 100%;
  overflow-x: auto;
  margin: 20px auto;
}

/* Stile generale per la tabella */
.table-container table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  border-spacing: 0;
  font-family: Arial, sans-serif;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
}

/* Stile per l'intestazione della tabella */
.table-container table thead {
  background-color: var(--global-color-8);
  color: var(--base-2);
  font-weight: bold;
  text-transform: uppercase;
}

/* Assicurati che i link dentro l'intestazione ereditino il colore del testo */
.table-container table thead a {
  color: inherit; /* Questo farà sì che i link ereditino il colore del loro contenitore */
  text-decoration: none; /* Se non vuoi che ci siano sottolineature sui link */
}

.table-container table thead th {
  padding: 15px;
  text-align: left;
  border-bottom: 2px solid #ddd;
  font-size: 0.9rem;
}

/* Stile per il corpo della tabella */
.table-container table tbody {
  width: 100%;
}

.table-container table tbody tr {
  border-bottom: 1px solid #ddd;
  transition: background-color 0.3s ease;
}

.table-container table tbody tr:hover {
  background-color: #f9f9f9;
}

.table-container table tbody td {
  padding: 15px;
  text-align: left;
  vertical-align: middle;
  font-size: 0.9rem;
  color: #333;
}

/* Icone e immagine */
.table-container table tbody td i {
  color: var(--global-color-8);
  font-size: 2rem;
}

.table-container table tbody td img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Link nei titoli */
.table-container table tbody td a {
  text-decoration: none;
  font-weight: bold;
  color: var(--global-color-8);
  transition: color 0.3s ease;
}

.table-container table tbody td a:hover {
  color: var(--contrast-2);
}

/* Colonna data */
.table-container table tbody td.date-column {
  font-style: italic;
  color: #666;
}

/* Mobile-friendly */
@media (max-width: 768px) {
  .table-container table tbody td {
    font-size: 0.8rem;
    padding: 10px;
  }

  .table-container table thead th {
    font-size: 0.8rem;
  }

  .table-container table tbody td img {
    width: 60px;
    height: 60px;
  }
}

/*tabelle liste contenuti end */

/* START BORDO BOTTOM TOP HEADER */
/* Applica il filtro di contrasto al bordo */
.top-bar {
    border-bottom: 2px solid var(--contrast-3); /* Cambiamento del colore del bordo */
    padding: 1px;                   /* Aggiunge padding */
    text-align: center;             /* Centra il testo */
    filter: contrast(200%);         /* Effetto di contrasto aumentato */
}

.site-header {
    border-bottom: 2px solid var(--contrast-3); /* Cambiamento del colore del bordo */
    padding: 1px;                   /* Aggiunge padding */
    text-align: center;             /* Centra il testo */
    filter: contrast(200%);         /* Effetto di contrasto aumentato */

}

/* END BORDO BOTTOM TOP HEADER */