/* ============================================================
   FCM SHELL v2 — header + footer unificati fc-moda.it
   Fonte unica di verità per pagine statiche E WordPress.
   Brief 18/08/2026 (rev 2): ultra fashion, fresh, effetto wow.
   Identità dal nuovo logo: monogramma FC serif + MILANO caps.
   Font: Jost (UI, come "MILANO") + Playfair Display (display).
   ============================================================ */

:root {
  /* — Design tokens FC MODA — */
  --fcm-bg: #fbfaf6;
  --fcm-surface: #f4f1e9;
  --fcm-ink: #17161a;
  --fcm-muted: #6d6a63;
  --fcm-line: rgba(23, 22, 26, .10);

  /* — SHELL MONOCROMA (decisione Alessandro 18/08 sera): SOLO nero e panna,
     design squadrato da ecommerce. I colori firma dei brand (sotto) NON si
     usano nella shell: vivono solo nelle schede/pagine brand. */
  --fcm-gus: #db4c3a;   /* corallo GUS — solo schede brand */
  --fcm-fed: #bd9648;   /* oro Federica Costa — solo schede brand */

  --fcm-font-ui: 'Jost', 'Century Gothic', -apple-system, sans-serif;
  --fcm-font-display: 'Playfair Display', 'Didot', Georgia, serif;

  --fcm-header-h: 86px;
  --fcm-radius: 0;
}

/* ---------- HEADER ---------- */
.fcm-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9990;
  background: rgba(251, 250, 246, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  font-family: var(--fcm-font-ui);
  transition: box-shadow .35s ease;
}
.fcm-header.is-scrolled { box-shadow: 0 12px 34px -20px rgba(23,22,26,.3); }

.fcm-header__inner {
  max-width: 1360px;
  margin: 0 auto;
  height: var(--fcm-header-h);
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 28px;
  transition: height .35s ease;
}
.fcm-header.is-scrolled .fcm-header__inner { height: 68px; }

/* logo: monogramma FC + lockup testuale */
.fcm-logo {
  display: flex;
  align-items: center;
  gap: 13px;
  flex-shrink: 0;
  text-decoration: none;
}
.fcm-logo img {
  height: 46px;
  width: auto;
  display: block;
  transition: height .35s ease;
}
.fcm-header.is-scrolled .fcm-logo img { height: 38px; }
.fcm-logo__text {
  display: flex;
  flex-direction: column;
  color: var(--fcm-ink);
  line-height: 1.15;
}
.fcm-logo__text b {
  font-weight: 600;
  font-size: 15.5px;
  letter-spacing: .3em;
}
.fcm-logo__text em {
  font-style: normal;
  font-weight: 400;
  font-size: 9px;
  letter-spacing: .52em;
  color: var(--fcm-muted);
}

/* nav desktop: caps spaziato, hover "roll" */
.fcm-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 auto;
}
.fcm-nav a {
  position: relative;
  display: inline-block;
  white-space: nowrap; /* mai voci di menu su due righe */
  padding: 12px 15px;
  color: var(--fcm-ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.fcm-roll {
  position: relative;
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.fcm-roll span {
  display: block;
  transition: transform .38s cubic-bezier(.77, 0, .18, 1);
}
.fcm-roll span + span {
  position: absolute;
  top: 100%;
  left: 0;
  color: var(--fcm-ink);
}
.fcm-nav a:hover .fcm-roll span { transform: translateY(-100%); }
.fcm-nav a::after {
  content: "";
  position: absolute;
  left: 15px; right: 15px; bottom: 6px;
  height: 1.5px;
  background: var(--fcm-ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s ease;
}
.fcm-nav a:hover::after,
.fcm-nav a.is-current::after { transform: scaleX(1); }

/* azioni destra */
.fcm-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }

.fcm-lang {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
}
.fcm-lang a, .fcm-lang span { color: var(--fcm-muted); text-decoration: none; }
.fcm-lang .is-active { color: var(--fcm-ink); border-bottom: 1px solid var(--fcm-ink); }
.fcm-lang a:hover { color: var(--fcm-ink); }
.fcm-lang .fcm-lang__sep { color: var(--fcm-line); }

.fcm-link-b2b {
  color: var(--fcm-ink);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 8px 2px;
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.fcm-link-b2b:hover { border-bottom-color: var(--fcm-ink); }

/* CTA: rettangolo nero pieno, hover invertito (stile ecommerce) */
.fcm-btn-register {
  position: relative;
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 13px 28px;
  border: 1px solid var(--fcm-ink);
  background: var(--fcm-ink);
  transition: background .25s ease, color .25s ease;
}
.fcm-btn-register:hover {
  background: transparent;
  color: var(--fcm-ink);
}
/* firma della casa: triangolino corallo GUS nell'angolo dei CTA */
.fcm-btn-register::after, .fcm-btn-access::after {
  content: "";
  position: absolute;
  right: 0; bottom: 0;
  border-style: solid;
  border-width: 0 0 7px 7px;
  border-color: transparent transparent var(--fcm-gus) transparent;
}
.fcm-btn-access {
  position: relative;
  display: none;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  padding: 11px 18px;
  border: 1px solid var(--fcm-ink);
  background: var(--fcm-ink);
  /* da loggato il testo è "Ciao {nome}": può comprimersi con ellissi,
     mai spingere fuori hamburger e carrello */
  min-width: 0;
  max-width: 46vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .fcm-btn-access { padding: 11px 12px; letter-spacing: .1em; }
}
.fcm-actions { min-width: 0; }
.fcm-burger, .fcm-cart { flex-shrink: 0; }

/* carrello */
.fcm-cart {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--fcm-ink);
  padding: 6px;
  transition: transform .2s ease;
}
.fcm-cart:hover { transform: translateY(-1px); }
.fcm-cart svg { display: block; }
.fcm-cart__badge {
  position: absolute;
  top: -2px; right: -4px;
  min-width: 16px; height: 16px;
  padding: 0 4px;
  background: var(--fcm-ink);
  color: var(--fcm-bg);
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}

/* linea di chiusura: un filo d'inchiostro, squadrato e netto */
.fcm-header__brands, .fcm-footer__brands {
  height: 1px;
  background: var(--fcm-ink);
}

/* burger */
.fcm-burger {
  display: none;
  background: none !important;
  border: 0 !important;
  padding: 8px !important;
  margin: 0 !important;
  width: 40px !important;
  min-width: 0 !important;
  flex: 0 0 auto;
  box-shadow: none !important;
  cursor: pointer;
}
.fcm-burger span {
  display: block;
  width: 24px !important;
  max-width: 24px;
  height: 1.5px;
  background: var(--fcm-ink);
  margin: 6px 0;
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- MENU MOBILE: takeover nero editoriale ---------- */
.fcm-mobile {
  position: fixed;
  inset: 0;
  z-index: 9995;
  background: #141317;
  color: #fff;
  font-family: var(--fcm-font-ui);
  display: flex;
  flex-direction: column;
  padding: 0 26px 30px;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transition: opacity .35s ease, visibility 0s linear .35s;
}
.fcm-mobile.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity .35s ease;
}
.fcm-mobile__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--fcm-header-h);
  flex-shrink: 0;
}
.fcm-mobile__top img { height: 40px; width: auto; }
.fcm-mobile__close {
  background: none;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  width: 44px; height: 44px;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: border-color .25s ease, transform .25s ease;
}
.fcm-mobile__close:hover { border-color: #fff; transform: rotate(90deg); }

.fcm-mobile__nav { margin-top: 5vh; }
.fcm-mobile__nav a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  color: #fff;
  text-decoration: none;
  font-family: var(--fcm-font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(30px, 8.5vw, 40px);
  line-height: 1.12;
  padding: 10px 0;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.22, 1, .36, 1);
}
.fcm-mobile.is-open .fcm-mobile__nav a { opacity: 1; transform: none; }
.fcm-mobile__nav a:nth-child(1) { transition-delay: .06s; }
.fcm-mobile__nav a:nth-child(2) { transition-delay: .11s; }
.fcm-mobile__nav a:nth-child(3) { transition-delay: .16s; }
.fcm-mobile__nav a:nth-child(4) { transition-delay: .21s; }
.fcm-mobile__nav a:nth-child(5) { transition-delay: .26s; }
.fcm-mobile__nav a:nth-child(6) { transition-delay: .31s; }
.fcm-mobile__nav a i {
  font-style: normal;
  font-family: var(--fcm-font-ui);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .2em;
  color: rgba(233, 228, 218, .55);
}

.fcm-mobile__foot {
  margin-top: auto;
  padding-top: 34px;
  opacity: 0;
  transition: opacity .5s ease .38s;
}
.fcm-mobile.is-open .fcm-mobile__foot { opacity: 1; }
.fcm-mobile__cta {
  display: block;
  text-align: center;
  background: #fff;
  color: var(--fcm-ink);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  padding: 16px 24px;
  border-radius: var(--fcm-radius);
  margin-bottom: 22px;
}
.fcm-mobile__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.fcm-mobile__row a { color: rgba(255,255,255,.75); text-decoration: none; padding: 6px 0; }
.fcm-mobile__row a:hover { color: #fff; }
.fcm-mobile__brands {
  display: flex;
  height: 1px;
  margin-top: 18px;
  background: rgba(233, 228, 218, .35);
}
.fcm-mobile__brands span { flex: 1; }

body.fcm-mobile-open { overflow: hidden; }

/* fascia stretta desktop: compatta prima di passare al burger */
@media (max-width: 1439px) {
  .fcm-header__inner { gap: 18px; }
  .fcm-nav a { padding: 12px 10px; letter-spacing: .16em; }
  .fcm-actions { gap: 12px; }
}
.fcm-cart { flex-shrink: 0; }

@media (max-width: 1279px) {
  .fcm-nav, .fcm-link-b2b, .fcm-lang, .fcm-btn-register { display: none; }
  .fcm-burger { display: block !important; }
  .fcm-btn-access { display: inline-block; }
  .fcm-header__inner { gap: 12px; padding: 0 18px; height: 72px; }
  .fcm-actions { margin-left: auto; gap: 12px; }
  .fcm-header.is-scrolled .fcm-header__inner { height: 64px; }
  .fcm-logo img { height: 40px; }
  .fcm-logo__text b { font-size: 13.5px; }
  .fcm-logo__text em { font-size: 8px; }
}

/* ---------- FOOTER ---------- */
.fcm-footer {
  background: var(--fcm-surface);
  color: var(--fcm-ink);
  font-family: var(--fcm-font-ui);
}
.fcm-footer__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 64px 28px 44px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr 1fr 1.3fr;
  gap: 44px;
}
.fcm-footer__logo { display: inline-block; }
.fcm-footer__logo img { height: 108px; width: auto; }
.fcm-footer__claim {
  font-family: var(--fcm-font-display);
  font-style: italic;
  font-size: 20px;
  font-weight: 500;
  margin: 18px 0 20px;
  color: var(--fcm-ink);
}
.fcm-footer h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--fcm-muted);
  margin: 0 0 16px;
}
.fcm-footer ul { list-style: none; margin: 0; padding: 0; }
.fcm-footer li { margin: 0 0 10px; }
.fcm-footer a { color: var(--fcm-ink); text-decoration: none; font-size: 14.5px; font-weight: 400; letter-spacing: .04em; }
.fcm-footer a:hover { text-decoration: underline; text-decoration-color: var(--fcm-ink); text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.fcm-footer__contacts p { margin: 0 0 9px; font-size: 13.5px; color: var(--fcm-muted); line-height: 1.55; letter-spacing: .02em; }
.fcm-footer__contacts strong { color: var(--fcm-ink); font-weight: 600; letter-spacing: .06em; }

.fcm-social { display: flex; gap: 12px; margin-top: 6px; }
.fcm-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--fcm-line);
  color: var(--fcm-ink);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.fcm-social a:hover { background: var(--fcm-ink); border-color: var(--fcm-ink); color: var(--fcm-surface); text-decoration: none; }
.fcm-social svg { width: 17px; height: 17px; }

.fcm-footer__bottom { border-top: 1px solid var(--fcm-line); }
.fcm-footer__bottom-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 20px 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--fcm-muted);
}
.fcm-footer__bottom a { font-size: 11.5px; font-weight: 500; color: var(--fcm-muted); }
.fcm-footer__bottom .fcm-footer__made { margin-left: auto; }

@media (max-width: 1023px) {
  .fcm-footer__inner { grid-template-columns: 1fr 1fr; padding: 48px 22px 34px; gap: 36px; }
}
@media (max-width: 560px) {
  .fcm-footer__inner { grid-template-columns: 1fr; text-align: center; gap: 34px; }
  .fcm-footer__logo img { margin: 0 auto; }
  .fcm-social { justify-content: center; }
  .fcm-footer__bottom-inner { flex-direction: column; text-align: center; gap: 10px; }
  .fcm-footer__bottom .fcm-footer__made { margin-left: 0; }
}

/* ---------- COOKIE BANNER (consent mode v2, sostituisce Complianz) ---------- */
.fcm-cookie {
  position: fixed;
  left: 20px; bottom: 20px;
  z-index: 10050;
  max-width: 380px;
  background: var(--fcm-bg);
  border: 1px solid var(--fcm-ink);
  padding: 22px 24px 20px;
  font-family: var(--fcm-font-ui);
  box-shadow: 0 18px 44px -20px rgba(23,22,26,.4);
}
.fcm-cookie[hidden] { display: none; }
.fcm-cookie h4 { font-family: var(--fcm-font-display); font-weight: 500; font-size: 19px; margin: 0 0 8px; }
.fcm-cookie p { font-weight: 300; font-size: 13.5px; line-height: 1.55; letter-spacing: .02em; color: var(--fcm-muted); margin: 0 0 16px; }
.fcm-cookie p a { color: var(--fcm-ink); }
.fcm-cookie__row { display: flex; gap: 10px; }
.fcm-cookie__ok, .fcm-cookie__no {
  font-family: var(--fcm-font-ui);
  font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  padding: 11px 16px; cursor: pointer; transition: background .2s ease, color .2s ease;
}
.fcm-cookie__ok { position: relative; background: var(--fcm-ink); color: #fff; border: 1px solid var(--fcm-ink); }
.fcm-cookie__ok::after { content: ""; position: absolute; right: 0; bottom: 0; border-style: solid; border-width: 0 0 6px 6px; border-color: transparent transparent var(--fcm-gus) transparent; }
.fcm-cookie__ok:hover { background: transparent; color: var(--fcm-ink); }
.fcm-cookie__no { background: transparent; color: var(--fcm-ink); border: 1px solid var(--fcm-line); }
.fcm-cookie__no:hover { border-color: var(--fcm-ink); }
.fcm-ck-manage { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--fcm-font-ui); font-size: 11.5px; font-weight: 500; letter-spacing: .08em; color: var(--fcm-muted); }
.fcm-ck-manage:hover { color: var(--fcm-ink); }
@media (max-width: 560px) { .fcm-cookie { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* Fluent Forms — bottone submit allineato al design (nero squadrato + triangolino corallo) */
body.fcm-shell-on .fluentform .ff-btn-submit {
  position: relative;
  background: var(--fcm-ink) !important;
  color: var(--fcm-bg) !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-family: var(--fcm-font-ui) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 15px 34px !important;
  cursor: pointer;
  transition: opacity .2s ease;
}
body.fcm-shell-on .fluentform .ff-btn-submit:hover { opacity: .85; }
body.fcm-shell-on .fluentform .ff-btn-submit::after {
  content: ""; position: absolute; right: 0; bottom: 0;
  border-style: solid; border-width: 0 0 7px 7px;
  border-color: transparent transparent var(--fcm-gus) transparent;
}


/* stato "connesso": pallino verde nel bottone account (fcm-shell.js).
   Su mobile resta solo saluto + pallino, il nome vive nel mio account. */
.fcm-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #2ebd59;
  box-shadow: 0 0 0 3px rgba(46, 189, 89, .22);
  margin-right: 9px;
  vertical-align: middle;
}
.fcm-acc-s { display: none; }
@media (max-width: 560px) {
  .fcm-btn-access .fcm-acc-l { display: none; }
  .fcm-btn-access .fcm-acc-s { display: inline; }
}
