/**
 * REI — Pagina Segnalazioni Sospette (Tutela utenti)
 * Nona REI Static Page. Hero crema + form sezione grigio chiaro con 4 campi
 * affiancati + dropdown a tutta larghezza + radio privacy + bottone verde pillola.
 *
 * @since 1.11.0
 */

body.rei-static-page--segnalazioni-sospette { background: var(--rei-cream, #F4F8F6); }

.rei-seg { position: relative; min-height: 60vh; overflow: hidden; padding-bottom: 80px; }
.rei-seg__container { max-width: 1200px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 2; }

/* ===== SFONDO DECORATIVO ===== */
.rei-seg__bg { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.rei-seg__glow { position: absolute; width: 600px; height: 600px; border-radius: 50%; filter: blur(120px); opacity: 0.22; }
.rei-seg__glow--tl { top: -200px; left: -180px; background: radial-gradient(circle, #20A47B 0%, transparent 70%); }
.rei-seg__glow--tr { top: -150px; right: -200px; background: radial-gradient(circle, #D1E000 0%, transparent 70%); opacity: 0.16; }
.rei-seg__glow--bl { bottom: -240px; left: -160px; background: radial-gradient(circle, #D1E000 0%, transparent 70%); opacity: 0.16; }
.rei-seg__glow--br { bottom: -200px; right: -180px; background: radial-gradient(circle, #20A47B 0%, transparent 70%); }

.rei-seg__particle { position: absolute; opacity: 0.13; animation: rei-seg-float 4s ease-in-out infinite; }
.rei-seg__particle svg { width: 100%; height: 100%; display: block; }
@keyframes rei-seg-float {
    0%   { transform: scale(0.5) rotate(-6deg); opacity: 0.05; }
    50%  { transform: scale(1.1) rotate(5deg);  opacity: 0.22; }
    100% { transform: scale(0.5) rotate(-6deg); opacity: 0.05; }
}
@media (prefers-reduced-motion: reduce) { .rei-seg__particle { animation: none; opacity: 0.11; } }

/* 14 particelle, posizioni standard delle altre pagine */
.rei-seg__particle--1  { top:  3%; left:  1%; width: 200px; height: 200px; color: #20A47B; filter: drop-shadow(0 0 24px rgba(32,164,123,0.5)); }
.rei-seg__particle--2  { top: 11%; right: 2%; width: 225px; height: 225px; color: #D1E000; filter: drop-shadow(0 0 24px rgba(209,224,0,0.5)); }
.rei-seg__particle--3  { top: 23%; left:  6%; width: 170px; height: 170px; color: #20A47B; filter: drop-shadow(0 0 24px rgba(32,164,123,0.5)); animation-delay: 0.8s; }
.rei-seg__particle--4  { top: 30%; right: 7%; width: 150px; height: 150px; color: #20A47B; filter: drop-shadow(0 0 24px rgba(32,164,123,0.5)); animation-delay: 1.2s; }
.rei-seg__particle--5  { top: 40%; left:  2%; width: 190px; height: 190px; color: #20A47B; filter: drop-shadow(0 0 24px rgba(32,164,123,0.5)); animation-delay: 2s; }
.rei-seg__particle--6  { top:  7%; left: 43%; width: 160px; height: 160px; color: #D1E000; filter: drop-shadow(0 0 24px rgba(209,224,0,0.5)); animation-delay: 0.5s; }
.rei-seg__particle--7  { top: 51%; right: 3%; width: 215px; height: 215px; color: #20A47B; filter: drop-shadow(0 0 24px rgba(32,164,123,0.5)); animation-delay: 1.5s; }
.rei-seg__particle--8  { top: 35%; left: 29%; width: 150px; height: 150px; color: #20A47B; filter: drop-shadow(0 0 24px rgba(32,164,123,0.5)); animation-delay: 3s; }
.rei-seg__particle--9  { top: 61%; left:  8%; width: 180px; height: 180px; color: #20A47B; filter: drop-shadow(0 0 24px rgba(32,164,123,0.5)); animation-delay: 2.2s; }
.rei-seg__particle--10 { top: 69%; right: 20%; width: 165px; height: 165px; color: #20A47B; filter: drop-shadow(0 0 24px rgba(32,164,123,0.5)); animation-delay: 0.9s; }
.rei-seg__particle--11 { top: 47%; left: 47%; width: 170px; height: 170px; color: #D1E000; filter: drop-shadow(0 0 24px rgba(209,224,0,0.5)); animation-delay: 1.8s; }
.rei-seg__particle--12 { top: 79%; left: 31%; width: 200px; height: 200px; color: #20A47B; filter: drop-shadow(0 0 24px rgba(32,164,123,0.5)); animation-delay: 2.6s; }
.rei-seg__particle--13 { top: 87%; right: 5%; width: 185px; height: 185px; color: #20A47B; filter: drop-shadow(0 0 24px rgba(32,164,123,0.5)); animation-delay: 1.1s; }
.rei-seg__particle--14 { top: 92%; left:  4%; width: 155px; height: 155px; color: #20A47B; filter: drop-shadow(0 0 24px rgba(32,164,123,0.5)); animation-delay: 3.4s; }

/* ===== EYEBROW + TITOLO ===== */
.rei-seg__eyebrow {
    display: inline-block;
    background: #E4F6F0; color: #20A47B;
    border: 1px solid #D2F0E6;
    padding: 6px 16px; border-radius: 999px;
    font-size: 13px; font-weight: 600;
    margin: 0 0 24px;
}
/* ===== UNDERLINES =====
   v1.11.1: rimossa la definizione locale di .rei-underline / --yellow / --green.
   Vince la regola globale animata di style.css con IntersectionObserver
   (background-image gradient che si "dipinge" da sinistra a destra quando
   l'elemento entra in viewport). */
/* ===== HERO ===== */
.rei-seg__hero { padding: 72px 0 56px; }
.rei-seg__title {
    font-size: 56px; line-height: 1.05; font-weight: 800;
    margin: 0 0 36px; color: #157155; letter-spacing: -0.02em;
}
.rei-seg__title-green { color: #20A47B; }
.rei-seg__intro {
    max-width: 960px;
    font-size: 16px; line-height: 1.75; color: #3C3C3B;
}
.rei-seg__intro p { margin: 0 0 18px; }
.rei-seg__intro p:last-child { margin-bottom: 0; }
.rei-seg__intro strong { font-weight: 700; color: #157155; }

.rei-seg__claim {
    max-width: 960px;
    margin: 28px 0 0;
    color: #555;
    font-size: 14px; line-height: 1.6;
}
.rei-seg__claim em { font-style: italic; }

/* ===== FORM SECTION ===== */
.rei-seg__form-section {
    background: #f0f0f0;
    padding: 64px 0;
    margin-top: 48px;
    position: relative; z-index: 2;
}
.rei-seg__form-title {
    color: #20A47B;
    font-size: 30px; font-weight: 800;
    margin: 0 0 28px;
    letter-spacing: -0.01em;
}
.rei-seg__form-intro {
    color: #3C3C3B; font-size: 15px; line-height: 1.7;
    margin: 0 0 20px;
}

.rei-seg__feedback {
    padding: 14px 18px; border-radius: 10px; margin: 0 0 22px;
    font-size: 14.5px; font-weight: 600;
}
.rei-seg__feedback.is-ok { background: #E4F6F0; color: #20A47B; border: 1px solid #D2F0E6; }
.rei-seg__feedback.is-error { background: #fff5f5; color: #D63638; border: 1px solid #f5c2c2; }

.rei-seg__form { max-width: 100%; }
.rei-seg__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.rei-seg__form-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px;
    margin: 0 0 24px;
}
.rei-seg__field { display: flex; flex-direction: column; }
.rei-seg__field--full { grid-column: 1 / -1; }
.rei-seg__field label {
    font-size: 13.5px; font-weight: 600; color: #333;
    margin: 0 0 8px;
}
.rei-seg__field .req { color: #157155; }

.rei-seg__field input[type="text"],
.rei-seg__field input[type="tel"],
.rei-seg__field input[type="email"],
.rei-seg__field select {
    border: 0; border-bottom: 2px solid #c7c7c7;
    background: transparent;
    padding: 10px 0;
    font-size: 15.5px; color: #157155;
    font-family: inherit;
    outline: 0;
    transition: border-color 0.2s ease;
    width: 100%;
}
.rei-seg__field input:focus,
.rei-seg__field select:focus {
    border-bottom-color: #20A47B;
}
/* select: aspetto coerente, freccia custom */
.rei-seg__field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2316a300' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    padding-right: 28px;
    cursor: pointer;
}

/* Privacy */
.rei-seg__privacy {
    margin: 0 0 28px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px;
    font-size: 14px; color: #3C3C3B;
}
.rei-seg__privacy a { color: #20A47B; text-decoration: underline; }
.rei-seg__privacy .req { color: #157155; }
.rei-seg__privacy-opts {
    display: flex; gap: 18px; align-items: center;
}
.rei-seg__privacy-opts label {
    display: inline-flex; align-items: center; gap: 6px;
    cursor: pointer; font-weight: 500;
}
.rei-seg__privacy-opts input[type="radio"] {
    accent-color: #20A47B;
}

/* Submit bottone verde pillola */
.rei-seg__submit-wrap { text-align: center; }
.rei-seg__submit {
    background: linear-gradient(135deg, #20A47B 0%, #20A47B 100%);
    color: #fff;
    border: 0;
    padding: 14px 56px;
    border-radius: 999px;
    font-size: 15px; font-weight: 700; letter-spacing: 0.04em;
    cursor: pointer;
    box-shadow: 0 24px 60px -4px rgba(32,164,123,0.70), 0 8px 20px rgba(0,0,0,0.18);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    font-family: inherit;
}
.rei-seg__submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 32px 70px -4px rgba(32,164,123,0.80), 0 10px 24px rgba(0,0,0,0.22);
}
.rei-seg__submit:focus-visible { outline: 3px solid #D1E000; outline-offset: 3px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .rei-seg__container { padding: 0 20px; }
    .rei-seg__hero { padding: 48px 0 32px; }
    .rei-seg__title { font-size: 34px; }
    .rei-seg__intro { font-size: 15px; }
    .rei-seg__form-section { padding: 48px 0; margin-top: 32px; }
    .rei-seg__form-title { font-size: 22px; margin-bottom: 22px; }
    .rei-seg__form-grid { grid-template-columns: 1fr; gap: 18px; }
    .rei-seg__privacy { flex-direction: column; align-items: flex-start; gap: 10px; }
    .rei-seg__privacy-opts { margin-left: 0; }
    .rei-seg__submit { width: 100%; padding: 16px; }
}

/* v1.29.2: stacco card finale dalla bandiera tricolore — override mobile */
@media (max-width: 720px) {
    .rei-seg { padding-bottom: 40px !important; }
}
