/* ═══════════════════════════════════════════════
   POLIS ANZIO ATLETICA — Landing Page
   style.css
   ═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap');

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

:root {
  --navy:         #002347;
  --blue:         #0057A8;
  --sky:          #00A3FF;
  --sky-light:    #E0F2FF;
  --lime:         #C8FF00;
  --lime-dark:    #8AB800;
  --white:        #FFFFFF;
  --off-white:    #F5F7FA;
  --text:         #0D1117;
  --text-mid:     #3A4A5C;
  --text-muted:   #7A8A9A;
  --border:       rgba(0,0,0,.09);
  --radius-sm:    10px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    32px;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.06);
  --shadow-md:    0 8px 32px rgba(0,0,0,.10);
  --shadow-lg:    0 20px 60px rgba(0,0,0,.14);
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body:    'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ── Utilities ── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.highlight {
  color: var(--sky);
  font-style: italic;
}

.highlight-lime { color: var(--lime); }

.about-label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

/* ── Animations ── */
.animate-fade-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeUp 0.7s cubic-bezier(.22,.68,0,1.2) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.22,.68,0,1.05);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════
   NAVBAR
═══════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background .3s, box-shadow .3s;
}

.navbar.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo-light,
.logo-dark {
  position: absolute;
  transition: opacity .3s;
}

.nav-logo img{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  line-height: 1;
  flex-direction: row;
  flex-wrap: wrap;
  max-width: 160px;
}


.nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  transition: color .2s;
}
.nav-links a:hover { color: var(--blue); }

/* Navbar — transparent state text white */
.navbar:not(.scrolled) .nav-links a { color: rgba(255,255,255,.75); }
.navbar:not(.scrolled) .nav-links a:hover { color: var(--white); }
.navbar:not(.scrolled) .logo-polis { color: var(--white); }
.navbar:not(.scrolled) .logo-sub { color: rgba(255,255,255,.5); }
.navbar:not(.scrolled) .nav-logo img {
  filter: brightness(0) invert(1);
}

.nav-cta {
  padding: 9px 20px;
  border-radius: 40px;
  background: var(--sky);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--blue); transform: translateY(-1px); }

.navbar:not(.scrolled) .nav-cta {
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.3);
}
.navbar:not(.scrolled) .nav-cta:hover { background: rgba(255,255,255,.28); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .25s;
}
.navbar.scrolled .hamburger span { background: var(--navy); }

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
  box-shadow: var(--shadow-md);
}
.mobile-menu.open { display: flex; }

.mob-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-mid);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.mob-cta {
  margin-top: 16px;
  padding: 14px 20px;
  border-radius: 40px;
  background: var(--sky);
  color: var(--white);
  font-weight: 600;
  text-align: center;
}

/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 24px 160px;
  overflow: hidden;
  background: var(--navy);
}

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

.hero-gradient-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 50%, rgba(0,87,168,.6) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 80% 20%, rgba(0,163,255,.2) 0%, transparent 60%),
    linear-gradient(160deg, rgba(0,35,71,0.95) 0%, rgba(0,35,71,.7) 50%, rgba(0,87,168,.5) 100%);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(72px, 13vw, 160px);
  line-height: .93;
  color: var(--white);
  letter-spacing: -.01em;
  margin-bottom: 32px;
  text-transform: uppercase;
}

.hero-title em {
  font-style: italic;
  color: var(--lime);
  text-shadow: 0 0 60px rgba(200,255,0,.3);
}

.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255,255,255,.65);
  line-height: 1.65;
  max-width: 480px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 40px;
  background: var(--sky);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(0,163,255,.4);
}
.btn-primary:hover {
  background: #0091e8;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,163,255,.5);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 40px;
  border: 1.5px solid rgba(255,255,255,.3);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  transition: background .2s, border-color .2s;
}
.btn-ghost:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.5);
}

.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 40px;
  border: 1.5px solid rgba(255,255,255,.4);
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  transition: background .2s;
}
.btn-ghost-white:hover { background: rgba(255,255,255,.12); }

/* Hero stats bar */
.hero-stats {
  position: relative;
  z-index: 2;
  max-width: 1160px;
  margin: 60px auto 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  padding: 20px 32px;
  backdrop-filter: blur(12px);
}

.stat { flex: 1; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  color: var(--sky);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-lbl {
  font-size: 12px;
  color: rgba(255,255,255,.55);
  line-height: 1.4;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.12);
  margin: 0 32px;
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-arrow {
  width: 24px; height: 24px;
  border-right: 2px solid rgba(255,255,255,.3);
  border-bottom: 2px solid rgba(255,255,255,.3);
  transform: rotate(45deg);
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: .5; }
  50% { transform: rotate(45deg) translateY(5px); opacity: 1; }
}

/* ═══════════════════════════════════
   ABOUT STRIP
═══════════════════════════════════ */
.about-strip {
  padding: 100px 0 80px;
  background: var(--white);
}

.about-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 24px;
  text-transform: uppercase;
}

.about-body {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.75;
  max-width: 660px;
  margin-bottom: 64px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.pillar {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  background: var(--off-white);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pillar-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.pillar h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.2;
}

.pillar p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════
   ACTIVITIES
═══════════════════════════════════ */
.attivita-section {
  padding: 80px 0 100px;
  background: var(--off-white);
}

.section-header {
  margin-bottom: 52px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 500px;
}

/* Courses grid — masonry-like with big cards */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

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

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

.course-card.big {
  grid-column: span 1;
}

/* First big card spans 1.5 cols visually */
.courses-grid .course-card:first-child {
  grid-column: span 2;
  flex-direction: row;
}
.courses-grid .course-card:first-child .course-card-img {
  width: 45%;
  min-height: 220px;
  aspect-ratio: unset;
}

.course-card-img {
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.course-card-body {
  padding: 24px 26px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.course-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.15;
}

.course-card p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}

.course-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  transition: gap .15s;
  gap: 4px;
}
.course-link:hover { gap: 8px; color: var(--sky); }

/* Color accents per card */
.course-card[data-color="blue"]   { border-top: 3px solid var(--blue); }
.course-card[data-color="green"]  { border-top: 3px solid #1D9E75; }
.course-card[data-color="amber"]  { border-top: 3px solid #BA7517; }
.course-card[data-color="sky"]    { border-top: 3px solid var(--sky); }
.course-card[data-color="red"]    { border-top: 3px solid #C0392B; }

/* ═══════════════════════════════════
   PERCHÉ NOI
═══════════════════════════════════ */
.perche-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.perche-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 30% 50%, rgba(0,87,168,.5) 0%, transparent 70%);
  pointer-events: none;
}

.perche-left {
  padding: 80px 60px 80px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.perche-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(38px, 5vw, 64px);
  color: var(--white);
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.perche-sub {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  line-height: 1.7;
  max-width: 380px;
}

.perche-right {
  padding: 80px 80px 80px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.feature-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
  transition: background .2s;
}
.feature-card:hover { background: rgba(255,255,255,.1); }

.feat-icon {
  font-size: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-card h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 5px;
}

.feature-card p {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  line-height: 1.55;
}

/* ═══════════════════════════════════
   CTA BAND
═══════════════════════════════════ */
.cta-band {
  background: linear-gradient(135deg, var(--sky) 0%, var(--blue) 100%);
  padding: 72px 24px;
}

.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 8px;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 46px);
  color: var(--white);
  text-transform: uppercase;
  line-height: 1.1;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.cta-band .btn-primary {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.cta-band .btn-primary:hover {
  background: var(--off-white);
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}

/* ═══════════════════════════════════
   CONTATTI
═══════════════════════════════════ */
.contatti-section {
  padding: 100px 0 80px;
  background: var(--white);
}

.contatti-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.contact-card {
  padding: 30px 28px;
  border-radius: var(--radius-lg);
  background: var(--off-white);
  border: 1px solid var(--border);
  transition: transform .2s, box-shadow .2s;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.contact-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--navy);
  margin-bottom: 10px;
}

.contact-card p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 14px;
}

.contact-card p a:hover { color: var(--blue); }

.contact-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--sky);
}
.contact-link:hover { color: var(--blue); }

/* Contact form */
.contact-form-wrap {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 52px;
}

.form-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 28px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

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

.form-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group select {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text);
  transition: border-color .2s;
  outline: none;
}

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

.form-submit {
  align-self: flex-start;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

.form-note {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: -6px;
}

/* ═══════════════════════════════════
   FOOTER
═══════════════════════════════════ */
.footer {
  background: var(--navy);
  padding: 60px 0 0;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  padding-bottom: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  flex: 1;
  min-width: 160px;
}

.footer-tagline {
  font-size: 12px;
  color: rgba(255,255,255,.4);
  margin-top: 12px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  transition: color .2s;
}
.footer-links a:hover { color: var(--white); }

.footer-partners {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.partner-badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.15);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  letter-spacing: .06em;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  color: rgba(255,255,255,.3);
}

.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--white); }

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }

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

  .courses-grid {
    grid-template-columns: 1fr 1fr;
  }
  .courses-grid .course-card:first-child,
  .courses-grid .course-card:last-child {
    grid-column: span 2;
  }

  .perche-section {
    grid-template-columns: 1fr;
  }
  .perche-left { padding: 60px 32px 32px; }
  .perche-right { padding: 32px 32px 60px; }

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

  .contact-form-wrap { padding: 32px 28px; }
  .form-row { grid-template-columns: 1fr; }

  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .stat-divider { display: none; }
}

@media (max-width: 640px) {
  .hero-title { font-size: clamp(56px, 18vw, 90px); }

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

  .courses-grid {
    grid-template-columns: 1fr;
  }
  .courses-grid .course-card:first-child,
  .courses-grid .course-card:last-child {
    grid-column: span 1;
    flex-direction: column;
  }
  .courses-grid .course-card:first-child .course-card-img,
  .courses-grid .course-card:last-child .course-card-img {
    width: 100%;
    aspect-ratio: 16/9;
  }

  .cta-band-inner {
    flex-direction: column;
    text-align: center;
  }
  .cta-actions { justify-content: center; }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }
}
