/* ============================================
   CENTRO CULTURALE L'INNOMINATO
   Palette vivace: teal, viola, giallo/oro
   ============================================ */

/* --- CSS Variables --- */
:root {
  --teal: #1ABFB0;
  --teal-dark: #159E91;
  --purple: #2A8FBD;
  --purple-dark: #1B6E99;
  --yellow: #F4D03F;
  --yellow-dark: #D4AC0D;
  --black: #1a1a1a;
  --dark: #2C2C2C;
  --grey: #666;
  --light-grey: #f5f5f5;
  --white: #ffffff;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', 'Segoe UI', Arial, sans-serif;
  --max-width: 1200px;
  --transition: all 0.3s ease;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--dark);
  line-height: 1.7;
  background: var(--white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }

.section-label {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-title {
  text-align: center;
  color: var(--purple-dark);
  margin-bottom: 2rem;
}

.section-title em {
  font-style: italic;
  color: var(--teal-dark);
}

/* --- Header / Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  transition: var(--transition);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img,
.logo svg {
  height: 195px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--black);
}

.logo-text span {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--grey);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* Desktop Navigation */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav a {
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--dark);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--teal);
  border-radius: 2px;
  transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 60%;
}

.main-nav a:hover {
  color: var(--teal-dark);
}

.main-nav a.active {
  color: var(--teal-dark);
}

.nav-cta {
  background: var(--yellow) !important;
  color: var(--black) !important;
  border-radius: 50px;
  padding: 0.6rem 1.5rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 15px rgba(244,208,63,0.4);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--yellow-dark) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(244,208,63,0.5);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
  background: none;
  border: none;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 100px;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.5s ease;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,191,176,0.7) 0%, rgba(42,143,189,0.7) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 2rem;
}

.hero-content h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  margin-bottom: 0.3rem;
  text-shadow: 2px 2px 20px rgba(0,0,0,0.3);
}

.hero-content h1 em {
  font-style: italic;
  color: var(--yellow);
}

.hero-content .hero-subtitle {
  font-size: 1.1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 300;
  margin-top: 1rem;
  opacity: 0.9;
}

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 3;
}

/* Page hero (for inner pages) */
.page-hero {
  position: relative;
  height: 50vh;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  margin-top: 100px;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,191,176,0.75) 0%, rgba(42,143,189,0.75) 100%);
}

.page-hero .hero-content {
  z-index: 2;
}

.page-hero .hero-wave {
  z-index: 3;
}

/* --- Section Spacing --- */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--light-grey);
}

/* --- Event Cards --- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(0,0,0,0.08);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.card-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: linear-gradient(135deg, var(--teal), var(--purple));
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  color: var(--purple-dark);
  margin-bottom: 0.5rem;
}

.card-body h3 a:hover {
  color: var(--teal);
}

.card-meta {
  font-size: 0.9rem;
  color: var(--grey);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(42,143,189,0.4);
}

.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(42,143,189,0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--purple-dark);
  border: 2px solid var(--purple);
}

.btn-secondary:hover {
  background: var(--purple);
  color: var(--white);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(26,191,176,0.4);
}

.btn-teal:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--black);
  box-shadow: 0 4px 15px rgba(244,208,63,0.4);
}

.btn-yellow:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
}

.btn-center {
  text-align: center;
  margin-top: 2.5rem;
}

/* --- Chi Siamo (About) Section on Homepage --- */
.about-banner {
  position: relative;
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--teal) 0%, #2A8FBD 100%);
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.about-banner h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.about-banner h2 em {
  color: var(--yellow);
}

.about-banner p {
  max-width: 700px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  opacity: 0.95;
  line-height: 1.8;
}

/* --- Network / Partners --- */
.partners-section {
  position: relative;
  padding: 5rem 0;
  background: linear-gradient(180deg, #2A8FBD 0%, var(--purple-dark) 100%);
  color: var(--white);
  text-align: center;
}

.partners-section .section-label {
  color: var(--yellow);
}

.partners-section .section-title {
  color: var(--white);
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
}

.partners-grid a {
  display: block;
  opacity: 0.8;
  transition: var(--transition);
  filter: brightness(0) invert(1);
}

.partners-grid a:hover {
  opacity: 1;
  transform: scale(1.1);
}

.partners-grid img {
  height: 60px;
  width: auto;
}

/* --- Newsletter Section --- */
.newsletter-section {
  padding: 5rem 0;
  text-align: center;
  background: var(--light-grey);
}

.newsletter-form {
  display: flex;
  max-width: 500px;
  margin: 2rem auto 0;
  gap: 0;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 1rem 1.5rem;
  border: 2px solid #ddd;
  border-right: none;
  border-radius: 50px 0 0 50px;
  font-size: 1rem;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--teal);
}

.newsletter-form button {
  padding: 1rem 2rem;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 0 50px 50px 0;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.newsletter-form button:hover {
  background: var(--teal-dark);
}

.newsletter-privacy {
  font-size: 0.8rem;
  color: var(--grey);
  margin-top: 1rem;
}

.newsletter-privacy a {
  color: var(--teal);
  text-decoration: underline;
}

/* --- Contact Columns --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  margin-top: 2rem;
}

.contact-card {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-card h4 {
  color: var(--purple-dark);
  margin-bottom: 1rem;
}

.contact-card p {
  color: var(--grey);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--purple);
  transform: translateY(-3px);
}

.social-links a.youtube {
  background: #FF0000;
}

.social-links a.youtube:hover {
  background: #cc0000;
}

/* --- Wave SVG Dividers --- */
.wave-divider {
  display: block;
  width: 100%;
  line-height: 0;
}

.wave-divider svg {
  width: 100%;
  height: auto;
}

/* --- Footer logo allineato all'header --- */
.site-footer .logo img,
.site-footer .logo svg {
  height: 195px !important;
  width: auto;
}

/* --- Campagna associativa 2026 --- */
.campagna-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #1B6E99 0%, #1ABFB0 100%);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.campagna-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.campagna-section .section-label {
  color: var(--yellow);
}

.campagna-section .section-title {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.campagna-tema {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-style: italic;
  color: var(--yellow);
  margin-bottom: 3rem;
}

.campagna-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 960px;
  margin: 0 auto 3rem;
  text-align: left;
  position: relative;
  z-index: 1;
}

.campagna-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(5px);
}

.campagna-card h3 {
  font-family: var(--font-heading);
  color: var(--yellow);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.campagna-card p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.8rem;
}

.campagna-card p strong {
  color: var(--white);
}

.campagna-cta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.campagna-quota {
  background: var(--yellow);
  color: var(--black);
  border-radius: 16px;
  padding: 1.2rem 2.5rem;
  font-weight: 700;
  font-size: 1.1rem;
}

.campagna-quota span {
  display: block;
  font-size: 2rem;
  font-family: var(--font-heading);
}

@media (max-width: 768px) {
  .campagna-grid {
    grid-template-columns: 1fr;
  }
  .campagna-cta {
    flex-direction: column;
  }
}

/* --- Footer --- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.footer-brand .logo-text {
  color: var(--white);
}

.footer-brand .logo-text span {
  color: rgba(255,255,255,0.5);
}

.footer-info {
  text-align: center;
}

.footer-info p {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.footer-info .footer-social {
  margin-top: 1.5rem;
}

.footer-info .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  margin: 0 0.3rem;
  transition: var(--transition);
}

.footer-info .footer-social a:hover {
  background: var(--teal);
}

.footer-cta {
  text-align: right;
}

.footer-cta p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.6);
}

.footer-bottom a:hover {
  color: var(--teal);
}

/* --- Contact Form (page) --- */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,191,176,0.15);
}

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

/* --- Diventa Socio --- */
.membership-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.benefit-card {
  padding: 2rem;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  text-align: center;
  transition: var(--transition);
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.benefit-card h4 {
  color: var(--purple-dark);
  margin-bottom: 0.5rem;
}

/* --- Back to top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(42,143,189,0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--teal);
  transform: translateY(-3px);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-cta {
    text-align: center;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
    z-index: 1001;
  }

  /* Logo ridotto su mobile per non sformare l'header */
  .logo img,
  .logo svg {
    height: 55px;
    width: auto;
  }

  /* Container header con altezza fissa su mobile */
  .site-header .container {
    height: 70px;
    padding: 0 1rem;
  }

  /* Hero margin-top allineato all'altezza header mobile */
  .hero {
    margin-top: 70px;
  }

  .page-hero {
    margin-top: 70px;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 999;
    pointer-events: none;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .main-nav a {
    padding: 0.8rem 1rem;
    width: 100%;
    text-align: center;
  }

  .hero {
    min-height: 70vh;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
    gap: 0.8rem;
  }

  .newsletter-form input[type="email"] {
    border-radius: 50px;
    border-right: 2px solid #ddd;
  }

  .newsletter-form input[type="email"]:focus {
    border-color: var(--teal);
  }

  .newsletter-form button {
    border-radius: 50px;
  }
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Chi Siamo Page specific --- */
.about-content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.9;
}

.about-content p {
  margin-bottom: 1.5rem;
}

.about-content strong {
  color: var(--purple-dark);
}

.about-image-banner {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  margin: 3rem 0;
}

.about-image-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,191,176,0.5) 0%, rgba(42,143,189,0.5) 100%);
}

/* --- Incontri archive filters --- */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  border: 2px solid var(--teal);
  background: transparent;
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--teal);
  color: var(--white);
}

/* ============================================
   MODAL FORM ISCRIZIONE SOCIO
   ============================================ */
.socio-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

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

.socio-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}

.socio-modal-container {
  position: relative;
  background: var(--white);
  border-radius: 20px;
  max-width: 720px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.socio-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--grey);
  cursor: pointer;
  line-height: 1;
  z-index: 1;
  transition: color 0.2s;
}

.socio-modal-close:hover {
  color: var(--black);
}

.socio-modal-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--light-grey);
}

.socio-modal-header h2 {
  font-family: var(--font-heading);
  color: var(--purple-dark);
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.socio-modal-header p {
  color: var(--grey);
  font-size: 0.95rem;
}

/* Form layout */
.socio-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.socio-form .form-group {
  display: flex;
  flex-direction: column;
}

.socio-form .form-group-full {
  grid-column: 1 / -1;
}

.socio-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.35rem;
}

.socio-form label .req {
  color: #e74c3c;
}

.socio-form input[type="text"],
.socio-form input[type="email"],
.socio-form input[type="tel"],
.socio-form input[type="date"],
.socio-form select {
  padding: 0.7rem 0.9rem;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fafafa;
}

.socio-form input:focus,
.socio-form select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,191,176,0.15);
  background: var(--white);
}

.socio-form input.error,
.socio-form select.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231,76,60,0.1);
}

.socio-form input[type="checkbox"].error {
  outline: 2px solid #e74c3c;
  outline-offset: 2px;
}

/* Declarations section */
.form-declarations {
  margin: 1.5rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
  border-left: 4px solid var(--purple);
}

.form-declarations h3 {
  font-family: var(--font-heading);
  color: var(--purple-dark);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 1rem;
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--dark);
}

.form-check input[type="checkbox"] {
  margin-top: 0.25rem;
  min-width: 18px;
  min-height: 18px;
  accent-color: var(--teal);
  cursor: pointer;
}

/* Payment section */
.form-payment {
  margin: 1.5rem 0;
  padding: 1.2rem 1.5rem;
  background: linear-gradient(135deg, #e8f8f5 0%, #ebf5fb 100%);
  border-radius: 12px;
  text-align: center;
  font-size: 0.92rem;
}

.form-payment a {
  color: var(--teal-dark);
  text-decoration: underline;
}

/* Actions */
.form-actions {
  text-align: center;
  margin-top: 1.5rem;
}

.socio-submit-btn {
  padding: 0.9rem 3rem !important;
  font-size: 1rem !important;
  min-width: 280px;
}

/* Messages */
.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 500;
}

.form-message.error {
  background: #fef2f2;
  color: #c0392b;
  border: 1px solid #f5c6cb;
}

.form-message.success {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #86efac;
}

/* Success state */
.socio-success {
  text-align: center;
  padding: 2rem 0;
}

.success-icon {
  font-size: 4rem;
  color: var(--teal);
  margin-bottom: 1rem;
}

.socio-success h2 {
  font-family: var(--font-heading);
  color: var(--purple-dark);
  margin-bottom: 0.5rem;
}

.socio-success p {
  color: var(--grey);
  line-height: 1.7;
}

/* Mobile */
@media (max-width: 768px) {
  .socio-modal-container {
    width: 96%;
    padding: 1.5rem;
    max-height: 95vh;
    border-radius: 16px;
  }

  .socio-form .form-row {
    grid-template-columns: 1fr;
  }

  .socio-modal-header h2 {
    font-size: 1.3rem;
  }

  .socio-submit-btn {
    min-width: auto;
    width: 100%;
  }

  .form-declarations {
    padding: 1rem;
  }
}
