/* ==========================================================
   PhytoItalia — Override eventi pagina iscrizione
   Sistema il template legacy per layout moderno + mobile
   ========================================================== */

/* Box sizing globale per evitare overflow su mobile */
*, *::before, *::after {
	box-sizing: border-box;
}

html, body {
	overflow-x: hidden;
	max-width: 100%;
}

body {
	font-family: 'Raleway', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	font-size: 15px;
	line-height: 1.55;
	color: #444;
	background: #fafafa;
}

/* ===== Header / Navbar ===== */
.header {
	background: #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.navbar-fixed-top {
	position: relative !important;
}

.navbar-default {
	background: #fff;
	border: none;
	padding: 8px 0;
}

.navbar-default .navbar-brand {
	padding: 6px 0 !important;
	height: auto !important;
	display: inline-flex;
	align-items: center;
}

.navbar-default .navbar-brand img {
	max-height: 36px !important;
	width: auto !important;
	height: auto;
	display: block;
}

@media (max-width: 575px) {
	.navbar-default .navbar-brand img {
		max-height: 28px !important;
	}
}

.discover-btn {
	display: inline-block;
	padding: 8px 18px;
	background: #4c9156;
	color: #fff !important;
	border-radius: 22px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.2s;
}

.discover-btn:hover {
	background: #3d7a46;
	color: #fff !important;
}

/* ===== Sezione home (contenuto) ===== */
.home-section {
	background: #fafafa;
	padding: 32px 0 60px !important;
	min-height: auto !important;
}

.home-section .container {
	max-width: 1140px;
}

.home-section .padding-top-100 {
	padding-top: 0 !important;
}

.home-section h1 {
	font-size: 26px;
	line-height: 1.25;
	color: #4c9156;
	font-weight: 700;
	margin-bottom: 10px;
}

@media (min-width: 768px) {
	.home-section h1 {
		font-size: 32px;
	}
}

.home-section h4 {
	font-size: 16px;
	color: #777;
	font-weight: 500;
	margin-bottom: 18px;
}

.home-section p,
.home-section .oneone {
	color: #555;
	font-size: 15px;
	line-height: 1.6;
}

/* Lista benefits */
.home-benefits {
	margin-top: 16px;
	padding: 0;
	list-style: none;
}

.home-benefits li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 14px;
	line-height: 1.5;
	margin-bottom: 8px;
	color: #444;
	padding: 0;
	font-family: inherit;
}

.home-benefits li i {
	color: #4c9156;
	font-size: 18px;
	flex-shrink: 0;
	margin-top: 2px;
}

.home-benefits li a {
	color: #4c9156;
	font-weight: 600;
}

/* ===== Form iscrizione ===== */
.register-form-wrapper {
	background: #fff;
	border-radius: 12px;
	padding: 28px 24px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
	margin-top: 16px;
}

@media (max-width: 575px) {
	.register-form-wrapper {
		padding: 20px 16px;
		margin-top: 24px;
	}
}

.register-form-wrapper h3 {
	font-size: 22px;
	color: #333;
	font-weight: 700;
	margin-bottom: 14px;
}

.register-form-wrapper h5 {
	font-size: 14px;
	color: #4c9156;
	font-weight: 700;
	margin: 20px 0 10px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.register-input,
.register-input.white-input {
	display: block;
	width: 100%;
	padding: 11px 14px;
	font-size: 14px;
	color: #333;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	margin-bottom: 12px;
	transition: border-color 0.15s, box-shadow 0.15s;
	font-family: inherit;
}

.register-input:focus {
	outline: none;
	border-color: #4c9156;
	box-shadow: 0 0 0 3px rgba(76, 145, 86, 0.15);
}

.register-input:disabled {
	background: #f5f5f5;
	color: #999;
	cursor: not-allowed;
}

/* Select2 override */
.select2-container--default .select2-selection--single {
	height: 44px !important;
	padding: 7px 10px !important;
	border: 1px solid #ddd !important;
	border-radius: 8px !important;
	background: #fff;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 28px !important;
	padding-left: 4px !important;
	color: #333;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 42px !important;
	right: 6px !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
	color: #999;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
	border-color: #4c9156 !important;
	box-shadow: 0 0 0 3px rgba(76, 145, 86, 0.15) !important;
}

.select2-container {
	width: 100% !important;
	margin-bottom: 12px;
}

.select2-dropdown {
	border: 1px solid #ddd !important;
	border-radius: 8px !important;
}

.select2-results__option--highlighted[aria-selected] {
	background-color: #4c9156 !important;
}

/* Checkbox privacy */
input[type="checkbox"]#privacy {
	margin-right: 6px;
	transform: translateY(1px);
}

label[for="privacy"] {
	font-size: 13px;
	color: #555;
	cursor: pointer;
}

/* Bottone submit */
.register-submit {
	display: block;
	width: 100%;
	padding: 12px 24px;
	background: #4c9156;
	color: #fff;
	border: none;
	border-radius: 25px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
	margin-top: 6px;
}

.register-submit:hover {
	background: #3d7a46;
}

.register-submit:active {
	transform: scale(0.98);
}

/* Privacy link */
a.privacy {
	font-size: 12px;
	color: #777;
	line-height: 1.5;
	display: inline-block;
}

a.privacy:hover {
	color: #4c9156;
}

/* Box success / duplicato */
.register_success_box {
	padding: 16px 18px;
	background: #e8f5e9;
	border: 1px solid #4c9156;
	border-radius: 8px;
	color: #2e7d32;
	font-weight: 600;
	margin-bottom: 16px;
}

.exist_user_box {
	padding: 16px 18px;
	background: #fff5f5;
	border: 1px solid #f5c6cb;
	border-radius: 8px;
	color: #842029;
	margin-bottom: 16px;
}

/* ===== Footer ===== */
.footer {
	background: #2a2f33;
	color: #ccc;
	padding: 18px 0;
	margin-top: 40px;
}

.footer p {
	margin: 0;
	font-size: 12px;
	color: #aaa;
	line-height: 1.5;
}

.footer-bottom {
	text-align: center;
}

/* ===== Responsive layout ===== */
@media (max-width: 767px) {
	.home-section {
		padding: 20px 0 40px !important;
	}

	.home-section .col-md-5,
	.home-section .col-md-7 {
		padding-left: 16px;
		padding-right: 16px;
	}

	.navbar-default .navbar-nav {
		padding: 8px 0;
	}

	.navbar-default .navbar-nav .discover-link {
		text-align: center;
		margin-top: 8px;
	}

	h1 { font-size: 26px !important; }
	h3 { font-size: 20px !important; }
	h4 { font-size: 15px !important; }
	h5 { font-size: 13px !important; }
}

/* Toggle mobile navbar */
.navbar-toggler {
	border: 1px solid #ddd;
	padding: 5px 10px;
	border-radius: 6px;
}

.navbar-toggler:focus {
	box-shadow: 0 0 0 3px rgba(76, 145, 86, 0.15);
	outline: none;
}

.navbar-toggler-icon {
	color: #4c9156;
	font-size: 18px;
}
