/*
Theme Name:   Ensoul Theme
Description:  Ensoul's Twenty Twenty-Five child theme. In combination with Ensoul React Blocks
Author:       Ensoul
Template:     twentytwentyfive
Version:      1.0.1
Text Domain:  twentytwentyfivechild
*/

body {
  overflow-x: hidden;
}

#main,
.wp-block-cover {
  margin-top: 0;
}

/* For WebKit/Blink browsers */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #202020;
}

::-webkit-scrollbar-thumb {
  background: #f29c35;
  border: 3px solid #202020;
}

::selection {
  background-color: White;
  color: #f29c35;
}

::-moz-selection {
  background-color: white;
  color: #f29c35;
}

::-webkit-selection {
  background-color: white;
  color: #f29c35;
}

#inactivity_message {
  display: flex;
  align-items: center;
  justify-content: center;
  background: black;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 999;
  color: #f29c35;
  padding: 0 2rem;
  text-align: center;
}

/* ==========================================
   LOAD MORE BUTTON STYLING
   ========================================== */

.evento-load-more-container {
  margin-top: 3rem;
  text-align: center;
}

.evento-load-more-btn {
  transition: transform 0.3s ease-out, color 0.3s ease-out;
}

.evento-load-more-btn:hover {
  background: var(--wp--preset--color--secondary, #34495e);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.evento-load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.evento-load-more-btn.loading {
  position: relative;
}

.evento-load-more-btn.loading::after {
  content: "";
  position: absolute;
  right: 1rem;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Stile base per gli eventi caricati */
.evento-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: box-shadow 0.3s ease;
}

.evento-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.evento-thumbnail img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.evento-date {
  color: var(--wp--preset--color--accent, #e74c3c);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.evento-title a {
  color: inherit;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
}

.evento-title a:hover {
  color: var(--wp--preset--color--primary, #2c3e50);
}

.evento-sottotitolo {
  color: #666;
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

.tipo-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.nav-button a {
  transition: color 0.3s ease-out;
}
.nav-button a:hover {
  color: #f29c35;
}
