/* ==========================================================================
   Nutrifree Professional — Landing "Coming soon", Variante C
   Riferimento HTML/CSS stack-agnostico. Breakpoint: 1000px, 560px.
   ========================================================================== */

/* ---------- Font ---------- */
@font-face {
  font-family: "Adelia";
  src: url("../fonts/adelia.woff2") format("woff2"),
       url("../fonts/adelia.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Token ---------- */
:root {
  /* Colori */
  --nf-navy: #002855;
  --nf-navy-hover: #0B3C74;
  --nf-copper: #A94A28;
  --nf-copper-hover: #8C3B1D;
  --nf-focus: #CB633D;
  --nf-bg: #EAF0F7;
  --nf-bg-top: #F1F5FA;
  --nf-hero-end: #C3D3E7;
  --nf-lamina: #966A8D;
  --nf-power: #C4A169;
  --nf-band-text: #DCE6F2;
  --nf-white: #FFFFFF;
  --nf-field-border: #9FB2C8;
  --nf-placeholder: #5F7691;
  --nf-error: #B3261E;
  --nf-error-field-bg: #FFF6F5;
  --nf-alert-bg: #FDECEA;
  --nf-alert-text: #7A1510;

  /* Tipografia */
  --nf-font-display: "Adelia", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --nf-font-body: "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Forme */
  --nf-radius-pill: 999px;
  --nf-radius-media: 28px;
  --nf-radius-field: 14px;
  --nf-radius-alert: 16px;
  --nf-radius-panel: 32px;

  /* Layout */
  --nf-container: 1320px;
  --nf-gutter: 24px;
  /* padding laterale delle sezioni a tutta larghezza, allineato al container */
  --nf-section-x: max(80px, calc((100% - var(--nf-container)) / 2 + 80px));
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--nf-bg);
  color: var(--nf-navy);
  font-family: var(--nf-font-body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
h1, h2, h3, p { margin: 0; }

.disp {
  font-family: var(--nf-font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: .98;
}
.uc { text-transform: uppercase; }

.wrap {
  max-width: var(--nf-container);
  margin: 0 auto;
  padding: 0 var(--nf-gutter);
}

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--nf-focus);
  outline-offset: 3px;
}

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: var(--nf-radius-pill);
  font: 700 13px/1 var(--nf-font-body);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { cursor: progress; }

.btn--copper { background: var(--nf-copper); color: var(--nf-white); }
.btn--copper:hover { background: var(--nf-copper-hover); }

.btn--navy { background: var(--nf-navy); color: var(--nf-white); }
.btn--navy:hover { background: var(--nf-navy-hover); }

.btn--alert {
  background: var(--nf-alert-text);
  color: var(--nf-white);
  min-height: 44px;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
  background: var(--nf-bg-top);
}
.site-header__logo { display: block; line-height: 0; }
.site-header__logo img { height: 150px; width: auto; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--nf-bg-top) 0%, var(--nf-hero-end) 100%);
}
.hero__inner {
  position: relative;
  min-height: 1000px;
  overflow: hidden;
}
.hero__text {
  position: absolute;
  top: 28px;
  left: var(--nf-section-x);
  max-width: 400px;
  z-index: 3;
}
.hero__title {
  width: 579px;
  max-width: calc(100vw - 2 * var(--nf-gutter));
  font-size: 80px;
  line-height: 1.03;
  letter-spacing: 0.58px;
}
.hero__lead {
  width: 419px;
  max-width: 100%;
  margin-top: 24px;
  font-size: 19px;
  line-height: 1.5;
}
.check-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
}
.check-list__icon { flex: none; }
.check-list__icon circle { fill: var(--nf-navy); }
.check-list__icon path {
  fill: none;
  stroke: var(--nf-white);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero__cta { margin-top: 20px; }

.hero__stage {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(max(var(--nf-gutter), (100% - var(--nf-container)) / 2 + var(--nf-gutter)) + 330px);
  right: max(var(--nf-gutter), calc((100% - var(--nf-container)) / 2 + var(--nf-gutter)));
  z-index: 2;
}
.hero__img {
  position: absolute;
  left: 60%;
  top: 110px;
  height: 720px;
  transform: translateX(-50%);
}
.hero__photo {
  position: relative;
  display: block;
  height: 100%;
  width: auto;
  max-width: none;
}
.hero__shadow {
  position: absolute;
  left: 10%;
  right: -55%;
  bottom: -16px;
  height: 56px;
  background: radial-gradient(ellipse 48% 46% at 40% 50%,
    rgba(0, 40, 85, .6) 0%, rgba(0, 40, 85, .36) 40%,
    rgba(0, 40, 85, .12) 75%, rgba(0, 40, 85, 0) 100%);
  filter: blur(3px);
}
.hero__decor {
  position: absolute;
  left: -27.07%;
  top: -7.756%;
  width: 207.02%;
  height: auto;
  max-width: none;
  pointer-events: none;
}
.hero__word {
  position: absolute;
  left: 0;
  right: 0;
  top: 892px;
  z-index: 1;
  text-align: center;
  white-space: nowrap;
  font-size: clamp(70px, 14.2vw, 212px);
  line-height: .85;
  color: var(--nf-white);
  pointer-events: none;
}

/* ---------- Sezioni prodotto ---------- */
.product {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 56px;
  align-items: center;
  padding: 56px var(--nf-section-x);
}
.product--lamina { background: var(--nf-lamina); color: var(--nf-white); }
.product--power { background: var(--nf-power); color: var(--nf-navy); }

.product__text {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.product__name {
  font-size: clamp(60px, 8vw, 120px);
  letter-spacing: -0.02em;
  line-height: .9;
}
.product__claim {
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: 0;
}
.product__body {
  max-width: 520px;
  font-size: 17px;
  line-height: 1.55;
}
.product--lamina .product__body { font-weight: 600; }

.product__media {
  position: relative;
  aspect-ratio: 4 / 3.4;
  border-radius: var(--nf-radius-media);
  overflow: hidden;
}
.product__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ---------- Fascia CTA ---------- */
.band {
  background: var(--nf-navy);
  color: var(--nf-white);
  padding: 64px var(--nf-section-x);
}
.band__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.band__title {
  font-size: clamp(44px, 7vw, 100.8px);
  line-height: .95;
  letter-spacing: 0;
}
.band__body {
  max-width: 780px;
  font-size: 22px;
  line-height: 1.55;
  color: var(--nf-band-text);
}

/* ---------- Form anteprima ---------- */
.preview {
  padding-top: 56px;
  padding-bottom: 16px;
}
.preview__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 40px;
  align-items: start;
}
.preview__pack {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}
.preview__pack img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  filter: drop-shadow(0 24px 24px rgba(0, 40, 85, .28));
}
.preview__panel {
  padding: 48px;
  border-radius: var(--nf-radius-panel);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form__title { font-size: 36px; letter-spacing: 0.01em; }
.form__note { margin-top: 10px; font-size: 18px; opacity: .8; }
.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form__label {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .04em;
}
.form__optional { font-weight: 400; opacity: .7; letter-spacing: 0; }

.field {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1.5px solid var(--nf-field-border);
  border-radius: var(--nf-radius-field);
  background: var(--nf-white);
  color: var(--nf-navy);
  font: 400 16px/1.4 var(--nf-font-body);
}
.field::placeholder { color: var(--nf-placeholder); opacity: 1; }
.field--textarea { min-height: 132px; resize: vertical; }
.field[aria-invalid="true"] {
  border-color: var(--nf-error);
  background: var(--nf-error-field-bg);
}

.form__error {
  margin-top: 6px;
  color: var(--nf-error);
  font-size: 13px;
  font-weight: 600;
}

.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  line-height: 1.45;
  cursor: pointer;
}
.form__consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--nf-navy);
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.form__submit { min-width: 220px; }

.form-alert {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border: 1.5px solid var(--nf-error);
  border-radius: var(--nf-radius-alert);
  background: var(--nf-alert-bg);
  color: var(--nf-alert-text);
}
.form-alert__text {
  flex: 1 1 260px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
}

.form-success {
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
}
.form-success__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--nf-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success__icon path {
  fill: none;
  stroke: var(--nf-white);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.form-success__title { font-size: 44px; }
.form-success__title:focus { outline: none; }
.form-success__text { max-width: 440px; font-size: 17px; line-height: 1.55; }

/* ---------- Footer ---------- */
.site-footer {
  padding-top: 32px;
  padding-bottom: 40px;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
  border-top: 1.5px solid var(--nf-navy);
  padding-top: 32px;
}
.site-footer__inner img { height: 96px; width: auto; }
.site-footer__inner p { font-size: 14px; line-height: 1.6; }

/* ==========================================================================
   ≤ 1000px — tablet e mobile: tutto in colonna
   ========================================================================== */
@media (max-width: 1000px) {
  .hero__inner {
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: 28px 24px 0;
  }
  .hero__text,
  .hero__stage,
  .hero__word { position: static; }

  .hero__text { margin-top: 24px; }
  .hero__title {
    width: auto;
    font-size: 42px;
    letter-spacing: 0.3px;
  }
  .hero__lead { width: auto; margin-top: 20px; font-size: 17px; }
  .check-list li { font-size: 16px; }

  .hero__stage {
    position: relative;
    left: auto;
    right: auto;
    height: 460px;
    margin-top: 16px;
  }
  .hero__img {
    left: 50%;
    top: 0;
    height: 100%;
  }
  .hero__decor { display: none; }   /* il livello decorativo è solo desktop */

  .hero__word {
    margin-top: 12px;
    margin-bottom: -17px;
    font-size: 12.5vw;               /* 49px a 390px */
  }

  .product {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 28px 52px;
  }
  .product__media { aspect-ratio: 4 / 3; order: -1; } /* immagine sempre sopra */

  .band { padding: 40px 52px; }

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

/* ==========================================================================
   ≤ 560px — mobile
   ========================================================================== */
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }

  .site-header__logo img { height: 96px; }

  .product { padding: 40px 24px; }
  .product__claim { font-size: 28px; }

  .band { padding: 48px 24px; }
  .band__title { font-size: 44px; }
  .band__body { font-size: 17px; }
  .br-desktop { display: none; }

  .preview__pack img { max-width: 240px; }
  .preview__panel { padding: 8px 0 24px; border-radius: 0; }

  .form__row { grid-template-columns: minmax(0, 1fr); }
  .form__consent { font-size: 14px; }
}

/* ---------- Movimento ridotto ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ==========================================================================
   DRG
   ========================================================================== */

a:not(.btn)         { color: var(--nf-copper); }
a:not(.btn):hover   { color: var(--nf-copper-hover); }
a:not(.btn):focus   { color: var(--nf-focus); }

.product__media img.label_ai,
.hero__img img.label_ai,
.label_ai {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: auto !important;
  left: auto !important;
  width: 120px !important;
  height: auto !important;
  object-fit: contain !important;
  z-index: 10;
}

.hero__img img.label_ai {
  position: absolute !important;
  top: auto !important;
  right: -140px !important;
  bottom: 0 !important;
  left: auto !important;
  width: 120px !important;
  height: auto !important;
  object-fit: contain !important;
  z-index: 10;
}

@media (max-width: 560px) {
  .hero__img img.label_ai {
    position: absolute !important;
    top: auto !important;
    right: 0 !important;
  }
}




/* ==========================================================================
   Riduzione proporzionale Desktop (> 1000px)
   ========================================================================== */
@media (min-width: 1001px) {
  .nf {
    /* Riduce tutto al 82% (puoi regolare tra 0.80 e 0.85 a gusto) */
    zoom: 0.80;
  }
}

/* Fallback per Firefox (che in alcune versioni non supporta zoom o lo gestisce diversamente) */
@supports not (zoom: 0.80) {
  @media (min-width: 1001px) {
    .nf {
      transform: scale(0.80);
      transform-origin: top center;
      width: 125%; /* Compensazione matematica: 100 / 0.82 */
      margin-left: -12.5%; /* Centra la larghezza compensata */
    }
  }
}