/*
Theme Name: Sanremo Padel Experience
Theme URI: https://sanremopadelexperience.it
Author: BoongaWeb
Author URI: https://www.boongaweb.com
Description: Tema custom per Sanremo Padel Experience - Circuito tornei padel FIP
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: spe-theme
*/

/* ============================================================
   CUSTOM STYLES (from static site)
   ============================================================ */

/* Scrollbar hide for carousels */
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Fix EXIF image rotation */
img {
  image-orientation: from-image;
}

/* Gallery card gradient overlay */
.gallery-card-overlay {
  background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.95) 100%);
}

/* Hero gradient overlay */
.hero-overlay {
  background-image: linear-gradient(to bottom, rgba(0,0,0,0.4) 28%, #14b5a8 63%);
}

/* Ambassador card image overlay */
.ambassador-overlay {
  background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(0,0,0,0.5) 100%);
  mix-blend-mode: soft-light;
}

/* Touch scroll for carousels (legacy Safari) */
.touch-scroll {
  -webkit-overflow-scrolling: touch;
}

/* Nav dropdown on hover */
.spe-submenu {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  list-style: none;
}
.spe-submenu a {
  color: white !important;
  list-style: none;
  text-decoration: none;
}
.spe-submenu a:hover {
  list-style: none;
}
.group:hover > .spe-submenu {
  opacity: 1;
  visibility: visible;
}
.spe-nav-arrow {
  transition: transform 0.2s;
}
.group:hover > a .spe-nav-arrow {
  transform: rotate(180deg);
}

/* Prevent native browser drag on carousel/slider items */
.scrollbar-hide img,
.scrollbar-hide a {
  -webkit-user-drag: none;
}
.scrollbar-hide {
  user-select: none;
  -webkit-user-select: none;
  cursor: pointer;
}

/* Disable pointer events on SVG objects */
.no-pointer-events {
  pointer-events: none;
}

/* Article content (single news) */
.spe-article-content {
  font-family: 'Red Hat Display', sans-serif;
  color: rgba(0, 0, 0, 0.8);
  font-size: 17px;
  line-height: 1.7;
}
.spe-article-content > * + * {
  margin-top: 1.25em;
}
.spe-article-content p {
  margin-bottom: 1.25em;
}
.spe-article-content p:last-child {
  margin-bottom: 0;
}
.spe-article-content h2 {
  font-weight: 800;
  font-size: 24px;
  color: #14b5a8;
  margin-top: 2em;
  margin-bottom: 0.75em;
  line-height: 1.2;
}
.spe-article-content h3 {
  font-weight: 700;
  font-size: 20px;
  color: #14b5a8;
  margin-top: 1.75em;
  margin-bottom: 0.5em;
  line-height: 1.3;
}
.spe-article-content h4 {
  font-weight: 700;
  font-size: 18px;
  color: #14b5a8;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}
.spe-article-content blockquote {
  border-left: 4px solid #14b5a8;
  padding: 0.5em 0 0.5em 1.5em;
  margin: 1.75em 0;
  font-style: italic;
  font-size: 18px;
  color: #14b5a8;
  font-weight: 500;
  line-height: 1.6;
}
.spe-article-content blockquote p {
  margin: 0;
}
.spe-article-content ul,
.spe-article-content ol {
  margin: 1.25em 0;
  padding-left: 1.5em;
}
.spe-article-content ul {
  list-style: disc;
}
.spe-article-content ol {
  list-style: decimal;
}
.spe-article-content li {
  margin-bottom: 0.5em;
}
.spe-article-content li > ul,
.spe-article-content li > ol {
  margin: 0.5em 0;
}
.spe-article-content a {
  color: #14b5a8;
  text-decoration: underline;
  font-weight: 500;
}
.spe-article-content a:hover {
  opacity: 0.8;
}
.spe-article-content strong,
.spe-article-content b {
  font-weight: 700;
  color: #000;
}
.spe-article-content em,
.spe-article-content i {
  font-style: italic;
}
.spe-article-content img {
  border-radius: 12px;
  margin: 1.5em 0;
  max-width: 100%;
  height: auto;
}
.spe-article-content hr {
  border: none;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 2em 0;
}
@media (min-width: 768px) {
  .spe-article-content {
    font-size: 18px;
  }
  .spe-article-content h2 { font-size: 28px; }
  .spe-article-content h3 { font-size: 22px; }
  .spe-article-content blockquote { font-size: 20px; }
}

/* Partner logos marquee */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  animation: marquee 30s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}

/* Lightbox */
.lightbox {
  display: none;
}
.lightbox.active {
  display: flex;
}

/* Live pulse animation */
@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.2); }
}
.animate-pulse-live {
  animation: pulse-live 1.5s ease-in-out infinite;
}

/* WP Admin bar offset */
body.admin-bar #site-header {
  top: 32px;
}
@media screen and (max-width: 782px) {
  body.admin-bar #site-header {
    top: 46px;
  }
}
