/* ═══════════════════════════════════════════════
   RER MARINE — Landing "Prova in Mare" (Seacily)
   Caricato solo sul template page-prova-in-mare.php
   ═══════════════════════════════════════════════ */

.rpm { --rpm-sea: #0e3a5c; background: #fff; }
.rpm em { font-style: italic; color: var(--gold); }
.rpm-container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }

/* ─── HERO ─── */
.rpm .rpm-hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background-color: var(--navy); background-size: cover; background-position: center 40%;
  padding: 140px 24px 80px; overflow: hidden; text-align: center;
}
.rpm-hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(10,22,40,0.35) 0%, rgba(10,22,40,0.75) 75%),
    linear-gradient(180deg, rgba(10,22,40,0.55) 0%, rgba(10,22,40,0.25) 45%, rgba(10,22,40,0.85) 100%);
}
.rpm-hero-content { position: relative; z-index: 2; max-width: 920px; }

.rpm-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: #fff; padding: 9px 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
}
.rpm-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: rpmPulse 1.6s infinite; }
@keyframes rpmPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }

.rpm-event {
  margin-top: 22px; color: var(--white); font-size: 12px; font-weight: 500;
  letter-spacing: 4px; text-transform: uppercase; opacity: .9;
}
.rpm .rpm-hero-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 300; color: #fff;
  font-size: clamp(40px, 6.2vw, 84px); line-height: 1.05; margin: 18px 0 18px;
}
.rpm .rpm-hero-title em { color: var(--gold-light); font-weight: 400; }
.rpm-hero-claim {
  font-family: 'Cormorant Garamond', serif; font-size: clamp(22px, 2.6vw, 32px);
  color: var(--white); font-style: italic; margin: 0 0 34px;
}
.rpm-hero-claim strong { font-weight: 600; color: #fff; }

.rpm .rpm-hero-facts {
  list-style: none; margin: 0 auto 38px; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.rpm .rpm-hero-facts li {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  border: 1px solid rgba(255,255,255,0.28); background: rgba(10,22,40,0.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: #fff; padding: 11px 18px; font-size: 13px; font-weight: 500; letter-spacing: .5px;
}
.rpm-hero-facts svg { width: 16px; height: 16px; stroke: var(--gold-light); fill: none; stroke-width: 2; }

.rpm-hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.rpm-countdown { display: flex; gap: 10px; justify-content: center; margin-top: 44px; }
.rpm-countdown > div {
  min-width: 78px; padding: 12px 8px; border-top: 2px solid var(--gold);
  background: rgba(10,22,40,0.55); color: #fff;
}
.rpm-countdown span { display: block; font-family: 'Cormorant Garamond', serif; font-size: 34px; line-height: 1; }
.rpm-countdown small { display: block; margin-top: 6px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--text); }
.rpm-countdown.is-live > div { display: none; }
.rpm-countdown .rpm-live { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: #fff; padding: 10px 18px; background: var(--gold); }

/* ─── INFO ─── */
.rpm-info { background: #fff; padding: 0 0 100px; position: relative; z-index: 3; }
.rpm-info-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: -70px; background: #fff; box-shadow: 0 30px 80px rgba(10,22,40,0.14);
}
.rpm-info-card { padding: 38px 30px; border-right: 1px solid rgba(10,22,40,0.08); }
.rpm-info-card:last-child { border-right: 0; }
.rpm-info-icon {
  width: 48px; height: 48px; border-radius: 50%; background: rgba(204,27,43,0.08);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.rpm-info-icon svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.6; }
.rpm-info-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: #999; font-weight: 600; }
.rpm-info-value { font-family: 'Cormorant Garamond', serif; font-size: 26px; color: var(--navy); margin: 6px 0 8px; line-height: 1.15; }
.rpm-info-card p { font-size: 13px; color: #666; line-height: 1.6; margin: 0; }

/* ─── HEAD comuni ─── */
.rpm-head { text-align: center; max-width: 700px; margin: 0 auto 56px; }
.rpm .rpm-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 300; color: var(--navy);
  font-size: clamp(34px, 4vw, 52px); line-height: 1.15; margin: 10px 0 16px;
}
.rpm .rpm-title-light { color: #fff; }
.rpm-desc { font-size: 15px; color: #555; line-height: 1.8; margin: 0; }

/* ─── MODELLI ─── */
.rpm-models { background: #f6f5f1; padding: 110px 0; }
.rpm-models-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.rpm-model {
  background: #fff; display: flex; flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease; border-bottom: 3px solid transparent;
}
.rpm-model:hover, .rpm-model.is-selected { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(10,22,40,0.12); border-bottom-color: var(--gold); }
.rpm-model-img { aspect-ratio: 4/3; overflow: hidden; background: linear-gradient(135deg, var(--navy-light), var(--navy)); display: flex; align-items: center; justify-content: center; }
.rpm-model-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.rpm-model:hover .rpm-model-img img { transform: scale(1.06); }
.rpm-model-ph { font-family: 'Cormorant Garamond', serif; font-size: 72px; color: rgba(255,255,255,0.18); }
.rpm-model-body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.rpm-model-brand { font-size: 10px; letter-spacing: 3px; color: #999; font-weight: 600; }
.rpm-model-code { font-family: 'Cormorant Garamond', serif; font-size: 54px; line-height: 1; color: var(--navy); margin: 4px 0 12px; }
.rpm-model-engine { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--navy); font-weight: 600; }
.rpm-model-engine svg { width: 16px; height: 16px; fill: var(--gold); stroke: none; }
.rpm-model-specs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.rpm-model-specs span { font-size: 11px; color: #666; background: #f3f3f3; padding: 4px 10px; }
.rpm .rpm-model-pick {
  margin-top: auto; margin-top: 22px; width: 100%; cursor: pointer;
  background: var(--navy); color: #fff; border: 1px solid var(--navy); border-radius: 0;
  padding: 14px 12px; font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; transition: all .3s;
}
.rpm .rpm-model-pick:hover, .rpm-model.is-selected .rpm-model-pick { background: var(--gold); border-color: var(--gold); color: #fff; }
.rpm-model-link { margin-top: 12px; font-size: 12px; color: #888; text-decoration: none; text-align: center; }
.rpm-model-link:hover { color: var(--gold); }

/* ─── FASCE ─── */
.rpm-slots { background: var(--navy); padding: 80px 0; position: relative; overflow: hidden; }
.rpm-slots::before {
  content: ''; position: absolute; right: -160px; top: -160px; width: 420px; height: 420px;
  border: 1px solid rgba(204,27,43,0.18); border-radius: 50%;
}
.rpm-slots-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.rpm-slots .rpm-title { margin-bottom: 0; }
.rpm .rpm-slots-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; }
.rpm .rpm-slots-list li {
  margin: 0; border: 1px solid rgba(255,255,255,0.25); color: #fff;
  font-family: 'Cormorant Garamond', serif; font-size: 28px; padding: 16px 26px;
}

/* ─── BOOKING ─── */
.rpm-booking { background: #fff; padding: 120px 0; scroll-margin-top: 70px; }
.rpm-booking-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 70px; align-items: start; }
.rpm-booking-info { position: sticky; top: 110px; }
.rpm-booking-info > p { font-size: 15px; color: #444; line-height: 1.8; }
.rpm .rpm-steps { list-style: none; counter-reset: rpm; margin: 32px 0; padding: 0; }
.rpm .rpm-steps li {
  counter-increment: rpm; position: relative; padding: 0 0 22px 62px; margin: 0;
}
.rpm-steps li::before {
  content: counter(rpm); position: absolute; left: 0; top: 0;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--gold);
  color: var(--gold); font-family: 'Cormorant Garamond', serif; font-size: 22px;
  display: flex; align-items: center; justify-content: center;
}
.rpm-steps strong { display: block; color: var(--navy); font-size: 15px; }
.rpm-steps span { display: block; color: #777; font-size: 13px; margin-top: 2px; }
.rpm-contact-box { background: #f6f5f1; padding: 24px; font-size: 13px; color: #666; line-height: 1.9; }
.rpm-contact-box strong { color: var(--navy); }
.rpm-contact-box a { color: var(--gold); font-weight: 600; text-decoration: none; }
.rpm-contact-box a.rpm-wa { color: #1da851; }

.rpm-form-wrap { background: #f7f7f7; padding: 48px; border-top: 3px solid var(--gold); }
.rpm-form .form-title { margin-bottom: 26px; }
.rpm-form .rer-form-message { padding: 14px 16px; margin-bottom: 20px; font-size: 14px; }
.rpm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.rpm .rpm-textarea { height: 100px; }
.rpm-form .form-input.is-invalid, .rpm-form .form-select.is-invalid { border-color: var(--gold) !important; background-color: #fff6f6 !important; }

.rpm-check { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; cursor: pointer; font-size: 12.5px; color: #555; line-height: 1.6; }
.rpm-check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--gold); flex-shrink: 0; }
.rpm-check a { color: var(--gold); }
.rpm-check.is-invalid span { color: var(--gold); }
.rpm-form .form-submit { margin-top: 12px; padding: 18px 30px; font-size: 13px; }
.rpm-form .form-submit[disabled] { opacity: .65; cursor: wait; }
.rpm-form-note { text-align: center; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #999; margin: 14px 0 0; }

.rpm-success { text-align: center; padding: 20px 0; }
.rpm-success[hidden] { display: none; }
.rpm-success-icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; }
.rpm-success-icon svg { width: 34px; height: 34px; stroke: #fff; fill: none; stroke-width: 2.5; }
.rpm-success h3 { font-family: 'Cormorant Garamond', serif; font-size: 40px; font-weight: 300; color: var(--navy); margin: 0 0 10px; }
.rpm-success p { font-size: 14px; color: #555; line-height: 1.7; }
.rpm .rpm-summary { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; text-align: left; background: #fff; padding: 22px 26px; margin: 24px 0 28px; }
.rpm-summary dt { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: #999; font-weight: 600; padding-top: 2px; }
.rpm-summary dd { margin: 0; color: var(--navy); font-weight: 600; font-size: 14px; }

/* ─── FAQ ─── */
.rpm-faq { background: #f6f5f1; padding: 110px 0; }
.rpm-faq-inner { max-width: 860px; }
.rpm-faq details { background: #fff; margin-bottom: 12px; border-left: 3px solid transparent; transition: border-color .3s; }
.rpm-faq details[open] { border-left-color: var(--gold); }
.rpm-faq summary {
  cursor: pointer; list-style: none; padding: 22px 56px 22px 26px; position: relative;
  font-size: 15px; font-weight: 600; color: var(--navy);
}
.rpm-faq summary::-webkit-details-marker { display: none; }
.rpm-faq summary::after { content: '+'; position: absolute; right: 26px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--gold); font-weight: 300; }
.rpm-faq details[open] summary::after { content: '–'; }
.rpm-faq details p { padding: 0 26px 22px; margin: 0; font-size: 14px; color: #555; line-height: 1.8; }

/* ─── CTA finale ─── */
.rpm-cta .section-title em { color: var(--gold-light); }

/* ─── Sticky mobile ─── */
.rpm-sticky { display: none; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .rpm-models-grid { grid-template-columns: repeat(2, 1fr); }
  .rpm-info-grid { grid-template-columns: repeat(2, 1fr); }
  .rpm-info-card:nth-child(2) { border-right: 0; }
  .rpm-info-card:nth-child(-n+2) { border-bottom: 1px solid rgba(10,22,40,0.08); }
  .rpm-booking-grid { grid-template-columns: 1fr; gap: 50px; }
  .rpm-booking-info { position: static; }
}
@media (max-width: 768px) {
  .rpm-container { padding: 0 20px; }
  .rpm .rpm-hero { min-height: 92vh; padding: 120px 18px 60px; }
  .rpm-badge { font-size: 10px; letter-spacing: 1.5px; padding: 8px 14px; }
  .rpm-event { letter-spacing: 2px; font-size: 11px; }
  .rpm .rpm-hero-facts li { font-size: 12px; padding: 9px 13px; }
  .rpm-hero-cta { flex-direction: column; align-items: stretch; }
  .rpm-hero-cta a { text-align: center; }
  .rpm-countdown > div { min-width: 64px; }
  .rpm-countdown span { font-size: 26px; }
  .rpm-info { padding-bottom: 70px; }
  .rpm-info-grid { grid-template-columns: 1fr; margin-top: -40px; }
  .rpm-info-card { border-right: 0 !important; border-bottom: 1px solid rgba(10,22,40,0.08); padding: 28px 24px; }
  .rpm-models, .rpm-booking, .rpm-faq { padding: 80px 0; }
  .rpm-models-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .rpm-model-body { padding: 18px 14px 20px; }
  .rpm-model-code { font-size: 42px; }
  .rpm-model-engine { font-size: 12px; }
  .rpm .rpm-model-pick { font-size: 10px; letter-spacing: 1px; padding: 12px 6px; }
  .rpm .rpm-slots-list li { font-size: 22px; padding: 12px 18px; }
  .rpm-form-wrap { padding: 30px 20px; }
  .rpm .rpm-summary { grid-template-columns: 1fr; gap: 2px; }
  .rpm-summary dd { margin-bottom: 10px; }
  .rpm-sticky {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
    background: var(--gold); color: #fff !important; text-align: center; text-decoration: none;
    padding: 17px 20px calc(17px + env(safe-area-inset-bottom)); font-size: 12px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; box-shadow: 0 -6px 24px rgba(0,0,0,0.18);
    transform: translateY(110%); transition: transform .35s ease;
  }
  .rpm-sticky.is-visible { transform: translateY(0); }
  body.page-template-page-prova-in-mare .wa-sticky { bottom: 76px !important; }
}
@media (max-width: 420px) {
  .rpm-models-grid { grid-template-columns: 1fr; }
}
