/* Centro Sportivo le Siepi — Sito Vetrina — MOBILE FIRST */

:root {
  --green-dark: #0a2e1f;
  --green: #1a5c3a;
  --green-light: #2d8a5e;
  --green-muted: #e8f5ee;
  --gold: #c9a227;
  --gold-light: #e8c84a;
  --white: #ffffff;
  --gray-50: #f8faf9;
  --gray-100: #f1f4f2;
  --gray-200: #e2e8e4;
  --gray-600: #5a6b62;
  --gray-800: #1e2b24;
  --shadow: 0 4px 24px rgba(10, 46, 31, 0.12);
  --shadow-lg: 0 12px 48px rgba(10, 46, 31, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 64px;
}

@media (min-width: 768px) {
  :root { --header-h: 80px; }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(10, 46, 31, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo__icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--green-light), var(--green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .logo__icon {
    width: 44px;
    height: 44px;
    font-size: 1.4rem;
  }
}

.logo__text {
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .logo__text { font-size: 1.05rem; }
}

.logo__text span {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Mobile: nav hidden by default */
.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__list {
  display: none;
}

.nav__cta {
  display: none;
}

@media (min-width: 768px) {
  .nav__list {
    display: flex;
    gap: 1.75rem;
  }

  .nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--gold);
    color: var(--green-dark);
    font-weight: 600;
    font-size: 0.875rem;
    border-radius: 999px;
    transition: background var(--transition), transform var(--transition);
  }

  .nav__cta:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
  }
}

.nav__link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav__link:hover { color: var(--white); }
.nav__link:hover::after { width: 100%; }

/* Menu Toggle (hamburger) */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--transition);
}

.menu-toggle:hover {
  background: rgba(255,255,255,0.1);
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .menu-toggle { display: none; }
}

/* Mobile nav overlay */
.nav.mobile-open .nav__list {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--green-dark);
  padding: 1.5rem;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 999;
}

.nav.mobile-open .nav__list li a {
  display: block;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.nav.mobile-open .nav__list li a:hover {
  background: rgba(255,255,255,0.08);
}

.nav.mobile-open .nav__cta {
  display: block;
  position: fixed;
  top: calc(var(--header-h) + 1.5rem + 4 * 3.5rem + 1rem);
  left: 1.5rem;
  right: 1.5rem;
  text-align: center;
  background: var(--gold);
  color: var(--green-dark);
  padding: 0.875rem;
  border-radius: 999px;
  font-weight: 700;
  z-index: 999;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('/images/hero.jpg') center/cover no-repeat;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 46, 31, 0.92) 0%,
    rgba(26, 92, 58, 0.80) 50%,
    rgba(10, 46, 31, 0.70) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 2.5rem) 0 4rem;
  width: 100%;
}

@media (min-width: 768px) {
  .hero__content {
    padding: calc(var(--header-h) + 4rem) 0 6rem;
    max-width: 720px;
  }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(201, 162, 39, 0.15);
  border: 1px solid rgba(201, 162, 39, 0.4);
  color: var(--gold-light);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 10vw, 4rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero__title em {
  font-style: normal;
  color: var(--gold-light);
}

.hero__desc {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .hero__desc {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 540px;
  }
}

.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  width: 100%;
}

@media (min-width: 480px) {
  .btn { width: auto; }
}

.btn--primary {
  background: var(--gold);
  color: var(--green-dark);
}

.btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.hero__stats {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  flex-wrap: wrap;
}

@media (min-width: 768px) {
  .hero__stats {
    gap: 2.5rem;
    margin-top: 3.5rem;
    padding-top: 2rem;
    flex-wrap: nowrap;
  }
}

.hero__stat-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
}

@media (min-width: 768px) {
  .hero__stat-num { font-size: 2rem; }
}

.hero__stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.25rem;
}

/* ── Sections ── */
.section {
  padding: 4rem 0;
}

@media (min-width: 768px) {
  .section { padding: 6rem 0; }
}

.section--gray { background: var(--gray-50); }
.section--green { background: var(--green-dark); color: var(--white); }

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

@media (min-width: 768px) {
  .section__header { margin-bottom: 3.5rem; }
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 0.75rem;
}

.section--green .section__label { color: var(--gold-light); }

.section__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.6rem, 5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section__desc {
  color: var(--gray-600);
  font-size: 1rem;
}

@media (min-width: 768px) {
  .section__desc { font-size: 1.05rem; }
}

.section--green .section__desc { color: rgba(255, 255, 255, 0.7); }

/* ── About ── */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.about__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__image img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

@media (min-width: 480px) {
  .about__image img { height: 340px; }
}

@media (min-width: 768px) {
  .about__image img { height: 480px; }
}

.about__image-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .about__image-badge {
    bottom: 1.5rem;
    left: 1.5rem;
    padding: 1rem 1.5rem;
  }
}

.about__image-badge strong {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  color: var(--green);
}

@media (min-width: 768px) {
  .about__image-badge strong { font-size: 1.5rem; }
}

.about__image-badge span {
  font-size: 0.8rem;
  color: var(--gray-600);
}

.about__content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--green-dark);
}

@media (min-width: 768px) {
  .about__content h3 { font-size: 1.75rem; }
}

.about__content p {
  color: var(--gray-600);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.about__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .about__features {
    gap: 1rem;
    margin-top: 2rem;
  }
}

.about__feature {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.875rem;
  background: var(--gray-100);
  border-radius: var(--radius);
}

@media (min-width: 768px) {
  .about__feature {
    gap: 0.75rem;
    padding: 1rem;
  }
}

.about__feature-icon {
  width: 32px;
  height: 32px;
  background: var(--green);
  color: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .about__feature-icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

.about__feature-text strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.1rem;
}

.about__feature-text span {
  font-size: 0.75rem;
  color: var(--gray-600);
}

/* ── Services ── */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 560px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.service-card__img {
  height: 180px;
  overflow: hidden;
}

@media (min-width: 768px) {
  .service-card__img { height: 200px; }
}

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card__img img {
  transform: scale(1.06);
}

.service-card__body {
  padding: 1.25rem;
}

@media (min-width: 768px) {
  .service-card__body { padding: 1.5rem; }
}

.service-card__icon {
  width: 44px;
  height: 44px;
  background: var(--green-muted);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .service-card__icon {
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    border-radius: 12px;
    margin-bottom: 1rem;
  }
}

.service-card__title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--green-dark);
}

@media (min-width: 768px) {
  .service-card__title {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
  }
}

.service-card__desc {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.55;
}

/* ── Gallery ── */
.gallery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  auto-rows: 160px;
}

@media (min-width: 560px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    auto-rows: 180px;
    gap: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .gallery__grid {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 1rem;
    auto-rows: unset;
  }
}

.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  height: 160px;
}

@media (min-width: 560px) {
  .gallery__item { height: 180px; }
}

@media (min-width: 1024px) {
  .gallery__item { height: auto; }
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__item:hover img { transform: scale(1.08); }

.gallery__item--large {
  grid-column: span 2;
  height: 200px;
}

@media (min-width: 560px) {
  .gallery__item--large { height: 240px; }
}

@media (min-width: 1024px) {
  .gallery__item--large {
    grid-column: span 2;
    grid-row: span 2;
    height: auto;
  }
  .gallery__item--wide {
    grid-column: span 2;
    height: auto;
  }
}

/* ── Contact ── */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .contact__grid {
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
  }
}

.contact__info h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .contact__info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

.contact__item {
  display: flex;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .contact__item {
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
}

.contact__item-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .contact__item-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 1.2rem;
  }
}

.contact__item-text strong {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.2rem;
}

.contact__item-text a,
.contact__item-text span {
  font-size: 0.95rem;
  color: var(--white);
}

@media (min-width: 768px) {
  .contact__item-text a,
  .contact__item-text span { font-size: 1rem; }
}

.contact__item-text a:hover { color: var(--gold-light); }

.contact__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .contact__social { margin-top: 2rem; }
}

.contact__social a {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background var(--transition);
}

.contact__social a:hover { background: var(--gold); }

.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 280px;
}

@media (min-width: 480px) {
  .contact__map { height: 340px; }
}

@media (min-width: 768px) {
  .contact__map { height: 400px; }
}

.contact__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
  padding: 3rem 0;
  text-align: center;
}

@media (min-width: 768px) {
  .cta-banner { padding: 4rem 0; }
}

.cta-banner__title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.65rem;
}

.cta-banner__desc {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.75rem;
  font-size: 1rem;
}

@media (min-width: 768px) {
  .cta-banner__desc {
    margin-bottom: 2rem;
    font-size: 1.05rem;
  }
}

/* ── Footer ── */
.footer {
  background: #071a12;
  color: rgba(255, 255, 255, 0.6);
  padding: 2.5rem 0 1.5rem;
}

@media (min-width: 768px) {
  .footer { padding: 3rem 0 1.5rem; }
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 560px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2.5rem;
  }
}

.footer__brand p {
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 0.875rem;
  max-width: 320px;
}

.footer__heading {
  color: var(--white);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer__links li { margin-bottom: 0.5rem; }

.footer__links a {
  font-size: 0.875rem;
  transition: color var(--transition);
}

.footer__links a:hover { color: var(--gold-light); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: center;
  font-size: 0.8rem;
}

@media (min-width: 768px) {
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    gap: 0;
    text-align: left;
    padding-top: 1.5rem;
  }
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

@media (min-width: 768px) {
  .lightbox { padding: 2rem; }
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: var(--white);
  font-size: 1.75rem;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity var(--transition), background var(--transition);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close:hover {
  opacity: 1;
  background: rgba(255,255,255,0.2);
}
