/*
Theme Name: Scait
Theme URI: https://scait.it
Template: eduma
Author: Claudio Rizza
Author URI: https://airevolution.club
Description: Tema personalizzato per Scait.it, ottimizzato per performance, usabilità e SEO.
Tags: responsive, modern, clean, education, lms
Version: 1.0.202611301
Updated: 2026-11-30 10:00:00
*/

/* Mobile Header */
.thim-ekit-light-mode .logo-light {
	display: block;
}
.thim-ekit-light-mode .logo-dark {
	display: none;
}
.thim-ekit-dark-mode .logo-light {
	display: none;
}
.thim-ekit-dark-mode .logo-dark {
	display: block;
}

.thim-ekit-dark-mode .thim-ekit__header .elementor-14400 .elementor-element-7a64bb5::before {
	background: #000927;
}

.thim-ekit-dark-mode .thim-ekit__header .elementor-14400 .elementor-element-7a64bb5 a {
	color: #fff !important;
}

/* Dark mode: WPForms fissa a :root colori scuri per le etichette
   (es. legend "Privacy Policy"), illeggibili sullo sfondo scuro del tema.
   Le variabili del tema scuro stanno su `.thim-ekit-dark-mode body`.
   I campi restano bianchi: si adattano solo le etichette sul fondo pagina. */
.thim-ekit-dark-mode body {
	--wpforms-label-color: var(--thim-font-body-color, #8e88a8);
	--wpforms-label-sublabel-color: var(--thim-font-body-color, #8e88a8);
}

.sc_heading .title,
.sc_heading .clone {
	text-transform: unset !important;
}



/************************************************************
  1) BOTTONI (Elementor / Eduma / LearnPress)
*************************************************************/
.elementor a.elementor-button,
.elementor .elementor-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	min-height: 48px !important;
	padding: 14px 22px !important;
	border-radius: 14px !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
	background-color: #e31b23 !important;
	border: 1px solid #e31b23 !important;
	color: #fff !important;
	text-decoration: none !important;
}
.elementor .elementor-button .elementor-button-text,
.elementor .elementor-button .elementor-button-icon {
	color: inherit !important;
	fill: currentColor !important;
	padding: 0 !important;
	margin: 0 !important;
	line-height: inherit !important;
}
.elementor .elementor-button:before,
.elementor .elementor-button:after {
	content: none !important
}
.elementor-location-header .elementor-button,
#masthead .elementor-button {
	border-radius: 28px !important
}
.learnpress .lp-button,
a.lp-button,
.lp-button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	min-height: 44px !important;
	padding: 12px 20px !important;
	border-radius: 14px !important;
	line-height: 1.2 !important;
	background-color: #e31b23 !important;
	border: 1px solid #e31b23 !important;
	color: #fff !important;
}
a[class*="button"],
a[class*="btn"],
.button,
.btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	min-height: 44px !important;
	padding: 12px 20px !important;
	border-radius: 14px !important;
	line-height: 1.2 !important;
	white-space: nowrap !important;
}
a[class*="button"][style*="background"],
a[class*="btn"][style*="background"],
.button[style*="background"],
.btn[style*="background"] {
	color: #fff !important
}

/************************************************************
  2) CONTACT FORM 7 (campi + pulsante)
*************************************************************/
.wpcf7 input,
.wpcf7 select,
.wpcf7 textarea {
	box-sizing: border-box !important
}
form.wpcf7-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
form.wpcf7-form select,
form.wpcf7-form textarea {
	width: 100% !important;
	background: #fff !important;
	border: 1.5px solid #d1d5db !important;
	border-radius: 12px !important;
	padding: 12px 16px !important;
	height: 52px !important;
	line-height: 1.2 !important;
	font-size: 16px !important;
	box-shadow: none !important;
	-webkit-appearance: none !important;
	appearance: none !important;
}

form.wpcf7-form textarea {
	min-height: 180px !important;
	height: auto !important;
	resize: vertical !important;
}

.wpcf7 form .wpcf7-submit {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #e31b23 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 14px !important;
	padding: 14px 28px !important;
	font-weight: 700 !important;
	font-size: 16px !important;
	line-height: 1.2 !important;
	box-shadow: 0 8px 24px rgba(227, 27, 35, .25) !important;
}

.wpcf7 form .wpcf7-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 28px rgba(227, 27, 35, .35) !important;
}
.elementor-background-overlay {
	pointer-events: none !important
}

.wpcf7 .wpcf7-acceptance input[type="checkbox"] {
	position: relative !important;
	z-index: 9999 !important;
	width: 18px !important;
	height: 18px !important;
	margin: 3px 8px 0 0 !important;
}

/************************************************************
  3) CLICK-TO-CHAT (WhatsApp) – link come BOTTONI
     Funziona sia con <a class="ctc-button"> che con i link nel contenuto.
*************************************************************/
.ctc-greetings .ctc-content a,
.ctc-greetings .ctc-body a,
.ctc-greetings .ctc-main a,
.ctc-greetings .ctc-list a,
.ctc-greetings li a,
.ctc-greetings a.ctc-button,
.ctc-button {
	display: block !important;
	width: 100% !important;
	max-width: 560px !important;
	margin: 10px auto !important;
	padding: 14px 20px !important;
	text-align: center !important;
	text-decoration: none !important;
	background: #25D366 !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 16px !important;
	font-weight: 800 !important;
	font-size: 18px !important;
	line-height: 1.2 !important;
	box-shadow: 0 6px 18px rgba(37, 211, 102, .25) !important;
}

.ctc-greetings ul,
.ctc-greetings ol {
	margin: 0 !important;
	padding: 0 !important
}

.ctc-greetings li {
	list-style: none !important;
	margin: 0 0 8px 0 !important
}

.ctc-greetings a:hover {
	background: #1ebe5d !important;
	box-shadow: 0 8px 22px rgba(37, 211, 102, .30) !important
}

/************************************************************
  4) HEADER mobile – impaginazione + nascondi dark-mode
*************************************************************/
@media (max-width:767px) {
	.elementor-location-header .elementor-section .elementor-container {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}

	.elementor-location-header .elementor-widget-site-logo img {
		max-width: 200px;
		height: auto;
		margin: 0 auto;
	}

	.elementor-location-header .elementor-button {
		width: 100%;
		justify-content: center
	}

	.elementor-location-header .elementor-widget-thim-ekits-dark-mode {
		display: none !important
	}

	.elementor-location-header .elementor-button {
		min-height: 46px;
		padding: 10px 16px;
		border-radius: 16px;
		line-height: 1.25;
	}

	.elementor-location-header .elementor-button .elementor-button-text {
		line-height: 1.25
	}
}

/************************************************************
  5) HERO – RICERCA a tutta larghezza
*************************************************************/
#hero-search-col {
	flex: 0 0 100% !important;
	max-width: 100% !important;
	width: 100% !important;
}
#hero-search,
#hero-search .elementor-widget-container,
#hero-search .thim-ekits-search,
#hero-search .thim-ekits-course-search,
#hero-search .thim-course-search,
#hero-search form,
#hero-search .search-form {
	width: 100% !important;
	max-width: none !important;
	display: block !important;
}

#hero-search form {
	display: grid !important;
	grid-template-columns: 1fr auto !important;
	align-items: stretch !important;
	gap: 0 !important;
}

#hero-search * {
	min-width: 0 !important
}

#hero-search input[type="search"],
#hero-search .search-field {
	height: 56px !important;
	padding: 12px 16px !important;
	border-radius: 12px 0 0 12px !important;
}

#hero-search button,
#hero-search .search-submit {
	height: 56px !important;
	padding: 0 18px !important;
	line-height: 1 !important;
	border-radius: 0 12px 12px 0 !important;
}

@media (max-width:767px) {
	#hero-search-col {
		width: 100% !important
	}

	#hero-search {
		max-width: 100% !important
	}
}

@media (min-width:1025px) {
	#hero-search {
		max-width: 900px !important;
		margin: 0 auto !important
	}

	.ui-autocomplete {
		max-width: 900px !important;
		width: 100% !important;
		margin: 8px auto !important;
		border-radius: 12px !important;
		overflow: hidden;
	}
}

.ui-autocomplete li,
.ui-menu .ui-menu-item-wrapper {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
	padding: 10px 12px !important;
	line-height: 1.2 !important;
}

.ui-autocomplete img {
	width: 60px !important;
	height: 60px !important;
	object-fit: cover !important;
	border-radius: 8px !important;
}

.lp-ajax-search [class*="author"],
.thim-ekits-search [class*="author"],
.thim-course-search [class*="author"],
.ui-autocomplete [class*="author"],
.ui-menu [class*="author"] {
	display: none !important
}

.learn-press-courses .course-item a[href^="mailto"],
.learn-press-courses .course-item .course-instructor a[href^="mailto"],
.learn-press-courses .course-item .author a[href^="mailto"],
.single-lp_course .course-meta a[href^="mailto"],
.single-lp_course .instructor a[href^="mailto"] {
	display: none !important
}

.learn-press-courses .course-item .course-instructor,
.learn-press-courses .course-item .author,
.single-lp_course .course-meta .instructor,
.single-lp_course .course-meta .author {
	display: none !important
}

.learn-press-courses .course-item .course-title+.sep,
.single-lp_course .entry-title+.sep {
	display: none !important
}

/************************************************************
  6) Evidenziazioni negli heading
*************************************************************/
.elementor-heading-title .thim-highlight,
.elementor-heading-title .elementor-highlight {
	font-size: inherit !important;
	font-weight: inherit !important;
	line-height: inherit !important;
	color: #d80000;
}

/************************************************************
  7) HEADER SEMPRE LEGGIBILE (sfondo bianco + testo scuro)
     – Paracadute finché il modulo dark-mode non viene disattivato
*************************************************************/
#masthead,
.site-header,
.thim-header,
.elementor-location-header {
	background: #ffffff !important;
}

.elementor-nav-menu a,
.menu-item a,
.site-header a {
	color: #0e1330 !important;
}

/* Hover/Active menu – forza il rosso anche se ci sono !important altrove */
.elementor-nav-menu a,
.elementor-nav-menu .elementor-item,
.site-header .menu-item>a {
	transition: color .2s ease;
}

/* Hover + focus */
.elementor-nav-menu a:hover,
.elementor-nav-menu .elementor-item:hover,
.elementor-nav-menu .elementor-item:focus,
.site-header .menu-item>a:hover,
.site-header .menu-item>a:focus {
	color: #e31b23 !important;
}

/* Stato "Active / Current" (pagina corrente o item attivo) */
.elementor-nav-menu .elementor-item.elementor-item-active,
.elementor-nav-menu .current-menu-item>a,
.site-header .menu-item.current-menu-item>a {
	color: #e31b23 !important;
}

/* Dropdown / sottomenu */
.elementor-nav-menu--dropdown a:hover,
.elementor-nav-menu--dropdown .elementor-sub-item:hover,
.site-header .sub-menu a:hover {
	color: #e31b23 !important;
}

/* Se usi la modalità dark del tema, assicura l'hover anche lì */
html[class*="dark"] .elementor-nav-menu a:hover,
body[class*="dark"] .elementor-nav-menu a:hover,
html[class*="dark"] .menu-item>a:hover,
body[class*="dark"] .menu-item>a:hover {
	color: #e31b23 !important;
}


/* ====== MENU HOVER ROSSO (forza davvero) ====== */
#masthead .navigation .menu>li>a,
.elementor-location-header .elementor-nav-menu--main .elementor-item {
	color: #0e1330;
}
#masthead .navigation .menu>li:hover>a,
#masthead .navigation .menu>li>a:hover,
#masthead .navigation .menu>li.current-menu-item>a,
#masthead .navigation .menu>li.current-menu-ancestor>a,
.elementor-location-header .elementor-nav-menu--main .elementor-item:hover,
.elementor-location-header .elementor-nav-menu--main .elementor-item:focus,
.elementor-location-header .elementor-nav-menu--main .elementor-item.elementor-item-active {
	color: #e31b23 !important;
}
#masthead .navigation .menu .sub-menu a:hover,
#masthead .navigation .menu .sub-menu li.current-menu-item>a,
.elementor-location-header .elementor-nav-menu--dropdown .elementor-sub-item:hover,
.elementor-location-header .elementor-nav-menu--dropdown .elementor-sub-item:focus {
	color: #e31b23 !important;
}
#masthead .navigation .menu>li>a span,
#masthead .navigation .menu .sub-menu a span,
.elementor-location-header .elementor-nav-menu a span {
	color: inherit !important;
}
#masthead .navigation .menu>li>a,
.elementor-location-header .elementor-nav-menu a {
	transition: color .2s ease;
}
