/* ============================================================
   Meeting Hub · Landing Page
   Brand system: Aeonik (display) + Raleway (testo)
   Palette: coral #F06A69 · ink #231F20 · teal #01B29F
   ============================================================ */

/* ---------- Font ---------- */
@font-face {
  font-family: 'Aeonik';
  src: url('../fonts/Aeonik-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Aeonik';
  src: url('../fonts/Aeonik-Medium.otf') format('opentype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Aeonik';
  src: url('../fonts/Aeonik-Bold.otf') format('opentype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('../fonts/Raleway-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --coral: #F06A69;
  --coral-dark: #D54F4E;
  --coral-soft: #FBE4E3;
  --ink: #231F20;
  --ink-soft: #5C5658;
  --teal: #01B29F;
  --gold: #E0A82E;
  --silver: #98979C;
  --cream: #FBF7F5;
  --gray-bg: #F4F3F2;
  --line: #ECE9E7;
  --white: #FFFFFF;

  --display: 'Aeonik', 'Raleway', system-ui, sans-serif;
  --text: 'Raleway', system-ui, sans-serif;

  --maxw: 1180px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px -22px rgba(35,31,32,.30);
  --shadow-soft: 0 10px 34px -18px rgba(35,31,32,.22);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--text);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 52px 0; }
.section--tight { padding: 34px 0; }
.center { text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 5.4vw, 42px);
  margin-bottom: 14px;
}
.section-title .accent { color: var(--coral); }
.section-lead {
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--ink-soft);
  max-width: 620px;
}
.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-weight: 500; font-size: 16px;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--coral); color: #fff;
  box-shadow: 0 12px 26px -12px rgba(240,106,105,.85);
}
.btn--primary:hover { background: var(--coral-dark); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--coral); }
.btn--white:hover { background: var(--ink); color: #fff; }
.btn--block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.header__logo img { height: 30px; }
.header__nav { display: none; gap: 30px; }
.header__nav a {
  font-family: var(--display); font-size: 15px; color: var(--ink-soft);
  transition: color .15s ease;
}
.header__nav a:hover { color: var(--coral); }
.header .btn { padding: 10px 20px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { background: var(--white); padding-top: 38px; overflow: hidden; }
.hero__grid { display: grid; gap: 30px; align-items: center; }
.hero__ratings { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.rating-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 14px; box-shadow: var(--shadow-soft);
}
.rating-chip strong { font-family: var(--display); font-weight: 700; }
.rating-chip .stars { color: var(--coral); letter-spacing: 1px; font-size: 12px; }
.rating-chip .src { font-weight: 700; }
.rating-chip .src--fb { color: #1877F2; }
.rating-chip .src--g  { color: #4285F4; }
.rating-chip .src--tp { color: #00B67A; }

.hero h1 {
  font-size: clamp(33px, 7vw, 56px);
  margin-bottom: 18px;
}
.hero h1 .accent { color: var(--coral); }
.hero__sub {
  font-size: clamp(16px, 2.6vw, 20px);
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.hero__sub b { color: var(--ink); font-weight: 700; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__note { margin-top: 14px; font-size: 14px; color: var(--ink-soft); }

.hero__art {
  background: var(--coral);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero__art img { width: 100%; }

/* ---------- Stats ---------- */
.stats {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  padding: 34px 20px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 10px;
}
.stat { text-align: center; position: relative; }
.stat__num {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 7vw, 44px);
  color: var(--coral);
  line-height: 1;
}
.stat__label { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; }

/* ---------- Intro / vantaggi ---------- */
.intro__grid { display: grid; gap: 34px; align-items: center; }
.benefits { margin-top: 22px; display: grid; gap: 14px; }
.benefit { display: flex; align-items: flex-start; gap: 13px; font-weight: 600; }
.benefit__ic {
  flex: none; width: 30px; height: 30px; border-radius: 9px;
  background: var(--coral-soft); color: var(--coral);
  display: grid; place-items: center; font-size: 15px;
}

/* ---------- Feature cards (vetrina) ---------- */
.cards { display: grid; gap: 18px; margin-top: 38px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 26px 22px; transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.card__ic {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--coral-soft); color: var(--coral);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card__ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { font-size: 15px; color: var(--ink-soft); }

/* ---------- Feature rows (alternating) ---------- */
.feature {
  display: grid; gap: 28px; align-items: center;
  padding: 30px 0;
}
.feature:first-child { padding-top: 0; }
.feature__media {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.feature__media--coral { background: var(--coral); }
.feature__tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--display); font-weight: 500; font-size: 12.5px;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 12px;
}
.feature h3 { font-size: clamp(23px, 4vw, 31px); margin-bottom: 12px; }
.feature h3 .accent { color: var(--coral); }
.feature p { color: var(--ink-soft); margin-bottom: 12px; }
.feature p:last-child { margin-bottom: 0; }
.feature__list { display: grid; gap: 10px; margin-top: 8px; }
.feature__list li { display: flex; gap: 10px; font-size: 15.5px; }
.feature__list li::before {
  content: "✓"; color: var(--coral); font-weight: 700; flex: none;
}

/* ---------- Premium services ---------- */
.premium { background: var(--cream); }
.premium__grid { display: grid; gap: 18px; margin-top: 36px; }
.pcard {
  background: #fff; border-radius: var(--radius-sm); border: 1px solid var(--line);
  padding: 28px 24px;
}
.pcard__badges { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.tier-pill {
  font-family: var(--display); font-size: 11.5px; font-weight: 500;
  padding: 5px 11px; border-radius: 999px; letter-spacing: .03em;
}
.tier-pill--teal { background: var(--teal); color: #fff; }
.tier-pill--ink  { background: var(--ink); color: #fff; }
.pcard h3 { font-size: 21px; margin-bottom: 10px; }
.pcard h3 .accent { color: var(--coral); }
.pcard p { font-size: 15px; color: var(--ink-soft); }

/* ---------- Plans / abbonamenti ---------- */
.plans { background: var(--gray-bg); }
.plans__grid { display: grid; gap: 20px; margin-top: 40px; }
.plan {
  position: relative; background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); padding: 30px 24px 26px;
  display: flex; flex-direction: column;
}
.plan--featured {
  background: var(--coral); color: #fff; border-color: var(--coral);
  box-shadow: var(--shadow);
}
.plan__ribbon {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; white-space: nowrap;
  font-family: var(--display); font-weight: 500; font-size: 11.5px;
  letter-spacing: .04em; padding: 6px 16px; border-radius: 999px;
}
.plan--platinum .plan__ribbon { background: var(--teal); }
.plan__name {
  font-family: var(--display); font-weight: 700; font-size: 25px;
  margin-bottom: 4px;
}
.plan--silver  .plan__name { color: var(--silver); }
.plan--gold    .plan__name { color: var(--gold); }
.plan--featured .plan__name { color: #fff; }
.plan--platinum .plan__name { color: var(--teal); }
.plan__tagline { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 18px; }
.plan--featured .plan__tagline { color: rgba(255,255,255,.85); }
.plan__features { display: grid; gap: 9px; margin-bottom: 22px; flex: 1; }
.plan__features li { display: flex; gap: 9px; font-size: 14.5px; line-height: 1.4; }
.plan__features li::before { content: "✓"; font-weight: 700; color: var(--coral); flex: none; }
.plan--featured .plan__features li::before { color: #fff; }
.plan .btn { margin-top: auto; }
.plans__note { margin-top: 26px; font-size: 14.5px; color: var(--ink-soft); }

/* ---------- Reviews ---------- */
.reviews__grid { display: grid; gap: 30px; align-items: start; }
.tp-box { text-align: center; }
.tp-box img.tp-logo { width: 200px; height: auto; margin: 16px auto 0; }
.tp-box .tp-score {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(40px, 9vw, 58px); color: var(--coral); line-height: 1;
}
.tp-box .tp-word { font-family: var(--display); font-weight: 500; font-size: 18px; margin-top: 6px; }
.review-list { display: grid; gap: 16px; }
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px;
}
.review__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review__avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  background: var(--coral); color: #fff; display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 15px;
}
.review__name { font-family: var(--display); font-weight: 700; font-size: 15px; }
.review__stars { color: var(--coral); font-size: 12px; letter-spacing: 1px; }
.review__title { font-weight: 700; color: var(--coral); margin-bottom: 4px; font-size: 15.5px; }
.review p { font-size: 15px; color: var(--ink-soft); }

/* ---------- Case studies ---------- */
.cases__grid { display: grid; gap: 22px; margin-top: 40px; }
.case {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.case__photo { overflow: hidden; background: var(--gray-bg); }
.case__photo img { width: 100%; height: auto; display: block; }
.case__body { padding: 22px 22px 24px; }
.case__quote { font-size: 15.5px; font-style: italic; margin-bottom: 16px; }
.case__quote::before { content: "“"; color: var(--coral); font-family: var(--display); font-weight: 700; }
.case__quote::after  { content: "”"; color: var(--coral); font-family: var(--display); font-weight: 700; }
.case__name { font-family: var(--display); font-weight: 700; font-size: 16px; }
.case__venue { font-size: 14px; color: var(--coral); font-weight: 700; }
.case__addr { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }

/* ---------- Final CTA ---------- */
.cta-final {
  background: var(--coral);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-final::after {
  content: ""; position: absolute; inset: 0;
  background-image: url('../img/pittogramma-white.png');
  background-repeat: repeat; background-size: 78px;
  opacity: .06; pointer-events: none;
}
.cta-final .container { position: relative; z-index: 1; text-align: center; }
.cta-final h2 { font-size: clamp(27px, 5.2vw, 44px); margin-bottom: 16px; }
.cta-final p { font-size: clamp(16px, 2.6vw, 20px); max-width: 600px; margin: 0 auto 28px; }
.cta-final__buttons { display: flex; flex-wrap: wrap; gap: 13px; justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; padding: 46px 0 34px; text-align: center; }
.footer__logo { height: 38px; margin: 0 auto 18px; }
.footer__contacts { font-size: 14.5px; color: #C9C5C6; line-height: 1.9; }
.footer__contacts a { color: #fff; font-weight: 700; }
.footer__bar {
  margin-top: 24px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12.5px; color: #908B8D;
}

/* ---------- Reveal animation ----------
   I contenuti sono sempre visibili di default: l'effetto si attiva
   solo quando il JS aggiunge la classe .has-js su <html>. */
.reveal { transition: opacity .6s ease, transform .6s ease; }
.has-js .reveal { opacity: 0; transform: translateY(22px); }
.has-js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .has-js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive · mobile (layout più compatto)
   ============================================================ */
@media (max-width: 639px) {
  /* spaziatura più ravvicinata */
  .feature { padding: 14px 0; }
  .cards { margin-top: 24px; gap: 12px; }
  .stats { padding: 26px 16px; gap: 24px 8px; }

  /* chip rating compatti, su una sola riga */
  .hero__ratings { gap: 6px; margin-bottom: 18px; }
  .rating-chip { padding: 5px 10px; font-size: 11.5px; gap: 5px; box-shadow: none; }
  .rating-chip .stars { display: none; }

  /* immagini meno ingombranti */
  .hero__art,
  .feature__media { max-width: 250px; margin-left: auto; margin-right: auto; }

  /* pulsanti hero a tutta larghezza, ordinati */
  .hero__cta { flex-direction: column; margin-top: 22px; }
  .hero__cta .btn { width: 100%; }

  /* card vetrina orizzontali e compatte: icona a sinistra, testo a destra */
  .card {
    display: grid; grid-template-columns: 42px 1fr;
    column-gap: 14px; align-items: start; padding: 16px 18px;
  }
  .card__ic { width: 42px; height: 42px; margin-bottom: 0; grid-row: 1 / span 2; }
  .card__ic svg { width: 21px; height: 21px; }
  .card h3 { font-size: 16px; margin-bottom: 4px; grid-column: 2; }
  .card p { font-size: 13.5px; grid-column: 2; }
}

/* ============================================================
   Responsive · tablet & desktop
   ============================================================ */
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .premium__grid { grid-template-columns: repeat(3, 1fr); }
  .reviews__grid { grid-template-columns: 1fr 1.4fr; }
  .cases__grid { grid-template-columns: repeat(3, 1fr); }
  /* immagine feature proporzionata al testo, riquadro adattato all'immagine */
  .feature__media { justify-self: center; }
  .feature__media img { max-height: 420px; width: auto; }
}

@media (min-width: 900px) {
  body { font-size: 18px; }
  .section { padding: 96px 0; }
  .header__nav { display: flex; }
  .hero { padding-top: 56px; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 50px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .intro__grid { grid-template-columns: 1fr 1fr; gap: 56px; }

  .feature { grid-template-columns: 1fr 1fr; gap: 56px; padding: 46px 0; }
  .feature--reverse .feature__media { order: 2; }

  .plans__grid { grid-template-columns: repeat(4, 1fr); }
  .plan--featured { transform: scale(1.04); }
}

@media (min-width: 1100px) {
  .hero h1 { font-size: 56px; }
}
