/* ============================================
   MILAN CLUB CARPI 1965 — Stylesheet
   ============================================ */

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

:root {
  --red: #C41E3A;
  --red-dark: #9B1530;
  --black: #111111;
  --black-mid: #1a1a1a;
  --black-soft: #242424;
  --white: #ffffff;
  --gray-light: #f7f7f5;
  --gray-mid: #888888;
  --border: #222222;
  --border-light: #e8e8e8;
  --font-heading: 'Oswald', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --font: var(--font-body);
  --radius: 8px;
  --transition: 0.2s ease;
  --shadow: 0 2px 16px rgba(0,0,0,0.07);
  --shadow-hover: 0 8px 28px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---- NAVBAR ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17,17,17,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  height: 64px;
}

.nav-logo {
  margin-right: auto;
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 40px;
  max-width: 140px;
  width: auto;
  display: block;
  object-fit: contain;
  object-position: left center;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  align-items: center;
}

.nav-links a {
  color: #aaa;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.nav-links a.nav-cta {
  color: var(--white);
  background: var(--red);
  padding: 8px 12px;
  font-weight: 600;
  margin-left: 4px;
  white-space: nowrap;
}

.nav-links a.nav-cta:hover { background: var(--red-dark); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #aaa;
  border-radius: 2px;
  transition: var(--transition);
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.84) 0%, rgba(100,0,20,0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 0;
}

.hero-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.0;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.68);
  margin-bottom: 36px;
  max-width: 440px;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 7px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.82);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: 7px;
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.65);
  color: var(--white);
}

/* ---- STATS BAR ---- */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: stretch;
}

.stat {
  flex: 1;
  padding: 30px 20px;
  text-align: center;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 1px;
  line-height: 1;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.stat-label {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 500;
}

.stat-sep {
  width: 1px;
  background: var(--border-light);
  align-self: stretch;
  margin: 18px 0;
}

/* ---- SECTIONS ---- */
.section {
  padding: 80px 0;
}

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

.section-dark {
  background: var(--black);
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: var(--red);
  flex-shrink: 0;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: var(--black);
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.section-heading-light {
  color: var(--white);
}

.section-body {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
  max-width: 640px;
}

/* ---- CARD GRID ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.card-icon {
  font-size: 20px;
  color: var(--red);
  margin-bottom: 14px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.card-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.65;
}

/* ---- ACTIVITIES ---- */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.activity-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border-light);
  transition: box-shadow var(--transition), transform var(--transition);
}

.activity-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.activity-icon {
  font-size: 22px;
  color: var(--red);
  margin-bottom: 14px;
}

.activity-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.activity-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

/* ---- PRICING GRID ---- */
.pricing-intro {
  font-size: 16px;
  color: #aaa;
  margin-top: 4px;
  margin-bottom: 52px;
  max-width: 560px;
  line-height: 1.7;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: #1c1c1c;
  border: 1px solid #2e2e2e;
  border-radius: 12px;
  padding: 36px 28px;
  position: relative;
  transition: transform var(--transition), border-color var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: #444;
}

.pricing-card-featured {
  background: var(--white);
  border-color: var(--white);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.pricing-card-featured:hover {
  transform: translateY(-12px);
}

.pricing-badge {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.pricing-name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.pricing-card-featured .pricing-name {
  color: var(--black);
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: -1px;
  line-height: 1;
}

.pricing-card-featured .pricing-price {
  color: var(--red);
}

.pricing-period {
  font-size: 13px;
  color: #777;
  margin-top: 4px;
  margin-bottom: 4px;
}

.pricing-card-featured .pricing-period {
  color: #999;
}

.pricing-divider {
  border: none;
  border-top: 1px solid #2e2e2e;
  margin: 24px 0;
}

.pricing-card-featured .pricing-divider {
  border-color: #e8e8e8;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 1.4;
}

.pricing-features li.on {
  color: #ccc;
}

.pricing-features li.on i {
  color: var(--red);
  font-size: 12px;
  flex-shrink: 0;
}

.pricing-features li.off {
  color: #444;
}

.pricing-features li.off i {
  color: #333;
  font-size: 12px;
  flex-shrink: 0;
}

.pricing-card-featured .pricing-features li.on {
  color: #333;
}

.pricing-card-featured .pricing-features li.off {
  color: #ccc;
}

.pricing-card-featured .pricing-features li.off i {
  color: #ccc;
}

.pricing-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 13px;
  border-radius: 7px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.pricing-btn:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

.pricing-btn-outline {
  background: transparent;
  border: 1.5px solid #3a3a3a;
  color: #aaa;
}

.pricing-btn-outline:hover {
  background: rgba(255,255,255,0.05);
  border-color: #666;
  color: var(--white);
}

/* ---- FORM TIER SELECTOR ---- */
.form-tier-selector {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid #2a2a2a;
}

.form-tier-label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
  margin-bottom: 12px;
}

.form-tier-options {
  display: flex;
  gap: 12px;
}

.form-tier-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 16px;
  border: 1.5px solid #333;
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #777;
}

.form-tier-option input[type="radio"] {
  display: none;
}

.form-tier-option.selected {
  border-color: var(--red);
  background: rgba(196,30,58,0.1);
  color: var(--white);
}

/* ---- MEMBERSHIP ---- */
.membership-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
  margin-top: 48px;
}

.membership-desc {
  font-size: 16px;
  color: #bbb;
  line-height: 1.8;
  margin-bottom: 28px;
}

.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.benefits-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #ddd;
}

.benefits-list li i {
  color: var(--red);
  font-size: 13px;
  flex-shrink: 0;
}

.membership-card {
  background: var(--white);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
}

.membership-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}

.membership-price {
  font-family: var(--font-heading);
  font-size: 58px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: 1px;
  line-height: 1;
}

.membership-period {
  font-size: 14px;
  color: #aaa;
  margin-top: 6px;
  margin-bottom: 8px;
}

.membership-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 24px 0;
}

.membership-card-note {
  font-size: 13px;
  color: #999;
  line-height: 1.65;
  margin-bottom: 24px;
}

.membership-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 14px;
}

/* ---- FORM SECTION ---- */
.form-section {
  background: var(--black-mid);
}

.form-section .section-label { color: var(--red); }

.form-intro {
  font-size: 14px;
  color: #666;
  margin-top: 4px;
  margin-bottom: 36px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

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

.form-group label {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  background: var(--black-soft);
  border: 1px solid #333;
  border-radius: var(--radius);
  padding: 11px 14px;
  font-size: 14px;
  color: #eee;
  font-family: var(--font);
  transition: border-color var(--transition);
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: #555; }

.form-group input:focus,
.form-group textarea:focus { border-color: var(--red); }

.form-group input.error,
.form-group textarea.error { border-color: #e05252; }

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

/* ---- UPLOAD ---- */
.upload-section {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid #2a2a2a;
}

.upload-section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 16px;
}

.upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.upload-box {
  position: relative;
  border: 1.5px dashed #333;
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.upload-box:hover { border-color: var(--red); }

.upload-box input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.upload-icon { font-size: 18px; color: var(--red); margin-bottom: 10px; }
.upload-label { font-size: 13px; font-weight: 500; color: #ccc; margin-bottom: 4px; }
.upload-hint { font-size: 11px; color: #555; }

.upload-box.has-file { border-color: #3a7a3a; background: rgba(58,122,58,0.05); }
.upload-box.has-file .upload-label { color: #7ec87e; }

.upload-note {
  font-size: 11px;
  color: #555;
  margin-top: 12px;
  line-height: 1.5;
}

/* ---- PRIVACY ---- */
.privacy-block {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid #2a2a2a;
  border-radius: var(--radius);
}

.privacy-label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 12px;
  color: #777;
  line-height: 1.65;
}

.privacy-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--red);
  min-width: 16px;
  height: 16px;
  cursor: pointer;
}

/* ---- SUBMIT ---- */
.btn-submit {
  display: block;
  width: 100%;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 15px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 24px;
  font-family: var(--font);
  transition: background var(--transition), transform var(--transition);
  letter-spacing: 0.3px;
}

.btn-submit:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-submit:disabled { background: #444; cursor: not-allowed; transform: none; }

.form-message {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
}

.form-message.success {
  background: rgba(58,122,58,0.12);
  border: 1px solid #3a7a3a;
  color: #7ec87e;
}

.form-message.error {
  background: rgba(196,30,58,0.08);
  border: 1px solid var(--red);
  color: #e07070;
}

/* ---- FAQ ---- */
.faq-list {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: var(--white);
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--black);
  letter-spacing: 0.5px;
  transition: background var(--transition);
  gap: 16px;
}

.faq-question:hover { background: var(--gray-light); }

.faq-icon {
  font-size: 12px;
  color: var(--red);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.faq-item.open .faq-icon { transform: rotate(180deg); }

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  background: var(--white);
  border-top: 1px solid var(--border-light);
}

.faq-item.open .faq-answer { display: block; }

.faq-answer p {
  font-size: 14px;
  color: #666;
  line-height: 1.78;
  padding-top: 16px;
}

.faq-answer a {
  color: var(--red);
  text-decoration: none;
}

.faq-answer a:hover { text-decoration: underline; }

/* ---- CONTATTI ---- */
.contatti-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}

.contatto-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow var(--transition), transform var(--transition);
}

.contatto-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.contatto-icon-wrap {
  width: 42px;
  height: 42px;
  background: #fff0f2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--red);
  flex-shrink: 0;
}

.contatto-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aaa;
  margin-bottom: 5px;
}

.contatto-value {
  font-size: 15px;
  color: var(--black);
  font-weight: 500;
}

.contatto-value a {
  color: var(--red);
  text-decoration: none;
}

.contatto-value a:hover { text-decoration: underline; }

/* ---- FOOTER ---- */
.footer {
  background: var(--black);
  border-top: 1px solid #1e1e1e;
  padding: 52px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.65;
  max-width: 280px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  color: #555;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  font-size: 13px;
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid #1e1e1e;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 12px;
  color: #444;
}

.footer-social {
  display: flex;
  gap: 16px;
}

.footer-social a {
  color: #555;
  font-size: 18px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-social a:hover { color: var(--red); }

/* ---- NAV LOGO LINK ---- */
a.nav-logo { text-decoration: none; }

.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.07);
}

/* ---- NEWS GRID ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.article-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), transform var(--transition);
}

.article-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.article-card-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.article-card-thumb-placeholder {
  width: 100%;
  height: 180px;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--red);
  flex-shrink: 0;
}

.article-card-body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-tag {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
  margin-bottom: 10px;
  align-self: flex-start;
}

.article-date {
  font-size: 11px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.article-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  line-height: 1.25;
}

.article-excerpt {
  font-size: 13px;
  color: #666;
  line-height: 1.65;
  flex: 1;
}

.news-more {
  margin-top: 44px;
  text-align: center;
}

/* ---- PAGE HERO (pagine interne) ---- */
.page-hero {
  background: var(--black);
  padding: 72px 0 56px;
  border-bottom: 3px solid var(--red);
}

.page-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
  line-height: 1.05;
}

.page-hero-sub {
  font-size: 16px;
  color: #777;
  max-width: 520px;
  line-height: 1.65;
}

/* ---- GALLERY ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 48px;
}

.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 6px;
  position: relative;
  background: #111;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

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

.gallery-item.span2 { grid-column: span 2; }

.gallery-placeholder-item {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #2a2a2a;
  background: #1a1a1a;
}

.gallery-placeholder-item i { font-size: 28px; }

.gallery-placeholder-item span {
  font-family: var(--font-heading);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #333;
}

.gallery-upload-note {
  margin-top: 28px;
  text-align: center;
  font-size: 13px;
  color: #aaa;
  padding: 16px 24px;
  border: 1.5px dashed #ddd;
  border-radius: var(--radius);
}

/* ---- SEDE ---- */
.sede-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  margin-top: 48px;
}

.sede-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.sede-info-icon {
  width: 44px;
  height: 44px;
  background: #fff0f2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--red);
  flex-shrink: 0;
}

.sede-info-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #aaa;
  margin-bottom: 5px;
}

.sede-info-value {
  font-size: 15px;
  color: var(--black);
  font-weight: 500;
  line-height: 1.5;
}

.sede-map-placeholder {
  background: #f0f0f0;
  border-radius: var(--radius);
  height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ccc;
  gap: 14px;
}

.sede-map-placeholder i { font-size: 48px; }

.sede-map-placeholder p {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #bbb;
}

.sede-history {
  margin-top: 64px;
  padding-top: 64px;
  border-top: 1px solid var(--border-light);
}

/* ---- FAQ CTA BANNER ---- */
.faq-cta-section {
  background: var(--red);
  padding: 80px 0;
  text-align: center;
  margin-top: 80px;
}

.faq-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.faq-cta-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.78);
  margin-bottom: 36px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.65;
}

.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--red);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 40px;
  border-radius: 7px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition);
}

.btn-white:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* ---- FAQ CATEGORIE ---- */
.faq-category {
  margin-bottom: 48px;
}

.faq-category-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--red);
}

.faq-category-icon {
  width: 40px;
  height: 40px;
  background: var(--red);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 16px;
  flex-shrink: 0;
}

.faq-category-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card-featured { transform: none; }
  .pricing-card-featured:hover { transform: translateY(-4px); }
}

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .membership-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0; right: 0;
    background: var(--black);
    flex-direction: column;
    padding: 12px 0 16px;
    border-bottom: 1px solid var(--border);
    gap: 0;
  }

  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }

  .nav-links a {
    display: block;
    padding: 12px 24px;
    border-radius: 0;
  }

  .nav-links a.nav-cta {
    margin: 8px 24px 0;
    display: block;
    text-align: center;
    border-radius: 6px;
  }

  .hero { min-height: 440px; }

  .stats-inner { flex-wrap: wrap; }
  .stat { min-width: 50%; border-bottom: 1px solid var(--border-light); }
  .stat-sep { display: none; }

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

  .form-tier-options { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }

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

  .contatti-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.span2 { grid-column: span 1; }
  .sede-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .section { padding: 60px 0; }

  .membership-card { margin-top: 8px; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  .stats-inner { padding: 0 20px; }
  .nav-inner { padding: 0 20px; }
  .hero-content { padding: 56px 0; }
}

/* ════════════════════════════════════════════════════════════
   NUOVE SEZIONI — v2: home cards, page hero image, gallerie
   ════════════════════════════════════════════════════════════ */

/* ---- WHATSAPP NAVBAR ---- */
.nav-whatsapp {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4dcf7a;
  font-size: 20px;
  text-decoration: none;
  margin-left: 12px;
  padding: 5px 8px;
  border-radius: 6px;
  transition: background var(--transition);
  flex-shrink: 0;
}
.nav-whatsapp:hover { background: rgba(77,207,122,0.12); }
.nav-whatsapp-num {
  font-size: 12px;
  font-weight: 600;
  color: #4dcf7a;
}

/* ---- PAGE HERO — supporto immagine di sfondo dinamica ---- */
.page-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.88) 0%, rgba(120,0,25,0.58) 100%);
}
.page-hero .container { position: relative; z-index: 1; }

/* ---- HOME HERO (compatto per mostrare le card) ---- */
.home-hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* ---- HOME CARDS GRID (8 rettangoli) ---- */
.home-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.home-card {
  position: relative;
  height: 230px;
  overflow: hidden;
  text-decoration: none;
  display: block;
}

.home-card-bg {
  position: absolute;
  inset: 0;
  background: var(--black-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-card-bg-icon {
  font-size: 52px;
  color: rgba(255,255,255,0.05);
}

.home-card-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.home-card:hover .home-card-bg img { transform: scale(1.07); }

.home-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.38) 55%, rgba(0,0,0,0.08) 100%);
  transition: background 0.35s ease;
}

.home-card:hover .home-card-overlay {
  background: linear-gradient(to top, rgba(164,0,28,0.88) 0%, rgba(0,0,0,0.55) 65%, rgba(0,0,0,0.15) 100%);
}

.home-card-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 18px;
  z-index: 2;
}

.home-card-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.1;
  margin-bottom: 4px;
}

.home-card-desc {
  font-size: 11px;
  color: rgba(255,255,255,0.56);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.home-card-arrow {
  position: absolute;
  top: 12px; right: 12px;
  width: 28px; height: 28px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.3s, background 0.3s;
  z-index: 3;
}
.home-card:hover .home-card-arrow { opacity: 1; background: var(--red); }

/* ---- LIGHTBOX ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.97);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 4px;
  display: block;
}

.lightbox-caption {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.62);
  font-size: 13px;
  text-align: center;
  max-width: 600px;
  padding: 0 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox-close {
  position: fixed;
  top: 18px; right: 22px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.08);
  border: none; border-radius: 50%;
  color: #fff; font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 10000;
}
.lightbox-close:hover { background: var(--red); }

.lightbox-nav {
  position: fixed;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.08);
  border: none; border-radius: 50%;
  color: #fff; font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  z-index: 10000;
}
.lightbox-nav:hover { background: var(--red); }
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

/* ---- GALLERY DYNAMIC ---- */
.gallery-filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 32px;
  margin-bottom: 8px;
}

.gallery-filter-btn {
  padding: 7px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: 20px;
  background: none;
  font-family: var(--font-heading);
  font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: #888;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.gallery-filter-btn:hover { border-color: var(--red); color: var(--red); }
.gallery-filter-btn.active { border-color: var(--red); background: var(--red); color: var(--white); }

.gallery-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  color: #bbb;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.gallery-empty i { font-size: 38px; color: #ddd; }

/* ---- EVENTI / LOCANDINE ---- */
.eventi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.evento-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--black-soft);
  border: 1px solid #2a2a2a;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}
.evento-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.3); }

.evento-card-img {
  aspect-ratio: 2/3;
  overflow: hidden;
  background: #111;
}
.evento-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s;
}
.evento-card:hover .evento-card-img img { transform: scale(1.04); }

.evento-card-body { padding: 12px 16px; }
.evento-card-title {
  font-family: var(--font-heading);
  font-size: 14px; font-weight: 600;
  color: var(--white); text-transform: uppercase;
  letter-spacing: 0.5px; margin-bottom: 4px;
}
.evento-card-desc { font-size: 12px; color: #888; line-height: 1.5; }

/* ---- BENEFICENZA ---- */
.beneficenza-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.benef-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--white);
  transition: box-shadow 0.2s;
}
.benef-card:hover { box-shadow: var(--shadow-hover); }

.benef-card-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #eee;
  cursor: pointer;
}
.benef-card-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.4s;
}
.benef-card:hover .benef-card-img img { transform: scale(1.04); }
.benef-card-body { padding: 18px 22px; }
.benef-card-desc { font-size: 14px; color: #555; line-height: 1.75; }

/* ---- GADGET ---- */
.gadget-wa-cta {
  margin-top: 52px;
  text-align: center;
  padding: 40px 24px;
  background: var(--gray-light);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}
.gadget-wa-icon { font-size: 38px; color: #4dcf7a; margin-bottom: 14px; }
.gadget-wa-title {
  font-family: var(--font-heading);
  font-size: 22px; font-weight: 700;
  color: var(--black);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 10px;
}
.gadget-wa-desc {
  font-size: 14px; color: #666;
  margin-bottom: 22px;
  max-width: 440px; margin-left: auto; margin-right: auto;
  line-height: 1.65;
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: var(--white);
  font-weight: 600; font-size: 15px;
  padding: 13px 28px;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn-whatsapp:hover { background: #1ebe5a; transform: translateY(-1px); }

/* ---- CLASSIFICHE & RISULTATI ---- */
.class-section-title {
  font-family: var(--font-heading);
  font-size: 17px; font-weight: 700;
  color: var(--black);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--red);
  display: flex; align-items: center; gap: 10px;
}
.class-section-title i { color: var(--red); font-size: 14px; }

.risultati-list {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 40px;
  min-height: 60px;
}

.risultato-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  font-size: 13px;
  transition: box-shadow 0.2s;
}
.risultato-item:hover { box-shadow: var(--shadow); }

.risultato-comp {
  font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  color: #bbb; min-width: 74px;
}
.risultato-date { font-size: 11px; color: #aaa; min-width: 52px; }
.risultato-match { flex: 1; font-weight: 500; color: var(--black); }
.risultato-score {
  font-family: var(--font-heading);
  font-size: 16px; font-weight: 700;
  color: var(--black); letter-spacing: 1px;
  min-width: 48px; text-align: right;
}
.risultato-score.win  { color: var(--red); }
.risultato-score.draw { color: #888; }
.risultato-score.upcoming {
  font-size: 11px; color: #aaa;
  font-style: italic;
  font-family: var(--font);
  font-weight: 400;
}

.class-note {
  font-size: 12px; color: #bbb;
  padding: 16px 20px;
  background: var(--gray-light);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  margin-top: 12px;
  line-height: 1.65;
}

/* ---- CHI SIAMO — TIMELINE ---- */
.storia-intro {
  font-size: 16px; color: #555; line-height: 1.85;
  max-width: 680px; margin-bottom: 56px;
}

.storia-timeline { display: flex; flex-direction: column; }

.storia-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 0 24px;
  position: relative;
}

.storia-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 75px;
  top: 26px;
  bottom: -4px;
  width: 2px;
  background: var(--border-light);
}

.storia-year { text-align: right; padding: 2px 0 28px; }
.storia-year-num {
  font-family: var(--font-heading);
  font-size: 17px; font-weight: 700;
  color: var(--red); letter-spacing: 1px;
}

.storia-content {
  padding: 0 0 28px 20px;
  position: relative;
}
.storia-content::before {
  content: '';
  width: 12px; height: 12px;
  background: var(--red);
  border-radius: 50%;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 2px var(--red);
  position: absolute;
  left: -7px; top: 4px;
}
.storia-content-title {
  font-family: var(--font-heading);
  font-size: 15px; font-weight: 600;
  color: var(--black);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 5px;
}
.storia-content-text {
  font-size: 14px; color: #666; line-height: 1.72;
}

/* ---- SEDE ---- */
.sede-orari-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.sede-orari-table td { padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; color: var(--black); }
.sede-orari-table td:first-child { color: #999; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; width: 120px; }

/* ---- CONTENUTO CARD (eventi, beneficenza) ---- */
.contenuto-list { display: flex; flex-direction: column; gap: 48px; margin-top: 48px; }

.contenuto-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.2s;
}
.contenuto-card:hover { box-shadow: var(--shadow-hover); }

.contenuto-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-light);
  background: var(--white);
}

.contenuto-date {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 8px;
}

.contenuto-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.contenuto-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.75;
}

.contenuto-photos {
  padding: 20px 28px 28px;
  background: var(--gray-light);
}

.contenuto-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.contenuto-foto-wrap {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
}

.contenuto-foto-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s;
}

.contenuto-foto-wrap:hover img { transform: scale(1.05); }

.contenuto-foto-caption {
  padding: 6px 10px;
  font-size: 11px;
  color: #666;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  min-height: 24px;
}

/* ---- GADGET CARD ---- */
.gadget-list { display: flex; flex-direction: column; gap: 40px; margin-top: 48px; }

.gadget-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.2s;
}
.gadget-card:hover { box-shadow: var(--shadow-hover); }

.gadget-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.gadget-header-left { flex: 1; }

.gadget-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.gadget-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  white-space: nowrap;
}

.badge-disponibile  { background: #e8f5e9; color: #2e7d32; }
.badge-esaurito     { background: #fce4e4; color: #c62828; }
.badge-tipo         { background: #e3f2fd; color: #1565c0; }
.badge-taglia       { background: var(--gray-light); color: #555; border: 1px solid var(--border-light); }

.gadget-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.7;
}

.gadget-photos {
  padding: 16px 24px 24px;
  background: var(--gray-light);
}

/* ---- GALLERY MASONRY (stile milanistra) ---- */
.gallery-masonry {
  columns: 3 240px;
  column-gap: 8px;
  margin-top: 24px;
}

.gallery-masonry-item {
  break-inside: avoid;
  margin-bottom: 8px;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
  position: relative;
}

.gallery-masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.35s ease;
}

.gallery-masonry-item:hover img { transform: scale(1.04); }

.gallery-masonry-caption {
  padding: 5px 8px;
  font-size: 11px;
  color: #555;
  background: var(--white);
  border-top: 1px solid var(--border-light);
}

@media (max-width: 768px) {
  .gallery-masonry { columns: 2; }
}
@media (max-width: 480px) {
  .gallery-masonry { columns: 1; }
}

/* ---- GALLERY CAPTION (legacy) ---- */
.gallery-item-wrap {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #111;
  cursor: pointer;
}
.gallery-item-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s;
}
.gallery-item-wrap:hover img { transform: scale(1.05); }
.gallery-item-caption {
  padding: 5px 8px;
  font-size: 11px;
  color: #555;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  min-height: 22px;
}

/* ---- FILTER BAR DARK (per pagine con sfondo scuro) ---- */
.gallery-filter-bar-dark .gallery-filter-btn {
  border-color: #444;
  color: #888;
}
.gallery-filter-bar-dark .gallery-filter-btn:hover { border-color: var(--red); color: var(--red); }
.gallery-filter-bar-dark .gallery-filter-btn.active { border-color: var(--red); background: var(--red); color: var(--white); }

/* ---- CONTENUTO DINAMICO WYSIWYG ---- */
.ql-size-small { font-size: 0.8em; }
.ql-size-large { font-size: 1.4em; line-height: 1.4; }
.ql-size-huge  { font-size: 1.9em; line-height: 1.2; }

[id$="-dinamico"] {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
[id$="-dinamico"] p    { margin-bottom: 12px; line-height: 1.75; font-size: 16px; color: #555; }
[id$="-dinamico"] h2   { font-family: var(--font-heading); font-size: clamp(24px,4vw,40px);
                          font-weight:700; text-transform:uppercase; letter-spacing:1px;
                          color:var(--black); margin-bottom:20px; }
[id$="-dinamico"] h3   { font-family: var(--font-heading); font-size: clamp(17px,3vw,24px);
                          font-weight:600; text-transform:uppercase; letter-spacing:0.5px;
                          color:var(--black); margin-bottom:10px; margin-top:20px; }
[id$="-dinamico"] ul,
[id$="-dinamico"] ol   { padding-left: 20px; margin-bottom: 12px; }
[id$="-dinamico"] li   { line-height: 1.75; color: #555; margin-bottom: 4px; }
[id$="-dinamico"] a    { color: var(--red); text-decoration: none; }
[id$="-dinamico"] a:hover { text-decoration: underline; }
[id$="-dinamico"] strong { font-weight: 700; }

@media (max-width: 768px) {
  .ql-size-large { font-size: 1.2em; }
  .ql-size-huge  { font-size: 1.5em; }
  [id$="-dinamico"] p { font-size: 15px; }
  [id$="-dinamico"] h2 { font-size: clamp(20px,5vw,28px); }
}

/* ---- RESPONSIVE NUOVE SEZIONI ---- */
@media (max-width: 960px) {
  .home-cards { grid-template-columns: repeat(2, 1fr); }
  .eventi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .home-card { height: 160px; }
  .home-card-title { font-size: 14px; }
  .beneficenza-grid { grid-template-columns: 1fr; }
  .nav-whatsapp-num { display: none; }
}

@media (max-width: 480px) {
  .home-cards { grid-template-columns: 1fr; }
  .home-card { height: 140px; }
  .eventi-grid { grid-template-columns: 1fr; }
}
