/* ============================================================
   STUDIO 51 A.S.D. — landing di attesa
   Palette estratta dal logo
   ============================================================ */

@font-face {
  font-family: "Bebas Neue Book";
  src: url("../fonts/BebasNeue-Book.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Light.otf") format("opentype");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Regular.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Medium.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}

:root {
  /* colori del logo */
  --plum-900: #2c1538;
  --plum-800: #442256;
  --plum-600: #6b398c;
  --plum-500: #7e4c98;
  --lilac-400: #9b6bab;
  --lilac-300: #ba99c4;
  --lilac-200: #d5bcda;
  --lilac-100: #e0cbe3;
  --lilac-050: #f1e8f3;
  /* tinte molto chiare per i petali di sfondo: il logo resta leggibile anche sovrapposto */
  --petal-1: #f0e6f2;
  --petal-2: #e9dcec;

  --paper: #faf8fb;
  --ink: var(--plum-800);
  --ink-soft: #5c4a66;

  --display: "Bebas Neue Book", "Oswald", Impact, sans-serif;
  --body: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 72px);
  --max: 1180px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(15px, 1.05vw + 10px, 17px);
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
strong { font-weight: 500; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--plum-800); color: #fff; padding: .6em 1em; z-index: 100;
}
.skip:focus { left: 8px; }

/* ---------- petali decorativi ---------- */
.petals {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.petal {
  position: absolute;
  border-radius: 100% 0 100% 0;
  mix-blend-mode: multiply;
  opacity: .75;
  will-change: transform;
  animation: drift 18s var(--ease) infinite alternate;
}
.petal--a {
  width: 68vmin; height: 68vmin; right: -22vmin; top: -14vmin;
  background: var(--petal-1); transform: rotate(18deg);
}
.petal--b {
  width: 52vmin; height: 52vmin; right: -6vmin; top: 10vmin;
  background: var(--petal-2); transform: rotate(-26deg);
  animation-delay: -6s; animation-duration: 22s;
}
.petal--c {
  width: 42vmin; height: 42vmin; left: -20vmin; bottom: -18vmin;
  background: var(--petal-1); transform: rotate(40deg);
  animation-delay: -12s; animation-duration: 26s;
}
@keyframes drift {
  from { translate: 0 0; }
  to   { translate: -2vmin 3vmin; }
}

/* ---------- header ---------- */
.top {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto;
  padding: 22px var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between;
}
.top__brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none;
  font-family: var(--display); font-size: 22px; letter-spacing: .22em; line-height: 1;
}
.top__brand img { width: 30px; height: auto; }
.top__brand small { font-size: .6em; letter-spacing: .3em; color: var(--lilac-400); margin-left: .4em; }
.top__phone {
  font-weight: 400; font-size: 14px; letter-spacing: .06em; text-decoration: none;
  padding: 10px 16px; border: 1px solid var(--lilac-200); border-radius: 999px;
  transition: border-color .25s, background .25s;
}
.top__phone:hover { border-color: var(--plum-500); background: #fff; }

main { position: relative; z-index: 1; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 9vh, 96px) var(--gutter) clamp(56px, 10vh, 120px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  grid-template-areas:
    "eyebrow logo"
    "title   logo"
    "lead    logo"
    "cta     logo"
    "scroll  logo";
  column-gap: clamp(24px, 5vw, 80px);
  align-items: center;
  min-height: calc(100svh - 80px);
}
.eyebrow {
  grid-area: eyebrow; align-self: end;
  margin: 0 0 18px;
  font-size: 12px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase;
  color: var(--plum-600);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--plum-500);
  box-shadow: 0 0 0 0 rgba(126, 76, 152, .5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(126, 76, 152, .45); }
  70%  { box-shadow: 0 0 0 12px rgba(126, 76, 152, 0); }
  100% { box-shadow: 0 0 0 0 rgba(126, 76, 152, 0); }
}

.hero__logo { grid-area: logo; justify-self: center; width: min(100%, 460px); }
.hero__logo img {
  width: 100%;
  filter: drop-shadow(0 30px 40px rgba(68, 34, 86, .12));
}

.hero__title {
  grid-area: title;
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(56px, 8.4vw, 112px);
  line-height: .92;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.hero__title em {
  font-style: normal;
  color: var(--plum-500);
}

.hero__lead {
  grid-area: lead;
  max-width: 48ch;
  margin: 26px 0 0;
  font-size: 1.06em;
  color: var(--ink-soft);
}
.hero__cta {
  grid-area: cta;
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 34px;
}
.hero__scroll {
  grid-area: scroll; align-self: end; justify-self: start;
  margin-top: 60px; width: 26px; height: 42px;
  border: 1px solid var(--lilac-300); border-radius: 13px;
  position: relative; display: block;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--plum-500);
  animation: scrollhint 1.8s infinite var(--ease);
}
@keyframes scrollhint {
  0%   { transform: translateY(0); opacity: 1; }
  80%  { transform: translateY(16px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ---------- bottoni ---------- */
.btn {
  --bg: var(--plum-800); --fg: #fff; --bd: var(--plum-800);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px;
  font-family: var(--body); font-weight: 500; font-size: 13px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--fg); background: var(--bg); border: 1px solid var(--bd); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .3s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(68, 34, 86, .5); }
.btn:active { transform: translateY(0); }
.btn--ghost { --bg: transparent; --fg: var(--plum-800); --bd: var(--lilac-300); }
.btn--ghost:hover { --bd: var(--plum-500); --bg: #fff; }
.btn--light { --bg: #fff; --fg: var(--plum-800); --bd: #fff; }
.btn--light:hover { --bg: var(--lilac-100); --bd: var(--lilac-100); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }

.btn__spinner {
  display: none; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .8s linear infinite;
}
.btn.is-loading .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- intestazioni di sezione ---------- */
.label {
  margin: 0 0 14px;
  font-size: 12px; font-weight: 500; letter-spacing: .3em; text-transform: uppercase;
  color: var(--plum-500);
  display: flex; align-items: center; gap: 14px;
}
.label::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.label--light { color: var(--lilac-300); }

.section-head h2,
.contact h2 {
  margin: 0;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(42px, 5.6vw, 76px);
  line-height: .95; letter-spacing: .04em; text-transform: uppercase;
}

/* ---------- discipline ---------- */
.discipline {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(40px, 8vh, 96px) var(--gutter);
  border-top: 1px solid var(--lilac-200);
}
.section-head { margin-bottom: clamp(32px, 5vh, 64px); }

.discipline__grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
}
.card {
  position: relative;
  padding: 44px clamp(24px, 3vw, 48px) 44px 0;
  border-top: 1px solid var(--plum-800);
}
.card + .card {
  padding-left: clamp(24px, 3vw, 48px); padding-right: 0;
  border-left: 1px solid var(--lilac-200);
}
.card__num {
  display: block;
  font-family: var(--display); font-size: 15px; letter-spacing: .3em; color: var(--lilac-400);
  margin-bottom: 22px;
}
.card h3 {
  margin: 0 0 20px;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(38px, 4.4vw, 60px); line-height: .95; letter-spacing: .05em; text-transform: uppercase;
}
.card h3 sup { font-size: .32em; vertical-align: top; top: .35em; position: relative; letter-spacing: 0; }
.card p { margin: 0 0 14px; max-width: 46ch; color: var(--ink-soft); }
.card__note { font-weight: 400; color: var(--plum-600) !important; }

/* ---------- manifesto ---------- */
.manifesto {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(24px, 6vh, 72px) var(--gutter) clamp(72px, 12vh, 140px);
  text-align: center;
}
.manifesto__flower { width: clamp(64px, 8vw, 96px); margin: 0 auto 28px; opacity: .9; }
.manifesto p {
  margin: 0 auto; max-width: 30ch;
  font-size: clamp(22px, 3vw, 36px); line-height: 1.35; font-weight: 300;
  letter-spacing: -.005em;
}
.manifesto p span {
  font-weight: 400; color: var(--plum-600);
  background: linear-gradient(transparent 70%, var(--lilac-100) 70%);
}

/* ---------- contatti ---------- */
.contact {
  position: relative; overflow: hidden;
  color: #fff;
  background: var(--plum-800);
}
.contact::before,
.contact::after {
  content: ""; position: absolute; border-radius: 100% 0 100% 0; pointer-events: none;
  background: var(--plum-600); opacity: .45;
}
.contact::before { width: 70vmin; height: 70vmin; right: -25vmin; bottom: -30vmin; transform: rotate(20deg); }
.contact::after { width: 40vmin; height: 40vmin; left: -16vmin; top: -14vmin; transform: rotate(-30deg); background: var(--plum-900); opacity: .6; }

.contact__inner {
  position: relative; z-index: 1;
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 10vh, 120px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.contact__text { color: var(--lilac-200); margin: 22px 0 36px; max-width: 40ch; }

.contact__list { margin: 0; display: grid; gap: 22px; }
.contact__list div { padding-left: 18px; border-left: 1px solid var(--plum-500); }
.contact__list dt {
  font-size: 11px; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--lilac-300);
  margin-bottom: 4px;
}
.contact__list dd { margin: 0; font-size: 1.1em; font-weight: 400; }
.contact__list a {
  text-decoration: none; background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .35s var(--ease);
}
.contact__list a:hover { background-size: 100% 1px; }

/* form */
.form {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: clamp(22px, 3.2vw, 40px);
  display: grid; gap: 20px;
}
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.field label,
.check span {
  display: block; margin-bottom: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--lilac-200);
}
.field abbr { text-decoration: none; color: var(--lilac-300); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit; font-weight: 400; color: #fff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color .25s, background .25s, box-shadow .25s;
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none; border-color: var(--lilac-300); background: rgba(255, 255, 255, .1);
  box-shadow: 0 0 0 4px rgba(186, 153, 196, .18);
}
.field input.is-invalid,
.field textarea.is-invalid { border-color: #ffb3c7; }

.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px;
  border-right: 1.5px solid var(--lilac-200); border-bottom: 1.5px solid var(--lilac-200);
  transform: translateY(-70%) rotate(45deg); pointer-events: none;
}
.select select { padding-right: 44px; cursor: pointer; }
.select option { color: var(--plum-800); }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { margin: 4px 0 0; width: 18px; height: 18px; accent-color: var(--lilac-300); flex: none; }
.check span { text-transform: none; letter-spacing: 0; font-weight: 300; font-size: 13px; line-height: 1.55; margin: 0; }
.check.is-invalid span { color: #ffb3c7; }

.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form__status { margin: 0; font-size: 14px; font-weight: 400; min-height: 1.4em; }
.form__status.is-ok { color: #d9f5e3; }
.form__status.is-error { color: #ffb3c7; }

/* ---------- footer ---------- */
.foot {
  position: relative; z-index: 1;
  background: var(--plum-900); color: var(--lilac-200);
  text-align: center; padding: 28px var(--gutter);
  font-size: 13px; letter-spacing: .04em;
}
.foot p { margin: 0; }
.foot__muted { color: var(--lilac-400); margin-top: 4px !important; font-size: 12px; }

/* ---------- reveal al caricamento ---------- */
.reveal {
  opacity: 0; transform: translateY(18px);
  animation: reveal .9s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 120ms + 80ms);
}
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* tablet */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "eyebrow"
      "title"
      "lead"
      "cta"
      "scroll";
    text-align: center;
    justify-items: center;
    min-height: 0;
    padding-top: 24px;
  }
  .hero__logo { width: min(72vw, 380px); margin-bottom: 28px; }
  .eyebrow { align-self: auto; }
  .hero__title { font-size: clamp(54px, 11vw, 96px); }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .hero__scroll { justify-self: center; margin-top: 44px; }

  .contact__inner { grid-template-columns: 1fr; }
}

/* smartphone */
@media (max-width: 640px) {
  .top { padding-top: 16px; }
  .top__brand span { display: none; }
  .top__phone { font-size: 13px; padding: 9px 14px; }

  .hero__title { font-size: clamp(50px, 14.5vw, 72px); }
  .hero__cta .btn { width: 100%; }
  .hero__scroll { display: none; }

  .discipline__grid { grid-template-columns: 1fr; }
  .card { padding: 32px 0; }
  .card + .card { padding-left: 0; border-left: 0; }

  .manifesto p { max-width: none; }

  .form__row--2 { grid-template-columns: 1fr; }
  .form { border-radius: 16px; }
  .form__foot .btn { width: 100%; }

  .petal--a { width: 90vmin; height: 90vmin; right: -40vmin; top: -30vmin; }
  .petal--b { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .petal, .eyebrow__dot, .hero__scroll span { animation: none; }
  .reveal { animation: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
