/* ==========================================================================
   Incontri e Amicizie 35+ — foglio di stile unico
   Palette: notte / bordeaux / prugna + rosa neon + oro champagne
   ========================================================================== */

:root {
  --bg-0: #100513;
  --bg-1: #180718;
  --wine: #3a0f2a;
  --plum: #4b1740;
  --pink: #ff4d9a;
  --pink-2: #ef1f7d;
  --pink-soft: #ff9ec4;
  --gold: #e9c68b;
  --cream: #fdf2ec;
  --muted: #d8b7c6;
  --line: rgba(255, 214, 231, .16);
  --radius: 26px;
  --shadow-lg: 0 30px 80px rgba(3, 0, 8, .62);
  --max: 1140px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  color: var(--cream);
  background: var(--bg-0);
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.62;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

/* Alone di luce di fondo --------------------------------------------------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 12% 8%, rgba(180, 26, 108, .34), transparent 62%),
    radial-gradient(ellipse 55% 42% at 92% 4%, rgba(126, 47, 118, .30), transparent 60%),
    radial-gradient(ellipse 70% 50% at 55% 96%, rgba(150, 30, 74, .26), transparent 65%),
    linear-gradient(180deg, #150714 0%, #100512 45%, #0d0410 100%);
}
.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .09;
  background-image: radial-gradient(#fff 0.7px, transparent 0.7px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(#000 0%, transparent 72%);
  mask-image: linear-gradient(#000 0%, transparent 72%);
}

/* Accessibilità ----------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--pink);
  color: #28051a;
  font-weight: 800;
  text-decoration: none;
  transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

:where(a, button, summary):focus-visible {
  outline: 3px solid #ffe1b8;
  outline-offset: 4px;
  border-radius: 8px;
}

.container {
  width: min(var(--max), calc(100% - 44px));
  margin-inline: auto;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: relative;
  z-index: 5;
  padding: 18px 0 6px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: .04em;
  font-weight: 700;
  white-space: nowrap;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #250615;
  background: linear-gradient(135deg, #ffe3b6, #ff7fb8 60%, #ff4d9a);
  box-shadow: 0 0 24px rgba(255, 71, 148, .45);
  flex: 0 0 auto;
}

.brand__text { color: #fff5ef; }
.brand__amp { color: var(--pink-soft); font-style: italic; }
.brand strong { color: var(--gold); font-weight: 800; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 17px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.nav-cta:hover {
  background: rgba(255, 77, 154, .18);
  border-color: rgba(255, 158, 196, .55);
  transform: translateY(-1px);
}
.nav-cta__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff6cae;
  box-shadow: 0 0 10px #ff6cae;
}
.nav-cta__short { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 34px 0 26px; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 182, 217, .32);
  border-radius: 999px;
  background: rgba(243, 109, 155, .10);
  color: #ffd7e7;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ff6ca9;
  box-shadow: 0 0 11px #ff6ca9;
}

.hero__title {
  margin: 0 0 20px;
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(2.45rem, 4.6vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -.032em;
  text-wrap: balance;
}
.hero__title em {
  font-style: italic;
  background: linear-gradient(100deg, #ffd9a8 0%, var(--gold) 42%, #ff9ec4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 26px;
  max-width: 34em;
  font-size: clamp(1rem, 1.55vw, 1.09rem);
  color: #eed3e0;
}

.hero__actions { margin-bottom: 24px; }

.hero__hint {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: #cfa7bb;
}

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero__facts li {
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: #e9c9d7;
  font-size: 11.5px;
  font-weight: 700;
}
.hero__facts span { color: var(--gold); margin-right: 3px; }

/* Bottone principale ------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 15px 26px;
  border: 1px solid rgba(255, 183, 214, .68);
  border-radius: 16px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.btn--primary {
  color: #2b0619;
  background: linear-gradient(115deg, #ff86bd 0%, #ff4d9a 48%, #ef1f7d 100%);
  box-shadow:
    0 14px 40px rgba(233, 0, 117, .38),
    inset 0 2px 0 rgba(255, 255, 255, .55);
}
.btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 18px 50px rgba(233, 0, 117, .48),
    inset 0 2px 0 rgba(255, 255, 255, .6);
}
.btn--primary:active { transform: translateY(0); }
.btn--wide { width: 100%; max-width: 380px; }

/* Visual hero ------------------------------------------------------------- */
.hero__visual { margin: 0; }

.hero__frame {
  position: relative;
  aspect-ratio: 864 / 675;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(255, 202, 212, .34);
  box-shadow:
    var(--shadow-lg),
    0 0 70px rgba(231, 55, 118, .26);
  isolation: isolate;
  background: linear-gradient(150deg, #3a1029, #240a1d 55%, #180617);
}

.hero__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(20, 4, 18, 0) 42%, rgba(24, 5, 22, .55) 74%, rgba(18, 3, 17, .92) 100%),
    radial-gradient(ellipse at 78% 12%, rgba(255, 120, 180, .18), transparent 55%);
}

.hero__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 9px 15px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffe0ae, #eeb0c4);
  color: #52132f;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .06em;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .45);
  transform: rotate(4deg);
}

.hero__caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 1;
}
.hero__caption span {
  display: block;
  margin-bottom: 6px;
  color: #ffdfec;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero__caption strong {
  display: block;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  line-height: 1.16;
  color: #fff8f4;
  text-shadow: 0 3px 18px rgba(0, 0, 0, .65);
}

.hero__caption-note {
  margin: 12px 4px 0;
  font-size: 10.5px;
  line-height: 1.5;
  color: #b791a5;
}

/* Immagine assente: sfumatura elegante, l'errore resta in console --------- */
.hero__frame img.is-missing {
  opacity: 0;
}
.hero__frame.is-missing::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 120, 180, .55), transparent 60%),
    linear-gradient(150deg, #571a3c, #2a0a23 60%, #180617);
}

/* ==========================================================================
   Sezioni
   ========================================================================== */
.section { padding: 74px 0; }
.section--tight { padding: 56px 0; }

.kicker {
  margin: 0 0 10px;
  text-align: center;
  color: #f6a8cc;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.kicker--light { color: #ffd0e2; }

.section__title {
  margin: 0 auto 12px;
  max-width: 22em;
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  line-height: 1.16;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.section__lead {
  margin: 0 auto 38px;
  max-width: 46em;
  text-align: center;
  color: #ddbccd;
  font-size: 15px;
}

/* Card servizi ------------------------------------------------------------ */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  padding: 28px 25px 26px;
  border: 1px solid rgba(255, 178, 208, .16);
  border-radius: 22px;
  background: linear-gradient(150deg, rgba(96, 32, 68, .55), rgba(46, 17, 42, .82));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover {
  border-color: rgba(255, 158, 196, .42);
  transform: translateY(-3px);
}
.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 15px;
  color: #ffd9a9;
  background: rgba(255, 123, 171, .14);
  border: 1px solid rgba(255, 158, 196, .2);
}
.card h3 {
  margin: 0 0 9px;
  font-family: Georgia, serif;
  font-weight: 600;
  font-size: 1.34rem;
  line-height: 1.28;
}
.card p { margin: 0; color: #ddbacd; font-size: 14px; }

/* Step -------------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.step {
  padding: 22px 8px 6px;
  border-top: 1px solid rgba(237, 182, 205, .28);
}
.step__num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 13px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffe4bc, #e9c68b);
  color: #2b0d1d;
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: .04em;
}
.step h3 {
  margin: 0 0 7px;
  font-family: Georgia, serif;
  font-weight: 600;
  font-size: 1.2rem;
}
.step p { margin: 0; color: #ddbacd; font-size: 14px; }

/* CTA centrale ------------------------------------------------------------ */
.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 58px 28px 54px;
  border: 1px solid rgba(232, 178, 199, .34);
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% -30%, rgba(255, 122, 158, .48), transparent 62%),
    linear-gradient(140deg, #6d2145 0%, #42122f 52%, #2b0c24 100%);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .1);
}
.cta-panel::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -80px;
  width: 420px;
  height: 420px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 200, 225, .18), transparent 68%);
  pointer-events: none;
}
.cta-panel__title {
  position: relative;
  margin: 0 auto 14px;
  max-width: 20em;
  font-family: Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.cta-panel__lead {
  position: relative;
  margin: 0 auto 26px;
  max-width: 34em;
  color: #f3d8e2;
  font-size: 15px;
}
.cta-panel .btn { position: relative; }
.cta-panel__hint {
  position: relative;
  margin: 14px 0 0;
  font-size: 12.5px;
  color: #e7c2d4;
}
.cta-panel__hint strong { color: #fff0f5; }

/* FAQ --------------------------------------------------------------------- */
.faq {
  max-width: 780px;
  margin: 0 auto;
}
.faq details {
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  padding: 18px 4px;
}
.faq details:first-child { border-top: 1px solid rgba(255, 255, 255, .16); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
  font-weight: 750;
  font-size: 15.5px;
  color: #fff3f0;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  color: #f4a8c4;
  font-size: 22px;
  line-height: 1;
  transition: transform .18s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p {
  margin: 12px 0 2px;
  color: #ddbacd;
  font-size: 14px;
  max-width: 60em;
}

/* Footer ------------------------------------------------------------------ */
.site-footer {
  margin-top: 20px;
  padding: 34px 0 46px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  color: #bb98ad;
  font-size: 12px;
}
.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.footer__brand { margin: 0; color: #f0d9e4; font-size: 13px; font-weight: 700; }
.footer__brand strong { color: var(--gold); }
.footer__tag {
  margin-left: 6px;
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #d6b3c6;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.footer__links a { color: #e7c3d3; text-underline-offset: 3px; }
.footer__links a:hover { color: #fff; }
.footer__note {
  max-width: 74em;
  margin: 0 0 12px;
  line-height: 1.62;
  color: #a9889c;
}
.footer__copy { margin: 0; color: #8f7186; }

/* Barra mobile ------------------------------------------------------------ */
.mobile-bar { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */@media (max-width: 940px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .hero__visual { max-width: 620px; margin-inline: auto; width: 100%; }
  .hero { padding-top: 18px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .step { padding-top: 18px; }
  .section { padding: 56px 0; }
  .section--tight { padding: 44px 0; }
}

@media (max-width: 720px) {
  .container { width: calc(100% - 32px); }
  .brand { font-size: 12.5px; }
  .brand__mark { width: 30px; height: 30px; border-radius: 10px; }
  .nav-cta { padding: 9px 12px; font-size: 11px; }
  .nav-cta__arrow { display: none; }

  /* Mobile: prima l'immagine, poi il testo; il viso non viene tagliato */
  .hero__grid { display: flex; flex-direction: column; gap: 22px; }
  .hero__visual { order: -1; }
  .hero__frame { border-radius: 22px; }
  .hero__frame img { object-position: 50% 30%; }
  .hero__badge { top: 12px; right: 12px; padding: 7px 12px; font-size: 10px; }
  .hero__caption { left: 16px; right: 16px; bottom: 15px; }
  .hero__caption strong { font-size: 1.06rem; }
  .hero__title { font-size: clamp(2.15rem, 9.4vw, 2.9rem); }

  .btn { min-height: 50px; padding: 14px 20px; font-size: 15px; }

  .mobile-bar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 213, 225, .28);
    background: rgba(27, 8, 26, .92);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    /* Compare solo dopo il primo scroll: non copre il CTA della prima schermata */
    transform: translateY(115%);
    transition: transform .28s ease;
    will-change: transform;
  }
  body.is-scrolled .mobile-bar { transform: translateY(0); }
  .mobile-bar .btn { width: 100%; border-radius: 14px; min-height: 48px; }
  .site-footer { padding-bottom: 104px; }
}

@media (max-width: 480px) {
  /* Schermi stretti: la CTA di navigazione passa alla versione breve,
     così header e barra fissa non escono mai dal viewport. */
  .container { width: calc(100% - 28px); }
  .brand { font-size: 11.5px; gap: 8px; }
  .brand__mark { width: 28px; height: 28px; border-radius: 9px; }
  .nav-cta { padding: 8px 11px; font-size: 10.5px; gap: 6px; min-height: 44px; }
  .nav-cta__long { display: none; }
  .nav-cta__short { display: inline; }
}

@media (max-width: 400px) {
  .hero__title { font-size: 1.95rem; }
  .eyebrow { font-size: 9px; letter-spacing: .08em; padding: 6px 10px; }
  .btn { padding: 13px 16px; font-size: 14.5px; }
}

/* Rispetto delle preferenze di movimento ---------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}
