:root {
  --bg: #f5fcf7;
  --surface: rgba(251, 255, 252, 0.82);
  --surface-strong: #fdfffd;
  --text: #163028;
  --muted: #5f7b6e;
  --line: rgba(22, 48, 40, 0.08);
  --accent: #22c55e;
  --accent-soft: #dcfce7;
  --shadow: 0 24px 80px rgba(22, 48, 40, 0.09);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(166, 235, 192, 0.22), transparent 24rem),
    radial-gradient(circle at 85% 10%, rgba(220, 252, 231, 0.88), transparent 22rem),
    linear-gradient(180deg, #fcfffc 0%, var(--bg) 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.page-shell {
  position: relative;
  overflow: hidden;
}

.ambient {
  position: fixed;
  width: 26rem;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
  opacity: 0.35;
  z-index: 0;
}

.ambient-one {
  top: 8rem;
  left: -10rem;
  background: rgba(34, 197, 94, 0.16);
}

.ambient-two {
  top: 30rem;
  right: -8rem;
  background: rgba(220, 252, 231, 0.8);
}

.site-header,
.section {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #fff;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-copy strong,
.brand-copy small {
  line-height: 1;
}

.brand-copy small,
.site-nav a,
.eyebrow,
.metric-label,
.month-label {
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 1.2rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  backdrop-filter: blur(14px);
}

.site-nav a {
  font-size: 0.95rem;
}

.site-nav a:hover {
  color: var(--accent);
}

.section {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: none;
  padding: 0rem max(1rem, calc((100vw - var(--max-width)) / 2)) 4rem;
  isolation: isolate;
}

.hero-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: -1;
}

.hero-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 42, 34, 0.72) 0%, rgba(17, 42, 34, 0.38) 42%, rgba(17, 42, 34, 0.18) 100%),
    linear-gradient(180deg, rgba(17, 42, 34, 0.08), rgba(17, 42, 34, 0.28)),
    url("./immagini/curva.jpg") center center / cover no-repeat;
  transform: translateY(var(--hero-parallax, 0));
  will-change: transform;
}

.hero-background::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 10rem;
  background: linear-gradient(180deg, rgba(237, 247, 241, 0) 0%, rgba(237, 247, 241, 0.96) 100%);
}

.hero-copy,
.hero-panel {
  position: relative;
  z-index: 1;
}

.hero h1,
.section-heading h2,
.feature-card h3,
.cta-panel h2,
.footer-card h2 {
  font-family: "Archivo", sans-serif;
  letter-spacing: -0.04em;
  margin: 0;
}

.hero h1 {
  font-size: clamp(3.3rem, 7vw, 6.6rem);
  line-height: 0.95;
  max-width: 9ch;
}

.hero-lead,
.story-card p,
.feature-card p,
.cta-panel p,
.footer-card p,
.schedule-card p,
.schedule-card li {
  font-size: 1.03rem;
  line-height: 1.7;
}

.hero-lead {
  max-width: 40rem;
  color: rgba(255, 253, 248, 0.82);
  margin: 1.4rem 0 0;
}

.hero .eyebrow,
.hero .metric-label {
  color: rgba(255, 253, 248, 0.68);
}

.hero h1 {
  color: #fffdf8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 34px rgba(34, 197, 94, 0.25);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(220, 252, 231, 0.42);
  color: #fff;
}

.hero-panel,
.story-card,
.info-card,
.feature-card,
.schedule-card,
.cta-panel,
.footer-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-panel {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  display: grid;
  gap: 1rem;
  background: rgba(240, 255, 246, 0.18);
  border: 1px solid rgba(232, 247, 239, 0.24);
  box-shadow: 0 24px 80px rgba(9, 18, 15, 0.24);
}

.hero-news {
  align-content: start;
  min-height: 22rem;
}

.hero-news h2 {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
  color: #fffdf8;
}

.hero-news-text,
.hero-news-meta {
  margin: 0;
  color: rgba(255, 253, 248, 0.86);
  line-height: 1.7;
}

.hero-news-meta {
  padding: 0.95rem 1rem;
  border: 1px solid rgba(220, 252, 231, 0.32);
  background: rgba(34, 197, 94, 0.18);
  border-radius: 1rem;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.metric-card {
  padding: 1.2rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(240, 255, 246, 0.14);
  border: 1px solid rgba(232, 247, 239, 0.18);
  color: #fffdf8;
}

.metric-card strong {
  display: block;
  font-size: 1.15rem;
  margin-top: 0.35rem;
}

.track-outline {
  position: relative;
  min-height: 12rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(220, 252, 231, 0.16), rgba(255, 253, 248, 0)),
    rgba(255, 253, 248, 0.08);
}

.track-outline span {
  position: absolute;
  inset: 1.2rem;
  border: 2px dashed rgba(220, 252, 231, 0.58);
  border-radius: 45% 55% 52% 48% / 39% 51% 49% 61%;
}

.notice-strip {
  margin-bottom: 3rem;
  padding: 1.35rem 1.5rem;
  display: grid;
  gap: 0.3rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.notice-strip p {
  margin: 0;
}

.partner-strip {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 0 0 3rem;
}

.notice-strip {
  margin-top: -1rem;
  padding: 0 0 2.5rem;
}

.notice-box {
  padding: 1.6rem 1.8rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(21, 128, 61, 0.95), rgba(34, 197, 94, 0.88));
  color: #fff;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.notice-box .eyebrow {
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.4rem;
}

.notice-box h2 {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.notice-box p:last-child {
  margin: 0.9rem 0 0;
  max-width: 60rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
  line-height: 1.6;
}

.floating-notice {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  transform: none;
  z-index: 30;
  width: min(calc(100% - 2rem), 28rem);
  padding: 0.75rem 0.95rem 0.8rem;
  border-radius: 1rem;
  background: rgba(21, 128, 61, 0.94);
  color: #fff;
  box-shadow: 0 16px 34px rgba(21, 128, 61, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
}

.floating-notice p {
  margin: 0;
}

.floating-notice-kicker {
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.floating-notice-title {
  margin-top: 0.2rem;
  font-family: "Archivo", sans-serif;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.floating-notice-text {
  margin-top: 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.92);
}

.partner-copy h2,
.gallery-note h3 {
  font-family: "Archivo", sans-serif;
  letter-spacing: -0.04em;
  margin: 0;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1;
}

.partner-visual,
.photo-card,
.gallery-note {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
}

.partner-visual {
  padding: 1.2rem;
}

.partner-visual img,
.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-xl) - 0.5rem);
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 3rem 0;
}

.section-heading {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.75rem;
}

.section-heading h2,
.cta-panel h2,
.footer-card h2 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1;
}

.story-card,
.info-card,
.feature-card,
.schedule-card,
.footer-card {
  padding: 1.7rem;
  border-radius: var(--radius-xl);
}

.club-list,
.schedule-card ul {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.club-list li,
.schedule-card li {
  margin-bottom: 0.55rem;
}

.photo-card {
  margin: 0;
  overflow: hidden;
  min-height: 20rem;
}

.photo-card.wide {
  grid-column: 1 / -1;
  min-height: 24rem;
}

.feature-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  padding: 1rem 0 4rem;
}

.feature-card h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  line-height: 1.08;
  max-width: 14ch;
}

.text-link {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 700;
}

.gallery-band {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: stretch;
  padding: 0 0 2rem;
}

.gallery-note {
  padding: 1.7rem;
  display: grid;
  align-content: center;
}

.schedule-section {
  width: 100%;
  max-width: none;
  padding: 0 max(1rem, calc((100vw - var(--max-width)) / 2)) 3rem;
}

.schedule-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.schedule-grid .schedule-card {
  width: 100%;
}

.schedule-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem 2rem;
}

.schedule-month-title {
  margin: 0;
  font-family: "Archivo", sans-serif;
  font-size: 1.15rem;
  line-height: 1.1;
  color: var(--text);
}

.schedule-card.highlight {
  background: linear-gradient(180deg, #4ade80, #22c55e);
  color: #f9fbfa;
}

.schedule-card.highlight .month-label,
.schedule-card.highlight p {
  color: rgba(249, 251, 250, 0.82);
}

.highlight-date {
  font-family: "Archivo", sans-serif;
  font-size: 2.4rem;
  line-height: 0.95;
  margin: 0.4rem 0 0.75rem;
  color: #fff;
}

.muted {
  opacity: 0.56;
}

.schedule-date-highlight {
  color: #14532d;
  font-weight: 800;
  background: rgba(74, 222, 128, 0.16);
  border-radius: 0.85rem;
  padding: 0.3rem 0.7rem;
}

.schedule-columns ul {
  margin-top: 0.4rem;
}

.cta-panel {
  margin-top: 1rem;
  padding: 2rem;
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 2rem;
}

.cta-copy {
  display: grid;
  gap: 1rem;
  align-content: center;
}

.cta-panel .button {
  width: fit-content;
}

.cta-photo {
  margin: 0;
  min-height: 18rem;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 0.25rem);
}

.cta-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-footer {
  padding: 3rem 0 4rem;
}

.rules-page .site-header {
  margin-bottom: 1rem;
}

.rules-hero {
  min-height: auto;
  width: min(calc(100% - 2rem), var(--max-width));
  max-width: var(--max-width);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: stretch;
  padding: 2rem 0 1rem;
}

.rules-lead {
  color: var(--muted);
}

.rules-page .hero-panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.rules-page .metric-card {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  color: var(--text);
}

.rules-page .metric-label {
  color: var(--muted);
}

.rules-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1rem 0 4rem;
  max-width: 860px;
}

.rules-layout-full {
  max-width: none;
}

.rules-card,
.rules-note {
  width: 100%;
  padding: 1.7rem;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.rules-card p,
.rules-note p,
.rules-list li,
.rules-numbered li {
  font-size: 1.03rem;
  line-height: 1.7;
}

.rules-list,
.rules-numbered {
  margin: 1rem 0;
  padding-left: 1.2rem;
}

.rules-list li,
.rules-numbered li {
  margin-bottom: 0.7rem;
}

.rules-note {
  grid-column: 1 / -1;
}

.rules-page .rules-card.reveal,
.rules-page .rules-note.reveal,
.rules-page .rules-hero-copy.reveal,
.rules-page .hero-panel.reveal {
  opacity: 1;
  transform: none;
}

.membership-table {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.25rem;
}

.membership-row {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.9fr 0.9fr 1fr 1.4fr;
  gap: 0.9rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid var(--line);
}

.membership-row span,
.membership-row a {
  font-size: 0.96rem;
  line-height: 1.6;
}

.membership-head {
  background: rgba(34, 197, 94, 0.12);
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.2rem;
  margin-top: 1.5rem;
}

.contact-grid a,
.contact-grid p {
  margin: 0;
}

.contact-grid a {
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-delay {
  transition-delay: 140ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.parallax {
  transform: translateY(var(--parallax-shift, 0));
}

@media (max-width: 980px) {
  .hero,
  .partner-strip,
  .content-grid,
  .feature-band,
  .gallery-band,
  .rules-hero,
  .rules-layout,
  .cta-panel,
  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 6rem 1rem 3rem;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
    border-radius: 1.2rem;
  }

  .feature-card h3 {
    max-width: none;
  }

  .cta-panel {
    align-items: flex-start;
  }

  .cta-photo {
    min-height: 14rem;
  }

  .photo-card.wide {
    min-height: 18rem;
  }

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

  .schedule-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header,
  .section {
    width: min(calc(100% - 1.25rem), var(--max-width));
  }

  .hero h1 {
    font-size: clamp(2.8rem, 16vw, 4.4rem);
  }

  .hero-panel,
  .story-card,
  .info-card,
  .feature-card,
  .schedule-card,
  .cta-panel,
  .footer-card {
    padding: 1.25rem;
    border-radius: 1.5rem;
  }

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

  .schedule-section {
    padding: 0 0.625rem 3rem;
  }

  .schedule-columns {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .floating-notice {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    transform: none;
    text-align: center;
  }

  .floating-notice p {
    font-size: 0.72rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal-delay,
  .button,
  .parallax,
  .hero-background::before {
    transition: none;
    transform: none;
    opacity: 1;
  }
}


.scroll-top-link {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.4rem;
  min-height: 3.4rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(34, 197, 94, 0.24);
  box-shadow: 0 14px 34px rgba(22, 48, 40, 0.12);
  color: var(--accent);
  font-weight: 700;
  backdrop-filter: blur(14px);
}

.scroll-top-link:hover {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 640px) {
  .scroll-top-link {
    right: 0.8rem;
    bottom: 0.8rem;
    min-width: 3rem;
    min-height: 3rem;
  }
}

