@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@500;600;700;800&family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --ink: #14212b;
  --muted: #66737d;
  --paper: #f5f2eb;
  --surface: #ffffff;
  --coral: #ee654f;
  --yellow: #f4c95d;
  --teal: #1e7775;
  --line: #d9ddd9;
  --shadow: 0 18px 50px rgba(20, 33, 43, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: 'DM Sans', sans-serif; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.site-shell { overflow: hidden; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-header { position: absolute; z-index: 10; inset: 0 0 auto; color: #fff; }
.navbar { display: flex; align-items: center; justify-content: space-between; min-height: 88px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { width: min(250px, 45vw); height: auto; padding: 7px 12px; background: #fff; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-size: 1.25rem; }
.nav-toggle { display: none; border: 1px solid rgba(255,255,255,.45); background: transparent; color: #fff; padding: 9px 12px; font: 700 .85rem 'DM Sans', sans-serif; cursor: pointer; }
.nav-links { display: flex; align-items: center; gap: 25px; list-style: none; padding: 0; margin: 0; font-size: .82rem; font-weight: 700; }
.nav-links a { text-decoration: none; opacity: .9; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--yellow); opacity: 1; }
.hero { position: relative; min-height: 680px; display: grid; align-items: end; color: #fff; background: linear-gradient(90deg, rgba(13, 33, 43, .9) 0%, rgba(13, 33, 43, .6) 52%, rgba(13, 33, 43, .18) 100%), url('../img/sfondo-home.jpg') center/cover; }
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(transparent, rgba(20,33,43,.22)); pointer-events: none; }
.hero-content { position: relative; z-index: 1; padding: 150px 0 105px; max-width: 690px; }
.eyebrow, .section-kicker { color: var(--yellow); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { max-width: 660px; margin: 18px 0 18px; font: 800 clamp(3.6rem, 9vw, 7.4rem)/.84 'Barlow Condensed', sans-serif; letter-spacing: -.02em; text-transform: uppercase; }
.hero-copy { max-width: 510px; margin: 0 0 30px; color: rgba(255,255,255,.82); font-size: 1.05rem; line-height: 1.65; }
.button { display: inline-flex; align-items: center; gap: 10px; border: 0; background: var(--coral); color: #fff; padding: 14px 19px; text-decoration: none; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; transition: transform .2s ease, background .2s ease; }
.button:hover, .button:focus-visible { background: #d95341; transform: translateY(-2px); }
.button-secondary { background: var(--teal); }
.section { padding: 100px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section h2 { margin: 9px 0 0; max-width: 570px; font: 700 clamp(2.5rem, 5vw, 4.3rem)/.9 'Barlow Condensed', sans-serif; letter-spacing: -.01em; text-transform: uppercase; }
.section-intro { max-width: 330px; margin: 0; color: var(--muted); line-height: 1.6; }
.teams { background: var(--surface); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.team-card { position: relative; min-height: 285px; display: flex; align-items: end; overflow: hidden; background: var(--ink); color: #fff; }
.team-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: transform .5s ease; }
.team-card::after { content: ''; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(20,33,43,.95)); }
.team-card:hover img { transform: scale(1.06); }
.team-info { position: relative; z-index: 1; padding: 25px; }
.team-info h3 { margin: 0 0 7px; font: 700 2rem/.9 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.team-info p { margin: 0; color: rgba(255,255,255,.75); font-size: .88rem; line-height: 1.45; }
.team-info a { display: inline-block; margin-top: 16px; color: var(--yellow); font-size: .75rem; font-weight: 700; text-decoration: none; text-transform: uppercase; }
.schedule { background: var(--teal); color: #fff; }
.schedule .section-kicker { color: var(--yellow); }
.schedule .section-intro { color: rgba(255,255,255,.72); }
.schedule-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255,255,255,.23); border: 1px solid rgba(255,255,255,.23); }
.schedule-item { min-height: 170px; padding: 24px; background: var(--teal); }
.schedule-item strong { display: block; margin-bottom: 18px; color: var(--yellow); font: 700 1.7rem/.9 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.schedule-item span { display: block; margin-bottom: 6px; font-size: .92rem; line-height: 1.45; }
.schedule-item b { color: rgba(255,255,255,.65); font-size: .78rem; font-weight: 500; }
.links { background: var(--yellow); }
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.external-link { min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; padding: 24px; background: var(--surface); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.external-link:hover, .external-link:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); }
.external-link strong { font: 700 2rem/.9 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.external-link span { color: var(--muted); font-size: .82rem; }
.signup { background: var(--paper); }
.signup-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: start; }
.signup-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 19px; padding: 30px; background: var(--surface); box-shadow: var(--shadow); }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row:nth-of-type(5), .checkbox-row, .form-note, .signup-form .button { grid-column: 1 / -1; }
.form-row label { font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.form-row label span, .form-note span { color: var(--coral); }
.form-row input, .form-row select, .form-row textarea { width: 100%; border: 1px solid var(--line); border-radius: 0; padding: 12px; background: #fcfcfa; color: var(--ink); font: 400 .92rem 'DM Sans', sans-serif; }
.form-row textarea { min-height: 110px; resize: vertical; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 2px solid var(--coral); outline-offset: 2px; }
.checkbox-row { display: flex; align-items: center; gap: 9px; font-size: .82rem; }
.checkbox-row input { width: 17px; height: 17px; accent-color: var(--teal); }
.form-note { margin: -4px 0 0; color: var(--muted); font-size: .75rem; }
.contact { background: var(--ink); color: #fff; }
.contact-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 70px; align-items: end; }
.contact .section-intro { color: rgba(255,255,255,.7); }
.contact-address { border-top: 1px solid rgba(255,255,255,.25); padding-top: 18px; color: rgba(255,255,255,.72); font-size: .9rem; line-height: 1.6; }
.site-footer { padding: 22px 0; background: #0d171e; color: rgba(255,255,255,.58); font-size: .75rem; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; }
.footer-row p { margin: 0; }
.footer-row a { color: var(--yellow); }
.reveal { animation: rise .75s both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  .container { width: min(100% - 28px, 560px); }
  .navbar { min-height: 72px; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 72px; left: 14px; right: 14px; display: none; padding: 18px; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; box-shadow: var(--shadow); }
  .nav-links.is-open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav-links a { display: block; padding: 13px 4px; }
  .hero { min-height: 620px; background-position: 64% center; }
  .hero-content { padding: 125px 0 80px; }
  .hero h1 { font-size: clamp(3.6rem, 18vw, 6rem); }
  .section { padding: 72px 0; }
  .section-heading, .contact-layout { display: block; }
  .section-intro { margin-top: 22px; }
  .team-grid, .schedule-grid, .link-grid { grid-template-columns: 1fr; }
  .signup-layout { display: block; }
  .signup-form { grid-template-columns: 1fr; margin-top: 30px; padding: 22px; }
  .form-row:nth-of-type(5), .checkbox-row, .form-note, .signup-form .button { grid-column: auto; }
  .team-card { min-height: 250px; }
  .contact-address { margin-top: 35px; }
  .footer-row { display: block; }
  .footer-row p + p { margin-top: 10px; }
}
