/*
Theme Name: GeneratePress Child
Theme URI: https://andreaidegamba.it/
Description: Child theme di GeneratePress
Author: Andrea Ide Gamba
Author URI: https://andreaidegamba.it/
Template: generatepress
Version: 1.0.1
Text Domain: generatepress-child
*/


/* =========================
   CONTACT FORM 7 STILE PRO
========================= */

.wpcf7 {
	width: 100%;
	max-width: 620px;
	margin: 20px auto 0;
	background: #ffffff;
	padding: 32px;
	border-radius: 24px;
	box-shadow: 0 20px 44px rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
}

/* FORM BASE */
.wpcf7-form {
	width: 100%;
}

/* SPACING */
.wpcf7-form p {
	margin: 0 0 18px;
}

/* LABEL */
.wpcf7-form label {
	display: block;
	font-size: 0.9rem;
	font-weight: 700;
	color: #0f1720;
	margin-bottom: 6px;
}

/* INPUT + SELECT + TEXTAREA */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 14px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #f8f8f8;
	font-size: 1rem;
	color: #0f1720;
	transition: all 0.2s ease;
}

/* FOCUS */
.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
	outline: none;
	border-color: #ffd600;
	box-shadow: 0 0 0 2px rgba(255, 214, 0, 0.25);
	background: #ffffff;
}

/* TEXTAREA */
.wpcf7-form textarea {
	min-height: 150px;
	resize: vertical;
}

/* CTA BUTTON */
.wpcf7-form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 0 28px;
	border: none;
	border-radius: 4px;
	background: #ffd600;
	color: #0f1720;
	font-size: 1rem;
	font-weight: 800;
	cursor: pointer;
	box-shadow: 0 10px 20px rgba(255, 214, 0, 0.3);
	transition: all 0.2s ease;
}

/* HOVER */
.wpcf7-form input[type="submit"]:hover {
	background: #e6c200;
	transform: translateY(-2px) scale(1.02);
}

/* LOADING */
.wpcf7-spinner {
	margin-left: 10px;
}

/* ERROR */
.wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 0.85rem;
	color: #dc2626;
}

/* SUCCESS / RESPONSE */
.wpcf7-response-output {
	margin: 18px 0 0 !important;
	padding: 12px 14px !important;
	border-radius: 10px;
	font-size: 0.95rem;
}


/* =========================
   HEADER
========================= */

/* CTA NEL MENU */
.main-navigation .main-nav ul li.menu-cta > a {
	background: #ffd600;
	color: #0f1720 !important;
	padding: 10px 16px;
	border-radius: 6px;
	font-size: 0.92rem;
	font-weight: 800;
	line-height: 1;
	box-shadow: none;
}

.main-navigation .main-nav ul li.menu-cta > a:hover {
	background: #e6c200;
	color: #0f1720 !important;
	transform: translateY(-1px);
}

/* RIDUCE ALTEZZA HEADER */
.site-header {
	padding: 8px 0;
}

/* MENU PIÙ COMPATTO */
.main-navigation .main-nav ul li a {
	padding-left: 14px;
	padding-right: 14px;
	font-weight: 700;
}

/* SPAZIATURA LOGO */
.site-branding .site-title {
	font-size: 1.25rem;
	font-weight: 900;
}


/* =========================
   FOOTER: BARRA LEGALE + CREDITO
========================= */

.site-info {
	background: #0f1720;
	color: #9ca3af;
	font-size: 0.85rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-info .inside-site-info {
	padding: 18px 20px;
	justify-content: center;
	text-align: center;
}

.site-info .copyright-bar {
	width: 100%;
	text-align: center;
}

.site-info .footer-legal,
.site-info .footer-credit {
	display: inline;
	line-height: 1.6;
}

.site-info .footer-credit::before {
	content: " · ";
}

.site-info a {
	color: #ffd600;
	text-decoration: none;
}

.site-info a:hover {
	text-decoration: underline;
}

/* Su mobile: due righe per leggibilità */
@media (max-width: 768px) {
	.site-info .footer-legal,
	.site-info .footer-credit {
		display: block;
	}

	.site-info .footer-credit {
		margin-top: 4px;
	}

	.site-info .footer-credit::before {
		content: "";
	}
}


/* =========================
   FIX BOTTONI "CONGELATO" DOPO IL TASTO INDIETRO
========================= */

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
	outline: none;
}