/* =========================================
   Richiesta Patrocinio — Form & Frontend
   ========================================= */

.rp-wrap {
	max-width: 760px;
	margin: 0 auto;
}

/* Honeypot */
.rp-hp {
	display: none !important;
	visibility: hidden;
}

/* Notices */
.rp-notice {
	padding: 16px 20px;
	border-radius: 4px;
	margin-bottom: 24px;
	line-height: 1.6;
}

.rp-notice--success {
	background: #eafaf1;
	border-left: 4px solid #27ae60;
	color: #1e8449;
}

.rp-notice--success h3 {
	margin: 0 0 8px;
	font-size: 18px;
}

.rp-notice--error {
	background: #fdf2f2;
	border-left: 4px solid #c0392b;
	color: #922b21;
}

/* Fieldset */
.rp-fieldset {
	border: 1px solid #dce0e4;
	border-radius: 6px;
	padding: 20px 24px;
	margin-bottom: 24px;
}

.rp-legend {
	font-size: 16px;
	font-weight: 700;
	padding: 0 8px;
	color: #1a5276;
}

/* Field */
.rp-field {
	margin-bottom: 18px;
}

.rp-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 5px;
	font-size: 14px;
}

.rp-required label::after {
	content: " *";
	color: #c0392b;
}

.rp-field input[type="text"],
.rp-field input[type="email"],
.rp-field input[type="tel"],
.rp-field input[type="url"],
.rp-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 9px 12px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 15px;
	transition: border-color 0.2s;
}

.rp-field input:focus,
.rp-field textarea:focus {
	outline: none;
	border-color: #1a5276;
	box-shadow: 0 0 0 3px rgba(26, 82, 118, 0.1);
}

.rp-field textarea {
	resize: vertical;
	min-height: 120px;
}

.rp-field-hint {
	display: block;
	font-size: 12px;
	color: #888;
	margin-bottom: 5px;
}

.rp-file-error {
	display: block;
	font-size: 12px;
	color: #c0392b;
	margin-top: 4px;
}

/* Two-column row for dates */
.rp-field-row {
	display: flex;
	gap: 16px;
}

.rp-field-row .rp-field {
	flex: 1;
}

/* Checkbox fields */
.rp-field--check label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: normal;
	cursor: pointer;
}

.rp-field--check input[type="checkbox"] {
	margin-top: 3px;
	flex-shrink: 0;
}

/* Submit */
.rp-submit {
	margin-top: 8px;
}

.rp-btn {
	display: inline-block;
	padding: 12px 28px;
	background: #1a5276;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s;
}

.rp-btn:hover {
	background: #154360;
	color: #fff;
}

.rp-btn--outline {
	background: transparent;
	border: 2px solid #1a5276;
	color: #1a5276;
}

.rp-btn--outline:hover {
	background: #1a5276;
	color: #fff;
}

/* =========================================
   Frontend: dettagli evento nell'articolo
   ========================================= */

.rp-event-details {
	margin-top: 32px;
	padding-top: 24px;
	border-top: 2px solid #eee;
}

.rp-event-section {
	margin-bottom: 20px;
}

.rp-event-section__title {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #888;
	margin: 0 0 8px;
	font-weight: 600;
}

.rp-event-detail {
	margin: 4px 0;
	font-size: 15px;
	line-height: 1.5;
}

.rp-event-links {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

@media (max-width: 540px) {
	.rp-field-row {
		flex-direction: column;
		gap: 0;
	}

	.rp-btn {
		width: 100%;
		text-align: center;
	}
}
