/* iPstream landing + utility styles (Nicepage brand) */
:root {
  --ip-pink: #f00d8f;
  --ip-black: #111;
  --ip-grey: #f2f2f2;
}

.ip-flash {
  max-width: 720px;
  margin: 1rem auto;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  font-family: Montserrat, "Open Sans", sans-serif;
  font-size: 0.95rem;
}
.ip-flash.success { background: #e8f8ef; color: #0b5b2c; border: 1px solid #b6e2c5; }
.ip-flash.error { background: #fdecee; color: #8a1f2b; border: 1px solid #f0b7be; }

.ip-landing .ip-hero {
  position: relative;
  min-height: 320px;
  background: #000 center/cover no-repeat;
  display: flex;
  align-items: flex-end;
}
.ip-landing .ip-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.65), rgba(0,0,0,.2));
}
.ip-landing .ip-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  color: #fff;
}
.ip-landing .ip-hero h1 {
  font-family: Montserrat, sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0;
  line-height: 1.25;
}
.ip-landing .ip-hero h1 span { color: var(--ip-pink); }
.ip-landing .ip-band {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 1.25rem;
  border-top: 10px solid #fff;
  font-family: Montserrat, sans-serif;
}
.ip-landing .ip-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  font-family: "Open Sans", sans-serif;
  line-height: 1.65;
  color: #222;
}
.ip-landing .ip-wrap h2 {
  font-family: Montserrat, sans-serif;
  font-size: 1.45rem;
  margin: 0 0 1rem;
}
.ip-landing .ip-wrap h2 span { color: var(--ip-pink); }
.ip-landing .ip-intro {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.ip-landing .ip-card {
  background: var(--ip-grey);
  border-radius: 20px;
  padding: 1.5rem 1.4rem;
  margin: 1.5rem 0;
}
.ip-landing .ip-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}
.ip-landing .ip-card li { margin: 0.4rem 0; }
.ip-landing .ip-price {
  font-family: Montserrat, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 1.25rem 0;
}
.ip-landing .ip-price span { color: var(--ip-pink); }
.ip-landing .ip-cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.85rem 1.4rem;
  background: var(--ip-pink);
  color: #fff !important;
  text-decoration: none;
  border-radius: 999px;
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.ip-landing .ip-cta:hover { filter: brightness(1.05); }
.ip-landing .ip-faq details {
  border-bottom: 1px solid #ddd;
  padding: 0.85rem 0;
}
.ip-landing .ip-faq summary {
  cursor: pointer;
  font-weight: 600;
  font-family: Montserrat, sans-serif;
}
.ip-legal {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
  font-family: "Open Sans", sans-serif;
  line-height: 1.7;
}
.ip-legal h1 {
  font-family: Montserrat, sans-serif;
  font-size: 1.8rem;
  margin-bottom: 1.25rem;
}
.ip-htmlpage { overflow-x: hidden; }

/* Ensure migrated Nicepage sections readable without WP */
.u-body { margin: 0; }

/* Header: menu a sinistra, logo a destra stessa riga (come Nicepage/WP) */
.u-header .u-sheet-1 {
  min-height: 76px;
  position: relative;
}
.u-header .u-menu-1 {
  margin: 40px auto 0 0 !important;
}
.u-header .u-image-1,
.u-header a.u-logo {
  display: block !important;
  width: 178px !important;
  height: 37px !important;
  max-width: 178px !important;
  margin: -45px 0 8px auto !important; /* right + same row as menu */
  float: none !important;
}
.u-header .u-logo-image-1,
.u-header .u-logo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}
@media (max-width: 1199px) {
  .u-header .u-sheet-1 { min-height: 75px; }
  .u-header .u-menu-1 { width: auto; margin-top: 39px !important; }
  .u-header .u-image-1,
  .u-header a.u-logo {
    margin-top: -44px !important;
    margin-bottom: 7px !important;
  }
}
@media (max-width: 991px) {
  .u-header .u-sheet-1 { min-height: 69px; }
  .u-header .u-menu-1 { margin-top: 37px !important; }
  .u-header .u-image-1,
  .u-header a.u-logo {
    margin-top: -37px !important;
    margin-bottom: 1px !important;
  }
}
@media (max-width: 767px) {
  .u-header .u-sheet-1 { min-height: 72px; }
  .u-header .u-menu-1 { margin-top: 24px !important; }
  .u-header .u-image-1,
  .u-header a.u-logo {
    margin-top: -42px !important;
    margin-bottom: 6px !important;
  }
}
@media (max-width: 575px) {
  .u-header .u-sheet-1 { min-height: 75px; }
  .u-header .u-menu-1 { margin-top: 27px !important; margin-right: 128px !important; }
  .u-header .u-image-1,
  .u-header a.u-logo {
    width: 135px !important;
    height: 29px !important;
    margin-top: -38px !important;
    margin-bottom: 10px !important;
  }
}

/* Nascondi icona Facebook footer (pagina non aggiornata) */
.u-footer .u-icon-1,
.u-footer span.u-file-icon[data-href*="facebook"] {
  display: none !important;
}


/* Form: nascondi messaggi Nicepage finché non servono */
.u-form-send-message { display: none; }
.u-form-send-success[style*="block"],
.u-form-send-error[style*="block"] { display: block !important; }


/* Hero Nicepage: immagine a tutta larghezza */
.u-section-2 .u-image-1,
.u-section-2 img.u-expanded-width-xl,
.u-section-2 img.u-expanded-width-lg,
.u-section-2 img.u-expanded-width-md,
.u-section-2 img.u-expanded-width-sm {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  display: block;
  object-fit: cover;
}
.u-body.u-xl-mode .u-expanded-width-xl {
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
