/* ============================================================
   Calisthenics Colleferro ASD — Sito pubblico
   Colori brand: Nero #1a1a1a | Oro #B8943F | Bianco #ffffff
   ============================================================ */

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

:root {
  --black:    #1a1a1a;
  --dark:     #111111;
  --gold:     #B8943F;
  --gold-lt:  #d4ad5a;
  --white:    #ffffff;
  --gray:     #f5f5f3;
  --text:     #333333;
  --muted:    #666666;
  --border:   #e8e8e8;
  --radius:   14px;
  --max-width: 1080px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ---- NAVBAR ---- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav-logo {
  height: 68px;
  width: auto;
  max-width: none;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.02em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--gold); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px 32px;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -8px 0 32px rgba(0,0,0,.12);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { font-size: 1.05rem; }
  body.nav-open { overflow: hidden; }
}

@media (max-width: 640px) {
  .nav-links a { font-size: 1rem; }
}

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--black);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(184,148,63,.18) 0%, transparent 65%);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60"><circle cx="1" cy="1" r="1" fill="rgba(255,255,255,.06)"/></svg>') repeat;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 40px;
  padding-bottom: 80px;
}
.hero-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 28px;
}
.hero-content h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,.7);
  max-width: 480px;
  margin-bottom: 44px;
  line-height: 1.7;
}
.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 15px 36px;
  border-radius: 6px;
  transition: background .2s, transform .15s;
}
.btn-gold:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
}

/* ---- SECTION ---- */
.section { padding: 96px 0; }
.section-dark {
  background: var(--black);
  color: var(--white);
}

.section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.section-heading {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.section-subheading {
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 640px;
}

.label-gold {
  display: inline-block;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--black);
  line-height: 1.15;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}
h2.white { color: var(--white); }

/* ---- CHI SIAMO (sezione breve, homepage) ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.col-text p {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 1rem;
}
.features {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.feature strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 3px;
}
.feature span {
  font-size: 0.88rem;
  color: var(--muted);
}
.col-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-big {
  width: 100%;
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 16px 48px rgba(0,0,0,.12));
}

.chi-siamo-cta { margin-top: 32px; }

/* ---- CONTATTI ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.contact-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 36px 28px;
  text-align: center;
  transition: border-color .2s, background .2s;
}
.contact-card:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--gold);
}
.contact-icon { font-size: 2rem; margin-bottom: 16px; }
.contact-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.contact-card p {
  color: rgba(255,255,255,.6);
  font-size: 0.9rem;
  margin-bottom: 14px;
  line-height: 1.6;
}
.link-gold {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color .2s;
  word-break: break-all;
}
.link-gold:hover { color: var(--gold-lt); }

.map-wrap {
  margin-top: 56px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
}

/* ---- Nutrizione (featured) ---- */
.nutrition-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c2416 100%);
  color: #fff;
  border-radius: 24px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 768px) { .nutrition-section { grid-template-columns: 1fr; padding: 32px 24px; } }

.nutrition-section .badge {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.nutrition-section h2 { font-size: 1.9rem; font-weight: 800; margin-bottom: 12px; color: #fff; }
.nutrition-section p { color: #d8d3c8; font-size: 1.05rem; margin-bottom: 24px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #fff;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-1px); }

.nutrition-visual {
  background: rgba(184,148,63,0.15);
  border: 1px solid rgba(184,148,63,0.4);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.nutrition-visual svg { width: 64px; height: 64px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.nutrition-visual span { font-weight: 700; font-size: 1.05rem; }
.nutrition-visual small { color: #b8b3a8; }

/* ---- Nutrigest promo ---- */
.nutrigest-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: #fff;
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 28px 32px;
  flex-wrap: wrap;
}

.nutrigest-banner .left { display: flex; align-items: center; gap: 20px; }

.nutrigest-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #fdf6e8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nutrigest-icon svg { width: 28px; height: 28px; stroke: var(--gold); fill: none; stroke-width: 2; }

.nutrigest-banner h3 { font-size: 1.15rem; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; color: var(--black); }
.nutrigest-banner p { color: var(--muted); font-size: 0.9rem; }

.pill-badge {
  background: var(--gold);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}

.link-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.link-outline:hover { background: var(--gold); color: #fff; }

/* ---- Staff / Chi Siamo (pagina completa + anteprima) ---- */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

@media (max-width: 900px) { .staff-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .staff-grid { grid-template-columns: 1fr; } }

.staff-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  transition: box-shadow 0.25s, transform 0.25s;
}

.staff-card:hover { box-shadow: 0 12px 32px rgba(184,148,63,0.18); transform: translateY(-4px); }

.staff-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 3px solid #fdf6e8;
}
.staff-card__photo img { width: 100%; height: 100%; object-fit: cover; }

.staff-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 2px; }
.staff-card .role { color: var(--gold); font-weight: 600; font-size: 0.85rem; margin-bottom: 12px; }
.staff-card p.bio { color: var(--muted); font-size: 0.9rem; line-height: 1.55; margin-bottom: 16px; }

.staff-card__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.staff-card__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  border: 1px solid var(--gold);
  padding: 6px 14px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.staff-card__links a:hover { background: var(--gold); color: #fff; }

.chi-siamo-hero {
  text-align: center;
  padding: 48px 24px 16px;
  max-width: 700px;
  margin: 0 auto;
}
.chi-siamo-hero h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.chi-siamo-hero p { color: var(--muted); font-size: 1.05rem; }

.divider { border: none; border-top: 1px solid var(--border); margin: 8px 0 32px; }

/* ---- Portale Staff (pagina strumenti) ---- */
.staff-portal-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 8px;
  text-align: center;
}
.staff-portal-hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.staff-portal-hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

@media (max-width: 900px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .tools-grid { grid-template-columns: 1fr; } }

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.tool-card:hover {
  box-shadow: 0 6px 24px rgba(184, 148, 63, 0.18);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #fdf6e8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-icon svg { width: 24px; height: 24px; stroke: var(--gold); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.tool-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.tool-card p { font-size: 0.85rem; color: var(--muted); }

.public-link {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  background: #fff;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
  margin-top: 24px;
}

.public-link:hover { box-shadow: 0 6px 24px rgba(184,148,63,0.25); background: #fdf6e8; transform: translateY(-2px); }

.public-link .tool-icon { flex-shrink: 0; width: 56px; height: 56px; }
.public-link .text h3 { font-size: 1.1rem; }
.public-link .arrow svg { width: 20px; height: 20px; stroke: var(--gold); fill: none; stroke-width: 2; }
.public-link .arrow { margin-left: auto; }

/* ---- FOOTER ---- */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 48px 0 32px;
  color: rgba(255,255,255,.55);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.footer-logo {
  height: 56px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .85;
}
.footer-info p {
  font-size: 0.88rem;
  line-height: 1.7;
}
.footer-info strong { color: var(--white); }
.footer-info a {
  color: var(--gold);
  transition: color .2s;
}
.footer-info a:hover { color: var(--gold-lt); }
.footer-copy {
  font-size: 0.78rem;
  margin-top: 8px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  font-size: 0.8rem;
}
.footer-links a { color: rgba(255,255,255,.55); }
.footer-links a:hover { color: var(--gold); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .col-logo { order: -1; }
  .logo-big { max-width: 220px; margin: 0 auto; }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero { min-height: 80vh; }
}

@media (max-width: 480px) {
  .section { padding: 64px 0; }
}

/* ---- SEZIONE ALTERNATA / INTRO ---- */
.section-alt { background: var(--gray); }
.section-intro {
  color: var(--muted);
  max-width: 640px;
  margin: 8px 0 36px;
  font-size: 1.05rem;
}

/* ---- NEWS ED EVENTI ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 24px;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, transform 0.25s;
}
.news-card:hover { box-shadow: 0 16px 40px rgba(0,0,0,.10); transform: translateY(-3px); }
.news-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--gray); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-card__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.news-card__date {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.news-card__body h3 { font-size: 1.2rem; line-height: 1.3; color: var(--black); }
.news-card__body p { color: var(--muted); font-size: 0.95rem; }
.news-card__body .link-gold { margin-top: auto; font-weight: 600; }

@media (max-width: 900px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .news-grid { grid-template-columns: 1fr; } }

/* ---- ORARI E PREZZI ---- */
.orari-prezzi {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 24px;
}
.orari-prezzi__text p { color: var(--muted); font-size: 1.05rem; margin-bottom: 24px; }
.orari-prezzi__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: block;
  cursor: zoom-in;
}
@media (max-width: 760px) {
  .orari-prezzi { grid-template-columns: 1fr; gap: 28px; }
}

/* ---- SOCIAL FOOTER ---- */
.footer-social {
  display: flex;
  gap: 14px;
  margin-top: 4px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.7);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.footer-social a:hover { color: var(--black); background: var(--gold); border-color: var(--gold); }
.footer-social svg { width: 20px; height: 20px; fill: currentColor; }
