/* ===== REGOLE & INFO PAGE STYLES ===== */

.regole-page {
  padding-top: 100px;
  background-color: #f8fafc;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: #334155;
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
}

/* BACKGROUND DECORATIONS */
.regole-bg-decoration {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.4;
  pointer-events: none;
  /* Rimozione del filter: blur(100px) nativo che distrugge la GPU su mobile */
  /* Utilizziamo solo gradienti sfumati al suo posto */
}

.decor-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  top: -100px;
  left: -200px;
}

.decor-2 {
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(30, 41, 59, 0.05) 0%, transparent 70%);
  bottom: 20%;
  right: -300px;
}

/* HERO HEADER */
.regole-hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 20px 80px;
  max-width: 800px;
  margin: 0 auto;
}

.badge-blue {
  display: inline-block;
  background: rgba(6, 182, 212, 0.1);
  background: linear-gradient(135deg, #06B6D4 0%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.regole-title {
  font-size: 3.5rem;
  color: #1e293b;
  font-weight: 900;
  margin: 0 0 20px 0;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.regole-subtitle {
  color: #64748b;
  font-size: 1.15rem;
  line-height: 1.6;
  font-weight: 400;
  margin: 0;
}

/* CONTAINER */
.regole-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5% 80px;
  position: relative;
  z-index: 1;
}

/* LAYOUT GRID (Affiancato per grandi schermi) */
.regole-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 40px;
  gap: 40px;
  align-items: start;
}

@media (min-width: 992px) {
  .regole-grid {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
}

/* MAIN SECTION ACCORDIONS (Condizioni Generali, FAQ) */
.main-section-card {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0,0,0,0.02);
  border-top: 5px solid #0284C7;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.main-section-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.06), 0 4px 6px rgba(0,0,0,0.03);
}

.main-section-card:last-child {
  border-top-color: #1e293b; 
}

.main-section-header {
  padding: 35px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background-color: #ffffff;
  transition: background-color 0.3s ease;
}

.main-section-header:hover {
  background-color: #f8fafc;
}

.main-section-title {
  font-size: 1.6rem;
  color: #1e293b;
  font-weight: 800;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.main-section-subtitle {
  color: #64748b;
  font-size: 1.05rem;
  margin: 0;
}

.main-section-icon {
  font-size: 2.5rem;
  background: linear-gradient(135deg, #06B6D4 0%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 300;
  line-height: 1;
  flex-shrink: 0;
  margin-left: 20px;
  transition: transform 0.4s ease;
}

.main-section-card.open .main-section-icon {
  transform: rotate(180deg);
}

.main-section-card:last-child .main-section-icon {
  color: #1e293b; 
}

.main-section-body {
  padding: 0 40px 40px 40px;
}

/* INNER RULE ACCORDIONS */
.rule-item {
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 5px;
}

.rule-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.rule-header {
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.rule-header:hover .rule-title {
  background: linear-gradient(135deg, #06B6D4 0%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.rule-title {
  font-size: 1.15rem;
  color: #1e293b;
  font-weight: 700;
  margin: 0;
  padding-right: 20px;
  padding-left: 15px;
  transition: color 0.3s ease;
}

.rule-body {
  padding: 0 20px 25px 15px;
}

.rule-body p {
  line-height: 1.7;
  color: #475569;
  font-size: 1.05rem;
  margin-bottom: 15px;
}

.rule-body p:last-child {
  margin-bottom: 0;
}

.rule-body strong {
  color: #1e293b;
  font-weight: 700;
}

/* FAQ LIST & ITEMS */
.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-item {
  border-bottom: 1px solid #f1f5f9;
  padding: 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
}

.faq-header:hover .faq-question {
  background: linear-gradient(135deg, #06B6D4 0%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.faq-question {
  color: #334155;
  font-size: 1.1rem;
  font-weight: 600;
  padding-right: 20px;
  padding-left: 15px;
  transition: color 0.3s ease;
}

.faq-icon {
  background: linear-gradient(135deg, #06B6D4 0%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}

.faq-body {
  padding: 0 20px 25px 15px;
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* MODERN ACCORDION ANIMATION WRAPPER */
.accordion-content-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

.accordion-content-wrapper.open {
  grid-template-rows: 1fr;
  opacity: 1;
}

.accordion-content-inner {
  overflow: hidden;
}

/* ===== CTA CONTACT SECTION ===== */
.regole-cta-section {
  padding: 80px 5%;
  background-color: #ffffff;
  position: relative;
  z-index: 1;
  margin-top: 40px;
}

.regole-cta-card {
  max-width: 1000px;
  margin: 0 auto;
  background: linear-gradient(135deg, #06B6D4 0%, #0284c7 100%);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(6, 182, 212, 0.25);
  position: relative;
  overflow: hidden;
}

.regole-cta-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 50%;
  height: 200%;
  background: rgba(255, 255, 255, 0.1);
  transform: rotate(30deg);
  pointer-events: none;
}

.regole-cta-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.regole-cta-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.regole-cta-content h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.regole-cta-content p {
  font-size: 1.15rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 40px;
  opacity: 0.95;
}

.regole-cta-btn {
  display: inline-block;
  background-color: #ffffff;
  color: #0284c7;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 50px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.regole-cta-btn:hover {
  background-color: #111827;
  color: #FFFFFF;
  transform: translateY(-3px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
  .regole-page {
    padding-top: 90px;
  }
  
  .regole-title {
    font-size: 2.5rem;
  }

  .regole-hero {
    padding: 40px 20px 50px;
  }
  
  .main-section-header, .main-section-body {
    padding: 25px 20px;
  }
  
  .main-section-title {
    font-size: 1.4rem;
  }
  
  .rule-title, .faq-question {
    font-size: 1rem;
  }

  .regole-cta-card {
    padding: 40px 20px;
  }

  .regole-cta-content h2 {
    font-size: 1.8rem;
  }
}

