/* HOMEPAGE V3.2 — Annuncio responsive + Mockup composito Hero.
   Caricare DOPO modulab-home-v3.css per sovrascrivere le regole V3.1. */

/* Announcement: il prezzo resta dinamico; non ci sono link. */
.announcement .announcement__text {
  margin: 0;
  font: 500 12px/1.5 var(--font-body, 'DM Sans', sans-serif);
  color: #fff;
  text-align: center;
}
.announcement .announcement__text strong { font-weight: 800; color: inherit; }
.announcement .announcement__text sup { font-size: .72em; }
.announcement .show-mobile { display: none; }
.announcement .hide-mobile { display: inline; }

/* Nell'Header non mostrare la CTA blu; rimuovere anche il link dal DOM. */
.site-header .desktop-actions { align-items: center; }
.site-header .mobile-actions { margin-inline-start: auto; }

/* Impaginazione mobile-first: H1, visual e poi copy/conversione. */
.ml-hero {
  padding-block: 32px 72px;
  background: var(--bg-color, #FAF9F6);
}
.ml-hero__container {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: 'intro' 'visual' 'details';
  align-items: start;
  gap: 24px;
}
.ml-hero__intro { grid-area: intro; min-width: 0; }
.ml-hero__details { grid-area: details; min-width: 0; }
.ml-hero__visual {
  grid-area: visual;
  min-width: 0;
  width: 100%;
  margin: 0;
  align-self: center;
}
.ml-hero__details .ml-hero__description { margin-top: 0; }

/* Composizione dei due dispositivi, senza librerie e senza JS. */
.ml-hero__device-combo {
  position: relative;
  width: 100%;
  max-width: 720px;
  padding: 0 clamp(24px, 4vw, 52px) clamp(22px, 4.5vw, 54px) 0;
  margin-inline: auto;
}
.ml-hero__desktop {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid #DDE3EA;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgb(23 25 29 / 13%);
}
.ml-hero__browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding-inline: 14px;
  border-bottom: 1px solid #E5E9EF;
  background: #F8FAFC;
}
.ml-hero__browser-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #CBD5E1;
}
.ml-hero__browser-dot:first-child { background: #FCA5A5; }
.ml-hero__browser-dot:nth-child(2) { background: #FCD34D; }
.ml-hero__browser-dot:nth-child(3) { background: #86EFAC; }
.ml-hero__desktop-picture,
.ml-hero__phone-picture { display: block; overflow: hidden; }
.ml-hero__desktop-picture { aspect-ratio: 16 / 9; }
.ml-hero__desktop-picture img,
.ml-hero__phone-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.ml-hero__phone {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: clamp(104px, 29%, 190px);
  aspect-ratio: 9 / 18;
  overflow: hidden;
  padding: 6px;
  border: 5px solid #151B27;
  border-radius: clamp(22px, 3vw, 32px);
  background: #151B27;
  box-shadow: 0 20px 46px rgb(16 24 40 / 28%);
  transform: rotate(3deg);
  pointer-events: none;
}
.ml-hero__phone-picture {
  width: 100%;
  height: 100%;
  border-radius: clamp(12px, 2vw, 20px);
  background: #E0E7F1;
}
.ml-hero__phone-notch {
  position: absolute;
  z-index: 3;
  top: 9px;
  left: 50%;
  width: 30%;
  height: 9px;
  transform: translateX(-50%);
  border-radius: 0 0 10px 10px;
  background: #151B27;
}
.ml-hero__screenreader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Desktop: 45 / 55 e aria sopra l'H1 ridotta come nella V3.1. */
@media (min-width: 1024px) {
  .ml-hero { padding-block-start: clamp(24px, 3.2vw, 48px); }
  .ml-hero__container {
    grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
    grid-template-areas: 'intro visual' 'details visual';
    column-gap: clamp(40px, 4vw, 70px);
    row-gap: 0;
  }
  .ml-hero__details .ml-hero__description { margin-top: 24px; }
  .ml-hero__actions { flex-direction: row; flex-wrap: wrap; }
}

@media (max-width: 659px) {
  .announcement .hide-mobile { display: none; }
  .announcement .show-mobile { display: inline; }
  .announcement .announcement__text { font-size: 11px; line-height: 1.4; }
  .ml-hero { padding-block: 24px 56px; }
  .ml-hero__container { gap: 20px; }
  .ml-hero__device-combo { padding-right: 24px; padding-bottom: 24px; }
  .ml-hero__browser-bar { height: 25px; padding-inline: 10px; }
  .ml-hero__browser-dot { width: 6px; height: 6px; }
  .ml-hero__desktop { border-radius: 12px; }
  .ml-hero__phone {
    width: 29%;
    min-width: 90px;
    padding: 4px;
    border-width: 4px;
    border-radius: 20px;
  }
  .ml-hero__phone-notch { top: 6px; height: 7px; }
  .ml-hero__actions { margin-top: 24px; flex-direction: column; }
  .ml-hero__button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ml-hero__device-combo,
  .ml-hero__phone,
  .ml-hero__desktop { animation: none; transition: none; }
}
