/*
Theme Name: Connexio
Theme URI: http://connexio.local
Author: Connexio
Author URI: https://connexio.local
Description: Tema custom del sito vetrina della rete professionale Connexio. Pagine composte con WPBakery Page Builder.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: connexio
*/

/* ===== overrides / additions on top of assets/css/style.css ===== */

/* WPBakery: rimuovi i container fluid default così il nostro .container resta autorevole */
.vc_row, .wpb_row { margin-bottom: 0 !important; margin-left: 0 !important; margin-right: 0 !important; }
.wpb_content_element { margin-bottom: 0 !important; }
.wpb_raw_code .wpb_wrapper, .wpb_raw_html .wpb_wrapper, .vc_raw_html { line-height: inherit; }
.wpb_text_column p:last-child { margin-bottom: 0; }
.vc_column_container > .vc_column-inner { padding: 0 !important; }

/* ===== Sezione News: tab + griglia feed RSS ===== */
.news-block { display: flex; flex-direction: column; gap: 32px; }
.news-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(11, 18, 53, 0.08);
}
.news-tab {
	appearance: none;
	background: transparent;
	border: 0;
	padding: 10px 18px;
	border-radius: 999px;
	font: inherit;
	font-size: 13.5px;
	font-weight: 500;
	color: #4a4f64;
	cursor: pointer;
	transition: background var(--t-fast), color var(--t-fast);
	letter-spacing: 0.005em;
}
.news-tab:hover { background: rgba(10, 10, 18, 0.06); color: #0b1235; }
.news-tab.is-active {
	background: #0A0A12;
	color: #fff;
	font-weight: 600;
}
.news-panels { position: relative; }
.news-panel { display: none; animation: news-fade .2s ease-out both; }
.news-panel.is-active { display: block; }
@keyframes news-fade {
	from { opacity: 0; transform: translateY(4px); }
	to   { opacity: 1; transform: translateY(0); }
}

.rss-block { margin-bottom: 56px; }
.rss-block:last-child { margin-bottom: 0; }
.rss-block__title {
	font-size: 22px;
	font-weight: 600;
	margin: 0 0 22px;
	color: var(--c-ink, #0b1235);
	letter-spacing: -0.005em;
}
.rss-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 22px;
}
.rss-card {
	display: flex;
	flex-direction: column;
	padding: 22px 22px 20px;
	background: #fff;
	border: 1px solid rgba(11, 18, 53, 0.08);
	border-radius: 18px;
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.rss-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}
.rss-card__date {
	font-size: 12px;
	color: #6e7388;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	font-weight: 500;
}
.rss-card__title {
	font-size: 16px;
	font-weight: 600;
	margin: 10px 0 12px;
	line-height: 1.35;
}
.rss-card__title a {
	color: #0b1235;
	text-decoration: none;
	transition: color 0.2s ease;
}
.rss-card__title a:hover { color: #0A0A12; }
.rss-card__excerpt {
	font-size: 13.5px;
	line-height: 1.5;
	color: #4a4f64;
	margin: 0 0 16px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.rss-card__link {
	margin-top: auto;
	font-size: 12.5px;
	font-weight: 600;
	color: #0A0A12;
	text-decoration: none;
	letter-spacing: 0.01em;
}
.rss-card__link:hover { text-decoration: underline; }
.rss-block--error { color: #6e7388; font-size: 14px; }

/* WP admin bar non deve coprire l'header floating */
body.admin-bar .site-header,
body.admin-bar .nav-primary,
body.admin-bar .btn-contatti,
body.admin-bar .brand,
body.admin-bar .burger { margin-top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .site-header,
	body.admin-bar .nav-primary,
	body.admin-bar .btn-contatti,
	body.admin-bar .brand,
	body.admin-bar .burger { margin-top: 46px; }
}

/* ===== Everest Forms — restyle coerente con il design Connexio ===== */

/* Contenitore (preserva il layout flex 2-col nativo di EVF per .evf-grid-2) */
.everest-forms .evf-container,
.everest-forms form.everest-form { padding: 0; }
.everest-forms .evf-submit-container { padding: 0 !important; }
.everest-forms .evf-frontend-row { margin-bottom: 16px; }
.everest-forms .evf-frontend-grid > .evf-field { margin-bottom: 0; }
@media (max-width: 719px) {
	.everest-forms .evf-grid-2 { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }
}

/* Label */
.everest-forms .evf-field > label.evf-field-label,
.everest-forms .evf-field-label {
	display: block;
	font-size: 13px;
	color: var(--c-muted, #6e7388);
	margin-bottom: 6px;
	font-weight: 500;
}
.everest-forms .evf-field .evf-label,
.everest-forms .evf-field label .evf-label { font-weight: 500; }
.everest-forms .evf-field .required,
.everest-forms abbr.required { color: #e3434e; text-decoration: none; margin-left: 2px; }

/* Input/textarea/select — match dello stile `.field input` dello statico.
   ESCLUSI checkbox/radio (per non rendere full-width il consent del Privacy field). */
.everest-forms .evf-field input.input-text:not([type="checkbox"]):not([type="radio"]),
.everest-forms .evf-field input[type="text"],
.everest-forms .evf-field input[type="email"],
.everest-forms .evf-field input[type="tel"],
.everest-forms .evf-field input[type="url"],
.everest-forms .evf-field input[type="number"],
.everest-forms .evf-field input[type="password"],
.everest-forms .evf-field input[type="search"],
.everest-forms .evf-field textarea,
.everest-forms .evf-field select {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid var(--c-line, #e3e7f1);
	border-radius: 12px;
	padding: 12px 14px;
	font: inherit;
	background: #fbfcff;
	color: var(--c-text, #1a1f3a);
	box-shadow: none;
	transition: border-color var(--t-fast, .15s), box-shadow var(--t-fast, .15s);
	max-width: 100%;
	min-height: auto;
	height: auto;
}
.everest-forms .evf-field input:focus,
.everest-forms .evf-field textarea:focus,
.everest-forms .evf-field select:focus {
	outline: none;
	border-color: var(--c-black, #0A0A12);
	box-shadow: 0 0 0 4px rgba(10, 10, 18, 0.10);
}
.everest-forms .evf-field textarea { min-height: 130px; resize: vertical; }

/* Submit container: bottone + label privacy in linea, come .form-actions */
.everest-forms .evf-submit-container {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
	margin-top: 8px;
}

/* Submit button — match dello stile `.btn-pill` (selettore alta specificità per battere EVF) */
.everest-forms .evf-submit-container button.evf-submit,
.everest-forms .evf-submit-container button[type="submit"],
.everest-forms button.everest-forms-submit-button,
body .everest-forms button[type="submit"],
body .everest-forms button.button:not(.button-large) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 12px 26px;
	border: 0;
	border-radius: var(--radius-pill, 999px);
	background: var(--c-black, #0A0A12);
	color: #fff;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
	text-shadow: none;
	transition: background var(--t-med, .25s) ease, transform var(--t-med, .25s) ease;
	width: auto;
	height: auto;
	min-height: auto;
}
body .everest-forms button[type="submit"]:hover,
body .everest-forms button.button:not(.button-large):hover,
.everest-forms .evf-submit-container button.evf-submit:hover {
	background: #23232E;
	color: #fff;
	transform: translateY(-2px);
}
body .everest-forms button[type="submit"]:active,
body .everest-forms button.button:not(.button-large):active {
	transform: translateY(0);
	color: #fff;
}

/* Messaggio di successo dopo invio EVF — match della classe `.form-success` */
.everest-forms .everest-forms-submission-message,
.everest-forms-submission-message.everest-forms-notice-success {
	margin-top: 22px;
	padding: 18px 22px;
	border-radius: 14px;
	background: linear-gradient(135deg, rgba(10,10,18,0.06), rgba(10,10,18,0.03));
	border: 1px solid rgba(10,10,18,0.16);
	color: var(--c-text, #1a1f3a);
	font-weight: 500;
}

/* Validation error inline */
.everest-forms .evf-error,
.everest-forms label.evf-error {
	display: block;
	color: #e3434e;
	font-size: 12.5px;
	margin-top: 6px;
}

/* ===== Privacy Policy field: checkbox + label inline ===== */
.everest-forms .evf-field-privacy-policy {
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 12px;
	row-gap: 8px;
	align-items: start;
}
.everest-forms .evf-field-privacy-policy > .evf-field-label {
	grid-column: 1 / -1;
	margin-bottom: 0;
}
.everest-forms .evf-field-privacy-policy input[type="checkbox"] {
	width: 18px !important;
	height: 18px !important;
	min-width: 18px;
	min-height: 18px;
	max-width: 18px;
	margin: 3px 0 0 0;
	padding: 0;
	background: #fff;
	border: 1px solid var(--c-line, #e3e7f1);
	border-radius: 4px;
	accent-color: var(--c-black, #0A0A12);
	cursor: pointer;
	box-shadow: none;
}
.everest-forms .evf-privacy-policy-consent-message {
	grid-column: 2;
	margin: 0;
	padding: 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: var(--c-text, #1a1f3a);
	font-weight: 400;
	cursor: pointer;
	position: relative;
	top: -3px;
	margin-left: 5px !important;
}
.everest-forms .evf-privacy-policy-consent-message a {
	color: var(--c-black, #0A0A12);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.everest-forms .evf-privacy-policy-consent-message a:hover {
	text-decoration-thickness: 2px;
}
.everest-forms .evf-privacy-policy-local-page-contents {
	grid-column: 1 / -1;
}

/* ===== Hide on demand: social wall home + footer .socials residue ===== */
body.is-home .social,
section.social { display: none !important; }
.site-footer .socials { display: none !important; }
