/**
 * REI — Pagina Consulente Dedicato
 * Stessa palette/criterio di Pagamenti e Moduli.
 *
 * @since 1.4.0
 */

body.rei-static-page--consulente,
body.rei-static-page--consulente-dedicato { background: var(--rei-cream, #F5F5F5); }

.rei-consulente {
    /* v2.2: transparent — lascia trasparire la filigrana a tema del main */
    background: transparent;
    color: var(--rei-ink, #157155);
    position: relative;
    overflow-x: hidden;
}
.rei-consulente * { box-sizing: border-box; }

.rei-consulente__container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ==========================================================================
   DECORAZIONI DI SFONDO (glow + lampadine/fiamme pulsanti)
   ========================================================================== */
.rei-consulente__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.rei-consulente__glow {
    position: absolute;
    width: 540px;
    height: 540px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}
.rei-consulente__glow--tl { top: -180px; left: -180px; background: radial-gradient(circle, rgba(0,159,59,0.55) 0%, rgba(0,159,59,0) 70%); }
.rei-consulente__glow--tr { top: -200px; right: -200px; background: radial-gradient(circle, rgba(209,224,0,0.45) 0%, rgba(209,224,0,0) 70%); }
.rei-consulente__glow--bl { bottom: -180px; left: -200px; background: radial-gradient(circle, rgba(209,224,0,0.45) 0%, rgba(209,224,0,0) 70%); }
.rei-consulente__glow--br { bottom: -180px; right: -180px; background: radial-gradient(circle, rgba(0,159,59,0.55) 0%, rgba(0,159,59,0) 70%); }

.rei-consulente__particle {
    position: absolute;
    color: var(--rei-green, #009F3B);
    opacity: 0.20;
    pointer-events: none;
    will-change: transform, opacity;
    filter: drop-shadow(0 0 22px rgba(0,159,59, 0.5));
    animation: rei-cons-pulse 4s ease-in-out infinite;
}
.rei-consulente__particle svg { width: 100%; height: 100%; display: block; }

.rei-consulente__particle--1 { top: 6%;  left: 2%;  width: 160px; height: 160px; animation-delay: 0s; }
.rei-consulente__particle--2 { top: 22%; right: 3%; width: 200px; height: 200px; color: var(--rei-yellow, #D1E000); filter: drop-shadow(0 0 26px rgba(209,224,0,0.45)); animation-delay: 0.5s; }
.rei-consulente__particle--3 { top: 42%; left: 4%;  width: 140px; height: 140px; animation-delay: 1s; }
.rei-consulente__particle--4 { top: 58%; right: 5%; width: 185px; height: 185px; animation-delay: 1.5s; }
.rei-consulente__particle--5 { top: 76%; left: 6%;  width: 150px; height: 150px; animation-delay: 2s; }
.rei-consulente__particle--6 { top: 12%; left: 44%; width: 130px; height: 130px; color: var(--rei-yellow, #D1E000); filter: drop-shadow(0 0 26px rgba(209,224,0,0.45)); animation-delay: 2.5s; }
.rei-consulente__particle--7 { top: 86%; right: 16%; width: 175px; height: 175px; animation-delay: 3s; }
.rei-consulente__particle--8 { top: 34%; left: 24%; width: 125px; height: 125px; animation-delay: 3.5s; }
.rei-consulente__particle--9 { top: 4%;  right: 22%; width: 145px; height: 145px; animation-delay: 0.8s; }
.rei-consulente__particle--10 { top: 50%; right: 26%; width: 160px; height: 160px; color: var(--rei-yellow, #D1E000); filter: drop-shadow(0 0 26px rgba(209,224,0,0.45)); animation-delay: 1.8s; }
.rei-consulente__particle--11 { top: 68%; left: 38%; width: 135px; height: 135px; animation-delay: 2.7s; }
.rei-consulente__particle--12 { top: 18%; left: 14%; width: 115px; height: 115px; animation-delay: 3.3s; }

@keyframes rei-cons-pulse {
    0%   { transform: scale(0.5) rotate(-6deg); opacity: 0.06; }
    50%  { transform: scale(1.1) rotate(5deg);  opacity: 0.24; }
    100% { transform: scale(0.5) rotate(-6deg); opacity: 0.06; }
}

.rei-consulente > section { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
    .rei-consulente__particle { animation: none; opacity: 0.13; }
}

/* ==========================================================================
   SEZIONE 1 — HERO
   ========================================================================== */
.rei-consulente__hero { padding: 80px 0 48px; background: transparent; }

.rei-consulente__eyebrow {
    display: inline-block;
    background: #CFF0DC;
    color: var(--rei-green-deep, #157155);
    padding: 8px 22px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 28px;
    border: 1px solid rgba(0,159,59,0.25);
    line-height: 1.2;
}
.rei-consulente__title {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 24px;
    color: var(--rei-ink, #157155);
}
.rei-consulente__title-green { color: var(--rei-green, #009F3B); }
.rei-consulente__intro {
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 820px;
    margin: 0;
}

/* ==========================================================================
   SEZIONE 2 — BLOCCHI DI TESTO
   ========================================================================== */
.rei-consulente__blocks { padding: 32px 0 72px; background: transparent; }

.rei-consulente__block { margin-bottom: 40px; max-width: 880px; }
.rei-consulente__block-title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    color: var(--rei-green, #009F3B);
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}
.rei-consulente__block-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--rei-ink, #157155);
    margin: 0;
}
.rei-consulente__closing {
    font-size: 1.1rem;
    font-style: italic;
    font-weight: 600;
    color: var(--rei-green-deep, #157155);
    margin: 8px 0 0;
}

/* ==========================================================================
   SEZIONE 3 — FORM (verde scuro)
   ========================================================================== */
.rei-consulente__form-section {
    background: linear-gradient(135deg, #157155 0%, #157155 100%);
    color: #fff;
    padding: 72px 0;
}
.rei-consulente__form-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
}
.rei-consulente__form-intro {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.92);
    margin: 0 0 32px;
    max-width: 700px;
}

.rei-consulente__form-feedback {
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-weight: 600;
    font-size: 1rem;
}
.rei-consulente__form-feedback.is-ok { background: rgba(255,255,255,0.95); color: #157155; }
.rei-consulente__form-feedback.is-error { background: #fff0f0; color: #D63638; }

.rei-consulente__hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.rei-consulente__form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 32px;
    margin-bottom: 24px;
}
.rei-consulente__field { display: flex; flex-direction: column; }
.rei-consulente__field label {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}
.rei-consulente__field .req { color: #ffd9d9; }

.rei-consulente__field input,
.rei-consulente__field select {
    padding: 12px 14px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    background: #fff;
    color: var(--rei-ink, #157155);
    width: 100%;
}
.rei-consulente__field input:focus,
.rei-consulente__field select:focus {
    outline: 3px solid rgba(255,255,255,0.5);
}

.rei-consulente__privacy {
    margin-bottom: 28px;
    font-size: 0.98rem;
    line-height: 1.6;
}
.rei-consulente__privacy-label { color: rgba(255,255,255,0.95); }
.rei-consulente__privacy-label a { color: #fff; text-decoration: underline; font-weight: 600; }
.rei-consulente__privacy .req { color: #ffd9d9; }
.rei-consulente__privacy-opts {
    display: inline-flex;
    gap: 20px;
    margin-left: 12px;
}
.rei-consulente__privacy-opts label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.rei-consulente__submit-wrap { text-align: center; }
.rei-consulente__submit {
    background: #fff;
    color: var(--rei-green-deep, #157155);
    border: none;
    padding: 16px 64px;
    border-radius: 999px;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 12px 28px -8px rgba(0,0,0,0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.rei-consulente__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px -8px rgba(0,0,0,0.45);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 768px) {
    .rei-consulente__container { padding: 0 20px; }
    .rei-consulente__hero { padding: 56px 0 36px; }
    .rei-consulente__blocks { padding: 24px 0 48px; }
    .rei-consulente__form-section { padding: 56px 0; }
    .rei-consulente__block { margin-bottom: 32px; }
    .rei-consulente__form-grid { grid-template-columns: 1fr; }
    .rei-consulente__privacy-opts { display: flex; margin-left: 0; margin-top: 10px; }
    .rei-consulente__submit { width: 100%; padding: 16px; }
}
