/* Fraseggio Studio — Coming Soon */

@font-face {
  font-family: "Ease Double Rounded";
  src: url("../assets/fonts/EaseDoubleRounded-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ease Double Rounded";
  src: url("../assets/fonts/EaseDoubleRounded-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ease Double Rounded";
  src: url("../assets/fonts/EaseDoubleRounded-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ease Double Rounded";
  src: url("../assets/fonts/EaseDoubleRounded-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Ease Double Rounded";
  src: url("../assets/fonts/EaseDoubleRounded-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --fra-bg-brand-inverse: #45172b;
  --fra-text-brand: #45172b;
  --fra-text-inverse: #cef1d7;
  --fra-rosa: #f1539e;        /* Design System: Colour / ROSA (accento) */
  --fra-bg-fallback: #a8ccb6; /* media del poster, visibile prima del caricamento */
  --font: "Ease Double Rounded", "Arial Rounded MT Bold", system-ui, sans-serif;
}

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

html, body { margin: 0; height: 100%; }

body {
  min-height: 100svh;
  background: var(--fra-bg-fallback);
  color: var(--fra-text-brand);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---------- Sfondo ---------- */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--fra-bg-fallback) url("../assets/poster.webp") center / cover no-repeat;
}
.bg__canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .6s ease;
}
.bg__canvas.is-ready { opacity: 1; }

/* ---------- Contenuto ---------- */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100svh;
  /* design 1440: wordmark a 55.59px dal top */
  padding: clamp(32px, 3.86vw, 56px) 16px 48px;
  text-align: center;
}

.page__brand { margin-bottom: clamp(28px, 3.07vw, 44px); line-height: 0; }
.wordmark { width: 200px; height: auto; }

.title {
  margin: 0 0 4px;
  font-weight: 900;
  font-size: clamp(40px, 11.6vw, 87.449px);
  line-height: 1.258;           /* 110 / 87.449 */
  letter-spacing: -0.05em;      /* -4.3725px */
  text-transform: uppercase;
  white-space: nowrap;
}

.lead {
  margin: 0 0 24px;
  max-width: 416px;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.278;           /* 2 righe = 46px */
  letter-spacing: -0.01em;
  text-wrap: balance;
}

/* ---------- Bottone con directional hover (Osmo) ---------- */
.btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 16px 24px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: inherit;
  font: 600 16px/1.25 var(--font);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.btn__bg {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background-color: var(--fra-bg-brand-inverse);
}

.btn__circle-wrap {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  overflow: hidden;
}

.btn__circle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 100%;
  border-radius: 50%;
  pointer-events: none;
  background-color: var(--fra-rosa);
  transform: translate(-50%, -50%) scale(0) rotate(0.001deg);
  transition: transform 0.7s cubic-bezier(0.625, 0.05, 0, 1), background-color 0.4s cubic-bezier(0.625, 0.05, 0, 1);
}

.before__100 { display: block; padding-top: 100%; }

.btn__text {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fra-text-inverse);
  transition: color 0.7s cubic-bezier(0.625, 0.05, 0, 1);
}

.btn-text-p { display: block; white-space: nowrap; color: currentColor; }

/* Icona bell: la forma è l'SVG di Figma (non modificato), il colore segue il testo */
.btn__icon {
  display: block;
  flex: none;
  width: 24px;
  height: 24px;
  background-color: currentColor;
  -webkit-mask: url("../assets/icon-bell.svg") center / contain no-repeat;
  mask: url("../assets/icon-bell.svg") center / contain no-repeat;
}

.btn:hover .btn__circle,
.btn:focus-visible .btn__circle { transform: translate(-50%, -50%) scale(1) rotate(0.001deg); }

/* Dark: all'hover il cerchio è Rosa e il testo passa al bordeaux (Rosa non è per i testi) */
.btn[data-theme="dark"]:hover .btn__text,
.btn[data-theme="dark"]:focus-visible .btn__text { color: var(--fra-text-brand); }

.btn:focus-visible { outline: 2px solid var(--fra-text-brand); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .bg__canvas, .btn__circle, .btn__text { transition: none; }
}
