/*
 * Sito Web Olimpo Fitness
 * Developed by Alesjo Topalli
 * Email: topallisoftware@gmail.com
 */

/* Stile generale */
:root {
  --primary-color: #c62828;
  /* Rosso */
  --secondary-color: #f5f5f5;
  /* Marmo chiaro */
  --accent-color: #8d0000;
  /* Rosso scuro */
  --gold-color: #d4af37;
  /* Oro */
  --gold-light: #f9e076;
  /* Oro chiaro */
  --gold-dark: #b8860b;
  /* Oro scuro */
  --text-color: #333333;
  --text-light-color: #666666;
  --light-text: #ffffff;
  --white: #ffffff;
  --black: #000000;
  --footer-bg: #222222;
  --footer-text: #aaaaaa;
  --border-color: #dddddd;
  --marble-gradient: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 50%, #d5d5d5 100%);
  /* Texture rimossa per ottimizzazione */
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--gold-color));
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.section-header p {
  color: var(--text-light-color);
  font-size: 1.1rem;
}

/* Bottone "Olympus God" - WOW Effect */
.btn {
  position: relative;
  display: inline-block;
  padding: 12px 30px;
  color: var(--light-text);
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 50px;
  border: none;
  /* Deep Red Gradient Background */
  background: linear-gradient(135deg, #8e0000 0%, #c62828 50%, #8e0000 100%);
  background-size: 200% 200%;
  animation: cosmicRed 4s ease infinite;
  
  /* Initial Glow (Gold) as Border - More visible for mobile */
  box-shadow: 0 0 0 2px var(--gold-color), 0 4px 10px rgba(0,0,0,0.3);
  
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  overflow: hidden; /* For the shine effect */
  z-index: 1;
  font-size: 0.9rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

@keyframes cosmicRed {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* The Shine Effect */
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.6) 50%,
    transparent 80%
  );
  transform: skewX(-20deg);
  transition: all 0s; /* Instant reset */
}

/* Hover State - Explosion */
.btn:hover {
  transform: translateY(-3px) scale(1.02);
  /* Intense Gold Glow & Red Aura */
  box-shadow: 0 0 0 3px var(--gold-color), 0 10px 30px rgba(198, 40, 40, 0.5), 0 0 20px rgba(212, 175, 55, 0.4);
  color: white;
  text-shadow: 0 0 8px rgba(255,255,255,0.6);
}

.btn:hover::after {
  left: 120%;
  transition: left 0.6s ease-in-out;
}

/* Click State */
.btn:active {
  transform: scale(0.95);
  box-shadow: 0 0 0 2px var(--gold-color), 0 5px 10px rgba(0,0,0,0.3);
}

/* Focus State Fix - Prevents stuck gold state */
.btn:focus {
  outline: none;
}

/* Visited Link Fix */
.btn:visited {
  color: var(--light-text);
}
.btn:hover:visited {
  color: white;
}

/* Rimuovi vecchi pseudo-elementi se presenti nel CSS precedente */
.btn::before {
  display: none;
}

/* Nota importante stile */
.nota-importante {
  font-style: italic;
  color: var(--text-light-color);
}

/* Header e navigazione */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease 0s;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
}

/* Language Selector */
.language-selector {
  position: relative;
  margin-left: 0;
  display: flex;
  align-items: center;
}

.language-select {
  margin-left: 10px;
  background-color: transparent;
  border: 1px solid var(--gold-color);
  color: var(--text-color);
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 3px;
  font-size: 0.8rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="12" height="6" viewBox="0 0 12 6"><path d="M0 0l6 6 6-6z" fill="%23d4af37"/></svg>');
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 20px;
}

.language-select:hover,
.language-select:focus {
  border-color: var(--gold-dark);
  outline: none;
}

.language-select option {
  background-color: white;
  color: var(--text-color);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  margin-right: 20px;
  transition: all 0.3s ease;
}

.logo:hover .logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 8px rgba(212, 175, 55, 0.4));
}

.logo-img {
  max-height: 80px;
  width: auto;
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

/* Stili per il logo nel footer (manteniamo il testo) */
.footer-logo h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin: 0;
  letter-spacing: 2px;
  text-shadow: 1px 1px 2px var(--gold-color);
}

.footer-logo p {
  font-size: 0.8rem;
  letter-spacing: 3px;
  color: var(--text-light-color);
  margin-top: -5px;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--primary-color), var(--gold-color));
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--primary-color);
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 20px;
  cursor: pointer;
}

.mobile-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--text-color);
  transition: all 0.3s ease 0s;
}

/* Hero section */
.hero {
  height: 100vh;
  background-image: url('../img/logo.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--light-text);
  text-align: center;
  padding: 0;
}

.hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 10px var(--gold-color);
  background: linear-gradient(to right, var(--light-text), var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero-content h2 {
  font-size: 1.8rem;
  margin-bottom: 30px;
  font-weight: 400;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Servizi */
.services {
  background-color: var(--secondary-color);
  background-image: var(--marble-texture);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--white);
  border-radius: 8px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease 0s;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border-top: 3px solid var(--primary-color);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-top: 3px solid var(--gold-color);
}

.service-card .icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary-color), var(--gold-color));
  color: var(--light-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 1.8rem;
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.2);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-color);
}

.service-card p {
  color: var(--text-light-color);
  font-size: 0.95rem;
}

/* Orari */
.schedule {
  background-color: #fff;
}

.schedule-container {
  max-width: 800px;
  margin: 0 auto;
}

.schedule-table {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.service-card,
.day,
.gallery-item,
.trainer-card,
.contact-info,
.contact-form {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate {
  opacity: 1;
  transform: translateY(0);
}

.service-card:nth-child(2),
.day:nth-child(2),
.gallery-item:nth-child(2) {
  transition-delay: 0s;
}

.service-card:nth-child(3),
.day:nth-child(3),
.gallery-item:nth-child(3) {
  transition-delay: 0s;
}

.service-card:nth-child(4),
.gallery-item:nth-child(4) {
  transition-delay: 0s;
}

.service-card:nth-child(5),
.gallery-item:nth-child(5) {
  transition-delay: 0s;
}

.service-card:nth-child(6),
.gallery-item:nth-child(6) {
  transition-delay: 0s;
}


.day {
  flex: 1;
  min-width: 200px;
  text-align: center;
  padding: 30px 20px;
  margin: 10px;
  background-color: var(--secondary-color);
  background-image: var(--marble-texture);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease 0s;
  border-left: 3px solid var(--primary-color);
}

.day:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-left: 3px solid var(--gold-color);
}

.day h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  border-bottom: 1px solid var(--gold-color);
  padding-bottom: 5px;
  display: inline-block;
}

.day p {
  font-size: 1.1rem;
  font-weight: 600;
}

.schedule-note {
  text-align: center;
  font-style: italic;
  color: var(--text-light-color);
}

/* Recensioni */
.reviews {
  background-color: var(--secondary-color);
  background-image: var(--marble-texture);
  padding: 60px 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.review-card {
  background-color: #fff;
  padding: 30px;
  border-top: 4px solid var(--primary-color);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.2);
  border-top-color: var(--gold-color);
}

.review-name {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 12px;
  margin-top: 0;
}

.review-rating {
  display: flex;
  gap: 5px;
  margin-bottom: 12px;
}

.review-rating i {
  color: var(--gold-color);
  font-size: 14px;
}

.review-text {
  color: var(--text-light-color);
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 12px 0;
  flex-grow: 1;
}

.review-date {
  color: #999999;
  font-size: 12px;
  font-style: italic;
  margin: 0;
}

.review-role {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #999999;
  font-style: italic;
  margin-bottom: 8px;
  margin-top: -8px;
}

.review-role i {
  color: var(--primary-color);
  font-size: 13px;
}

.review-source {
  color: #cccccc;
  font-size: 11px;
  font-style: italic;
  text-align: center;
  border-top: 1px solid #eeeeee;
  padding-top: 10px;
  margin-top: auto;
  margin-bottom: 0;
}

/* Galleria */
.gallery {
  background-color: var(--white);
  background-image: none;
}

.gallery-container {
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin: 0 auto;
}

.gallery-slider {
  display: flex;
  transition: transform 0.5s ease;
  animation: autoScroll 40s linear infinite;
}

.gallery-slider:hover {
  animation-play-state: paused;
}

.gallery-item {
  flex: 0 0 300px;
  height: 250px;
  margin-right: 20px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease 0s;
  border: 1px solid rgba(212, 175, 55, 0.1);
  cursor: pointer;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
  border: 1px solid var(--gold-color);
}

.gallery-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: all 0.3s ease 0s;
}

.gallery-img:hover {
  transform: scale(1.05);
}

/* Animazione auto-scroll */
@keyframes autoScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-400%);
  }
}

/* Modal per ingrandire le immagini */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.gallery-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  aspect-ratio: 16/9;
  background-repeat: no-repeat;
}

@media (min-width: 769px) {
  .modal-content {
    width: 80vw;
    height: 80vh;
    max-width: 1200px;
    max-height: 800px;
  }

  .modal-nav {
    padding: 15px 25px;
    font-size: 24px;
  }

  .modal-prev {
    left: -60px;
  }

  .modal-next {
    right: -60px;
  }

  .modal-close {
    right: -40px;
    font-size: 35px;
  }
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: white;
  font-size: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  color: var(--gold-color);
  transform: scale(1.2);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 15px 20px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 5px;
}

.modal-nav:hover {
  background-color: var(--primary-color);
  transform: translateY(-50%) scale(1.1);
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}





.trainers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.trainer-card {
  background-color: var(--secondary-color);
  background-image: var(--marble-texture);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease 0s;
  text-align: center;
  border: 1px solid var(--gold-light);
}

.trainer-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(212, 175, 55, 0.2);
  border-color: var(--gold-color);
}

.trainer-img {
  height: 300px;
  background-size: cover;
  background-position: center top;
}

/* Contatti */
.contact {
  background-color: var(--secondary-color);
  background-image: var(--marble-texture);
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  margin: 0 auto;
  max-width: 600px;
  padding: 30px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form {
  flex: 2;
  min-width: 300px;
  transition-delay: 0.3s;
}

.info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
}

.info-item i {
  font-size: 2rem;
  color: var(--primary-color);
  margin-right: 20px;
  margin-top: 5px;
}

.info-item p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  justify-content: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--gold-color));
  color: var(--light-text);
  border-radius: 50%;
  transition: all 0.3s ease 0s;
  text-decoration: none;
  border: 1px solid var(--gold-light);
  font-size: 1.2rem;
}

.social-icon:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease 0s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}



/* Footer */
footer {
  background-color: var(--footer-bg);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo-img {
  max-height: 120px;
  width: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.footer-logo-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 8px rgba(212, 175, 55, 0.4));
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.footer-links ul li {
  margin-right: 20px;
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #aaa;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.9rem;
}

.footer-links ul li a:hover {
  color: var(--gold-light);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  font-size: 0.8rem;
  color: #aaa;
}

.footer-bottom p {
  margin-bottom: 8px;
}

.footer-bottom a {
  color: var(--gold-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: var(--gold-color);
  text-decoration: underline;
}

/* Media Queries */
@media (max-width: 992px) {
  .logo-img {
    max-height: 70px;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .hero-content h2 {
    font-size: 1.5rem;
  }

  .section-header h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .container {
    width: 95%;
  }

  .logo-img {
    max-height: 60px;
  }

  .footer-logo-img {
    max-height: 100px;
  }

  header .container {
    padding: 15px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .mobile-menu-btn {
    display: flex;
    order: 2;
  }

  nav ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    flex-direction: column;
    padding: 20px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  nav ul.active {
    display: flex;
  }

  nav ul li {
    margin: 10px 0;
    text-align: center;
  }

  nav ul li.language-selector {
    display: flex;
    justify-content: center;
    margin: 15px 0;
  }

  /* Galleria responsive */
  .gallery-item {
    flex: 0 0 250px;
    height: 200px;
  }

  .gallery-slider {
    animation: autoScrollMobile 60s infinite linear;
  }

  @keyframes autoScrollMobile {
    0% {
      transform: translateX(0);
    }

    100% {
      transform: translateX(-1200%);
    }
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content h2 {
    font-size: 1.3rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .contact-container {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-logo {
    margin-bottom: 20px;
    justify-content: center;
  }

  .footer-logo-img {
    max-height: 90px;
  }

  .footer-links ul {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content h2 {
    font-size: 1.1rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .service-card,
  .day,
  .gallery-item,
  .trainer-card {
    margin-bottom: 20px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.8rem;
  }
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    height: 60vh;
  }

  .modal-nav {
    padding: 10px 15px;
    font-size: 16px;
  }

  .modal-close {
    font-size: 24px;
    top: -35px;
  }
}

/* Annunci */
.announcements {
  background-color: var(--white);
}

.announcements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.announcement-card {
  background-color: var(--secondary-color);
  background-image: var(--marble-texture);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease 0s;
  border-left: 3px solid var(--primary-color);
}

.announcement-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  border-left: 3px solid var(--gold-color);
}

.announcement-date {
  font-size: 0.9rem;
  color: var(--text-light-color);
  margin-bottom: 15px;
  font-style: italic;
}

.announcement-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--primary-color);
  text-shadow: 1px 1px 1px var(--gold-light);
}

.announcement-card p {
  color: #555;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.announcement-link {
  display: inline-block;
  color: var(--primary-color);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.announcement-link:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: var(--gold-color);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease;
}

.announcement-link:hover {
  color: var(--gold-color);
}

.announcement-link:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* BANNER PROMO INIZIO */
.promo-banner {
  background: linear-gradient(135deg, #ffb347, #ffcc33);
  color: #111;
  padding: 40px 0;
  border-radius: 8px;
  margin: 30px 0;
}

.promo-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.promo-text {
  flex: 1 1 520px;
}

.promo-text h2 {
  font-size: 28px;
  margin: 0 0 8px;
}

.promo-price {
  font-size: 22px;
  font-weight: 700;
  margin: 8px 0;
  color: #222
}
/*20260207 - TICKET: 0000003*/
.promo-time {
  font-size: 18px;
  font-weight: 600;
 /*margin: 12px 0 16px;*/
  color: var(--primary-color);
  letter-spacing: 0.5px;
}

.promo-features {
  flex: 1 1 320px;
}

.promo-features ul {
  list-style: disc;
  padding-left: 20px;
  margin: 0
}

.promo-cta a.btn {
  background: #111;
  color: #fff;
  padding: 12px 22px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  margin-top: 10px;
}

@media(max-width:700px) {
  .promo-content {
    flex-direction: column;
    text-align: center
  }

  .promo-features {
    order: 3
  }
}

html {
  scroll-behavior: smooth;
}

/* BANNER PROMO FINE */

/* --- Modal styles for promo --- */
.promo-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  /* Scurito leggermente per contrasto */
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 15px;
  /* Padding ridotto per schermi piccoli */
}

.promo-modal.active {
  display: flex;
}

.promo-modal .modal-box {
  background: transparent;
  max-width: 900px;
  /* Ridotto leggermente per compattezza */
  width: 100%;
  position: relative;
  /* Necessario per posizionare la X */
}

.promo-modal .modal-inner {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  /* Gestione scroll su schermi bassi/orizzontali */
  max-height: 85vh;
  overflow-y: auto;
}

/* Layout del contenuto: Flexbox */
.promo-modal .promo-content {
  display: flex;
  flex-wrap: wrap;
  /* Permette di andare a capo */
  align-items: center;
  gap: 20px;
  /* Spazio tra testo e features */
}

/* Divisione spazi su Desktop */
.promo-modal .promo-text {
  flex: 1 1 300px;
}

.promo-modal .promo-features {
  flex: 1 1 250px;
  background: linear-gradient(180deg, #ffffff, #fffaf7);
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.promo-modal .promo-features::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, var(--primary-color), var(--gold-color));
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.promo-modal .promo-features h3 {
  margin-top: 0;
  color: var(--primary-color);
  font-weight: 700;
}

.promo-modal .promo-text h2 {
  color: #111;
  margin-top: 0;
  line-height: 1.2;
}

.promo-modal .promo-text p {
  color: #333;
  line-height: 1.5;
}

/* Stile bottone chiusura (X) */
.promo-modal .modal-close {
  position: absolute;
  right: 15px;
  top: 5px;
  /* Fuori dal box bianco su desktop */
  background: transparent;
  border: none;
  color: #000000;
  font-size: 32px;
  cursor: pointer;
  line-height: 1;
}

.promo-modal .modal-close:hover {
  color: #ffd54d;
}

.promo-dontshow {
  margin-top: 12px;
  font-size: 0.95rem;
}

/* --- Floating trigger button (Posizione Sinistra) --- */
.promo-trigger {
  position: fixed;
  left: 18px;
  bottom: 18px;
  background: linear-gradient(135deg, #ffb347, #ffcc33);
  color: #111;
  border: none;
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 3100;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.promo-trigger:active {
  transform: scale(0.95);
}

/* --- RESPONSIVE MOBILE (Sotto 768px) --- */
@media (max-width: 768px) {
  .promo-modal .modal-inner {
    padding: 20px 15px 45px 15px; 
    /* Meno padding laterale, ma più spazio in basso per la checkbox 20260207 - TICKET: 0000003*/
  }

  .promo-modal .promo-content {
    flex-direction: column;
    /* Impila gli elementi verticalmente */
    gap: 20px;
    text-align: center;
    /* Centra il testo su mobile */
  }

  .promo-modal .promo-features {
    flex: 1 1 180px;
    width: 100%;
    /* Occupa tutta la larghezza */
    text-align: left;
    /* Lista puntata allineata a sx */
    margin-top: 0; /*20260207 - TICKET: 0000003*/
    padding-top: 0; /*20260207 - TICKET: 0000003*/
  }

  /* Sposta la X dentro il box bianco su mobile per sicurezza visiva */
  .promo-modal .modal-close {
    top: 15px;
    right: 10px;
    color: #333;
    /* Diventa scura perché ora è su sfondo bianco */
    font-size: 28px;
    z-index: 10;
    position: absolute;
    /* Assicurati che sia absolute rispetto a modal-inner se cambi HTML, ma qui forziamo rispetto a modal-box */
  }

  /* Piccolo fix se la X rimane rispetto al modal-box */
  .promo-modal .modal-box {
    padding-top: 10px;
    /* Spazio per non tagliare nulla */
  }

  /* Adatta il bottone trigger */
  .promo-trigger {
    left: 15px;
    bottom: 15px;
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .promo-modal .promo-content {
    gap: 10px;
    /* Ridotto per eliminare lo spazio vuoto in mezzo */
  }

  .promo-modal .promo-text {
    display: flex;
    flex-direction: column;
  }

  /* Spostiamo la checkbox in fondo come richiesto prima */
  .promo-CheckBox-DontShow {
    order: 10;
    margin-top: 20px !important;
    padding-top: 15px;
    border-top: 1px solid #eee;
  }

  .promo-modal .promo-features {
    order: 5;
    /* Assicura che il programma stia tra il testo e la checkbox */
  }

  .promo-modal .promo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centra i bottoni su mobile */
  }

  /* Se vuoi i bottoni uno sotto l'altro su mobile perché sono più comodi da cliccare */
  .promo-modal .btn {
    width: 80%;
    /* Larghezza quasi piena ma non esagerata */
    max-width: 250px;
    /* Non farli diventare giganti su schermi larghi */
    margin: 5px 0 !important;
    /* Spazio verticale tra i due */
  }
}

/* HALLOWEENNNNNNNNNNNNNNNNNNNNNNNNNN
BTN MODIFICATO, FINE HALLOWEEN SCOMMENTARE QUELLO VECCHIO
*/


/*
.btn,
.btn-halloween {
  display: inline-block;
  padding: 12px 28px; 
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 6px; 
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  vertical-align: middle;
  line-height: 1.2;
  box-sizing: border-box;
}


.btn-halloween {
  background: linear-gradient(180deg, #ff8f1c, #cc6b00);
  color: #fff;
  border: 2px solid #ffcc4d;
  box-shadow: 0 4px 10px rgba(255, 140, 0, 0.4);
}

.btn-halloween:hover {
  background: linear-gradient(180deg, #ffa63d, #ff7700);
  transform: translateY(-2px);
}


.btn + .btn-halloween,
.btn-halloween + .btn {
  margin-left: 10px;
}
*/

/* ============================================
   BANNER ABBONAMENTO ANNUALE
   ============================================ */

.annual-banner {
  position: relative; /* dentro l'<header> fixed: segue la navbar automaticamente */
  left: 0;
  width: 100%;
  z-index: 999;
  background: linear-gradient(90deg, #1a1a1a 0%, #2c2c2c 50%, #1a1a1a 100%);
  color: var(--white);
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 50px 10px 16px;
  border-bottom: 2px solid var(--gold-color);
}

.annual-banner-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.annual-banner-badge {
  background: linear-gradient(135deg, var(--gold-color), var(--gold-dark));
  color: var(--black);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.annual-banner-text {
  margin: 0;
  font-size: 0.88rem;
  color: #e0e0e0;
  letter-spacing: 0.3px;
}

.annual-banner-text strong {
  color: var(--gold-light);
  font-weight: 700;
}

.annual-banner-btn {
  display: inline-block;
  padding: 6px 18px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-color));
  color: var(--black);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 30px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}

.annual-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.45);
  color: var(--black);
}

.annual-banner-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #aaaaaa;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 6px;
  transition: color 0.2s ease;
}

.annual-banner-close:hover {
  color: var(--white);
}

/* Nasconde il banner quando è chiuso */
.annual-banner.hidden {
  display: none;
}

@media (max-width: 768px) {
  .annual-banner {
    padding: 8px 30px 8px 12px;
  }
  .annual-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .annual-banner-badge {
    font-size: 0.6rem;
    padding: 2px 6px;
  }
  .annual-banner-text {
    font-size: 0.75rem;
    text-align: left;
    line-height: 1.3;
  }
  .annual-banner-btn {
    font-size: 0.7rem;
    padding: 6px 12px;
    align-self: stretch; /* Allarga il pulsante per facilitare il tap */
    text-align: center;
    margin-top: 2px;
  }
  .annual-banner-close {
    right: 8px;
    top: 10px;
    transform: none; /* Rimuove il centraggio verticale per posizionarlo in alto */
    font-size: 1.5rem;
  }
}

/* ============================================
   FINE BANNER ABBONAMENTO ANNUALE
   ============================================ */

/* ============================================
   BANNER INSTAGRAM
   ============================================ */

.instagram-btn {
  position: fixed;
  left: 18px;
  bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #fd5949, #d6249f, #285AEB);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2900;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.instagram-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 30px rgba(253, 89, 73, 0.4);
}

.instagram-btn:active {
  transform: scale(0.95);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.instagram-btn svg {
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.instagram-btn:hover svg {
  transform: scale(1.1);
}

/* Mobile responsivo */
@media (max-width: 768px) {
  .instagram-btn {
    right: 15px;
    bottom: 80px; /* Posizionato sopra il bottone promo mobile */
    width: 50px;
    height: 50px;
  }

  .instagram-btn svg {
    width: 28px;
    height: 28px;
  }
}

/* Collision avoidance con il banner promo */
@media (max-width: 480px) {
  .instagram-btn {
    right: 12px;
    bottom: 75px;
    width: 48px;
    height: 48px;
  }
}

/* ============================================
   FINE BANNER INSTAGRAM
   ============================================ */

/* ============================================
   BUBBLE "PENSIERO" INSTAGRAM
   ============================================ */

.instagram-btn {
  overflow: visible; /* fondamentale per far uscire la bubble */
}

.instagram-bubble {
  position: absolute;
  bottom: calc(100% + 22px);
  left: 0;              /* parte dal bordo sinistro del bottone */
  transform: none;      /* nessun centro */
  background: #fff;
  color: #1a1a1a;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  padding: 8px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  pointer-events: none;
}

/* Pallino grande — sotto il centro del bottone */
.instagram-bubble::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  bottom: -18px;
  left: 20px;           /* punta verso il centro del bottone (28px = metà di 56px) */
}

/* Pallino piccolo */
.instagram-bubble::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  bottom: -30px;
  left: 24px;
}

/* Mobile */
@media (max-width: 768px) {
  .instagram-bubble {
    font-size: 12px;
    padding: 7px 12px;
    transform: translateX(-15%);
  }
}

/* ============================================
   FINE BUBBLE INSTAGRAM
   ============================================ */