/*
 Theme Name:   Eviso Giro
 Theme URI:    https://generatepress.com
 Description:  Child theme di Eviso Giro
 Author:       Eviso
 Author URI:   https://www.eviso.it
 Template:     generatepress
 Version:      1.0
*/

.site-header {
 z-index: 10;
}

/* Nasconde le frecce di navigazione di GLightbox */
.gnext, .gprev {
    display: none !important;
}

/* CAROSELLO */

.mio-carosello .splide__pagination {
	bottom: -10px !important;
	display: flex !important;
	visibility: visible !important;
	opacity: 1 !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}

.mio-carosello .splide__pagination__page {
	background: #000000 !important; 
	border: none !important;
	width: 8px !important;
	height: 8px !important;
	margin: 5px !important;
	opacity: 1 !important;
}

.mio-carosello .splide__pagination__page.is-active {
	background: #30F280 !important;
	transform: scale(1.3);
}

.splide__arrow svg {
	fill: #000;
	height: 1em !important;
	width: 1em !important;
}

.splide__arrow {
	background: #ffffff !important;
}

.has-sticky-branding	{
	z-index: 9999;
}

.circle-image {
	animation: rotateImage 10s linear infinite;
}

@keyframes rotateImage {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.pulse-bg {
	animation: pulseOverlay 4s infinite ease-in-out;
}

@keyframes pulseOverlay {
  0% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.4;
  }
}

.form-popup-box {
	display: none;
}

.glightbox-container .goverlay {
  background: rgba(0, 0, 0, 0.6) !important;
}

.gslide-inline .ginlined-content {
    padding: 0px !important;
    width: 100%;
}

.glightbox-clean .gslide-media {
	-webkit-box-shadow: none !important;
	box-shadow: none !important;
}

.scopri-offerta {
	font-weight: normal !important;
}

.gform_wrapper.gravity-theme .gform_fields {
    grid-row-gap: 5px !important;
}

.gform_title {
	font-size: 20px;
	padding-bottom: 20px !important;
	font-weight: bold;
	border-bottom: 1px solid #000000;
	padding-bottom: 5px;
}

.gform_required_legend {
	display: none;
}

.gfield_label {
	font-size: 14px !important;
	font-weight: bold !important;
}

.legenda {
	padding-top:10px !important;
}

.campo-form {
	border-bottom: 1px solid #000000 !important;
	padding-bottom: 10px !important;
}

.ginput_container input {
	border-radius: 500px !important;
	border: 0px !important;
}

.campo-form input {
    border-radius: 500px !important;
	border: 0px !important;
}

.consenso {
	font-size: 14px;
}

.gform_wrapper input[type="file"] {
    display: none;
}

.custom-file-wrapper {
	display: flex;
	align-items: center;
	column-gap: 20px;
}

.custom-file-upload {
    display: flex;
    font-size: 14px !important;
    padding: 8px 20px;
    background: #37FE69;
    color: #000000;
    border-radius: 500px;
    cursor: pointer;
    width: 106px;
    justify-content: space-between;
}

.custom-file-upload span {
	padding: 0px !important;
}

.custom-file-upload svg {
    width: 18px !important;
    height: 18px !important;
}

.custom-file-text {
	font-size: 14px;
}

.gfield_description {
	padding-top: 0px !important;
}

.gform_fileupload_rules {
	font-size: 13px !important;
	padding-top: 0px;
	padding-bottom: 10px;
	margin-bottom: 5px !important;
	border-bottom: 1px solid #000000;
}

.gform_button {
	padding-top: 8px !important;
	padding-bottom: 8px !important;
	padding-left: 80px !important;
	padding-right: 80px !important;
	border-radius: 500px !important;
	background: #000000 !important;
}

input[type="submit"]:hover {
	background: #656565 !important;
}

.gfield_html {
	font-size: 14px;
	padding-bottom: 5px !important;
	border-bottom: 1px solid #000000;
}

.gfield_consent_label {
	font-size: 14px;
}

.ginput_container_textarea {
	background: #ffffff !important;
	border-bottom: 1px solid #000000 !important;
	border-left: 0px !important;
	border-top: 0px !important;
	border-right: 0px !important;
}

.ginput_container_textarea textarea {
	background: #ffffff !important;
	border: 0px !important;
}

.form-ticket h2 {
	font-size: 2rem !important;
	padding-bottom: 20px !important;
	border-bottom: 0px !important;
	margin-bottom: 0px !important;
}

.email-box-popup	{
	border-bottom: 1px solid #000000 !important;
	padding-bottom: 10px !important;
}

/* Stili delle card del form */

.offerte-container {
	display: flex;
	gap: 16px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.offerta-box {
	flex: 1;
	min-width: 220px;
	border-radius: 20px;
	padding: 20px;
	cursor: pointer;
	border: 2px solid #ffffff;
	background-size: cover;
	background-position: center;
	position: relative;
	overflow: hidden;
	transition: border 0.2s ease;
	box-shadow: 4px 4px 20px #00000026;
}

.offerta-box:hover {
	border: 2px solid #000000;
}

.offerta-box::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(255,255,255,0.2);
	border-radius: 10px;
	transition: background 0.2s ease;
}

.offerta-box.selezionato::before {
	background: rgba(255,255,255,0.5);
}

.offerta-box .contenuto {
	position: relative;
	z-index: 1;
}

.offerta-box h3 {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 10px 0;
}

.offerta-box .label-prezzo {
	font-size: 11px;
	color: #666;
	margin-bottom: 2px;
}

.offerta-box .prezzo-energia {
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 10px;
}

.offerta-box .prezzo-energia span {
	color: #e05a00;
}

.offerta-box .prezzo-fisso {
	font-size: 20px;
	font-weight: 700;
}

.offerta-box .prezzo-barrato {
	font-size: 13px;
	text-decoration: line-through;
	color: #999;
	margin-left: 6px;
}

.offerta-box.selezionato {
 	border-color: #e05a00 !important;
	border: 2px solid #e05a00 !important;
}

/* Nascondi i radio button originali ma mantienili funzionali */
#field_1_1 {
	display: none !important;
}

#field_3_6	{
	display: none !important;
}

/* FORM RICERCA */

.eg-search-wrapper {
	margin: 28px 0 8px;
}

.eg-search-form {
	width: 100%;
}

.eg-search-inner {
	display: flex;
	align-items: center;
	gap: 12px;
}

.eg-input-wrap {
	position: relative;
	flex: 1;
	display: flex;
	align-items: center;
}

.eg-search-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	color: #9D9D9D;
	pointer-events: none;
	flex-shrink: 0;
}

.eg-search-input {
	width: 100%;
	border: none !important;
	border-radius: 500px !important;
	background: #F2F2F2 !important;
	font-size: 15px;
	color: #1a2340;
	outline: none;
	padding: 12px 16px 12px 42px !important;
	box-shadow: none !important;
}

.eg-search-input::placeholder {
	color: #9D9D9D;
}

.eg-search-btn {
	background: #37FE69;
	color: #000000;
	border: none;
	border-radius: 500px;
	padding: 12px 20px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s;
	white-space: nowrap;
}

.eg-search-btn:hover {
	background: #4DFE96;
	color: #000000;
}

/* PAGINA CERCA */

.eg-results-page {
	padding: 0;
}

/* Barra di ricerca */

.eg-rbar-wrapper {
	margin-bottom: 28px;
	width: 450px;
}

.eg-rbar-inner {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 6px 8px 6px 0;
}

/* Wrapper input+icona */
.eg-rbar-input-wrap {
	position: relative;
	flex: 1;
	display: flex;
	align-items: center;
}

.eg-rbar-icon {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	color: #9D9D9D;
	pointer-events: none;
	flex-shrink: 0;
}

.eg-rbar-input {
 	width: 100%;
	border: none !important;
	border-radius: 500px !important;
	background: #F2F2F2 !important;
	font-size: 15px;
	color: #1a2340;
	outline: none !important;
	padding: 12px 16px 12px 42px !important;
	box-shadow: none !important;
	font-family: inherit;
}

.eg-rbar-input::placeholder { color: #9D9D9D; }

/* Bottone X */
.eg-rbar-clear {
	background: none;
	border: none;
	cursor: pointer;
	color: #6b7a9a;
 	padding: 4px 6px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	transition: color .15s, background .15s;
	flex-shrink: 0;
}

.eg-rbar-clear:hover {
	color: #FA4D1B !important;
	background: #ffffff !important;
}

.eg-results-meta {
	margin-top: 30px;
	margin-bottom: 30px;
	font-size: 16px !important;
	color: #000000;
	min-height: 20px;
}

/* ── Stati ── */
.eg-state { text-align: center; padding: 48px 20px; color: #000000; }
.eg-state svg { color: #E5E7EB; margin-bottom: 16px; display: block; margin-left: auto; margin-right: auto; }
.eg-state p { font-size: 16px; color: #000000; margin: 0 0 6px; }
.eg-state span { font-size: 14px; }
.eg-state a { color: #FA4D1B; text-decoration: underline; }

/* ── Spinner ── */
.eg-spinner {
	width: 36px; height: 36px;
	border: 3px solid #E5E7EB;
	border-top-color: #FA4D1B;
	border-radius: 50%;
	margin: 0 auto 16px;
	animation: eg-spin .7s linear infinite;
}

@keyframes eg-spin { to { transform: rotate(360deg); } }

/* ── Categorie ── */
.eg-category {
	margin-bottom: 36px;
}

.eg-cat-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 25px;
}

.eg-cat-title {
	font-size: 24px !important;
	font-weight: bold;
	color: #000000;
	margin: 0;
	line-height: 1.2;
}

/* ── Bottoni ── */
.eg-buttons-grid {
	display: flex;
	flex-direction: column;
	gap: 0px;
	border-bottom: 1px solid #E5E7EB;
}

.eg-btn {
	display: flex;
	align-items: center; justify-content: space-between;
	margin-bottom: 0px;
    padding-bottom: 24px;
    padding-top: 24px;
	background: #fff;
	border-top: 1px solid #E5E7EB;
	text-decoration: none;
	color: #000000;
	font-size: 18px;
	font-weight: 500;
	transition: all;
}

.eg-btn:hover {
	color: #FA4D1B;
	text-decoration: none;
	background: #F9FAFB;
}

.eg-btn-arrow {
	width: 17px;
	height: 17px;
	flex-shrink: 0;
	opacity: 1;
	transition: opacity .15s;
}
.eg-btn:hover .eg-btn-arrow {
	opacity: 1;
}

/* ── Barra filtri ── */
#blog-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 20px;
}

.filter-btn {
	padding: 8px 20px;
	border: 1px solid #000000;
	border-radius: 50px;
	background: transparent;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: #000000;
	transition: all 0.2s ease;
}

.filter-btn:hover {
	border-color: #000000;
	color: #ffffff;
}

.filter-btn.active {
	background: #000000;
	border-color: #000000;
	color: #fff;
}

/* ── Griglia cards ── */
#blog-posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
	transition: opacity 0.25s ease;
}

/* ── Singola card ── */
.blog-card {
	border-radius: 20px;
	overflow: hidden;
	border: 0px;
	background: #fff;
	display: flex;
	flex-direction: column;
	box-shadow: 2px 2px 15px 5px rgba(0, 0, 0, 0.05);
}

.blog-card__image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.blog-card__body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.blog-card__cat {
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #777;
}

.blog-card__title {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.3;
	margin: 0;
}

.blog-card__title a {
	color: inherit;
	text-decoration: none;
}

.blog-card__title a:hover {
	color: #FA4D1B;
}

.blog-card__excerpt {
	font-size: 14px;
	color: #000000;
	margin: 0;
}

.blog-card__meta {
	font-size: 13px;
	color: #000000;
	margin-top: auto;
	padding-top: 12px;
	display: flex;
    flex-direction: row;
    align-items: center;
	gap: 10px;
}

/* ── Loader ── */
#blog-loader {
	text-align: center;
	padding: 20px;
	color: #999;
	font-size: 14px;
}

/* ── No results ── */
.blog-no-results {
	grid-column: 1 / -1;
	text-align: center;
	color: #999;
	padding: 40px 0;
}

/* ── Skeleton loader ── */
@keyframes shimmer {
	0%   { background-position: -600px 0; }
	100% { background-position:  600px 0; }
}

.skeleton-img,
.skeleton-line {
	background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
	background-size: 600px 100%;
	animation: shimmer 1.4s infinite linear;
	border-radius: 6px;
}

.skeleton-img {
	width: 100%;
	height: 200px;
	border-radius: 0;
}

.skeleton-line {
	height: 14px;
	margin-bottom: 10px;
	width: 100%;
}

.skeleton-line--short { width: 40%; }
.skeleton-line--title { height: 20px; width: 85%; }

/* ── Paginazione ── */
#blog-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	margin-top: 40px;
	flex-wrap: wrap;
}

.page-btn {
	min-width: 38px;
	height: 38px;
	padding: 0 10px;
	border: 1px solid #000000;
	border-radius: 8px;
	background: transparent;
	color: #000000;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.2s ease;
}

.page-btn:hover:not([disabled]) {
	border-color: #000000;
	color: #ffffff;
}

.page-btn.active {
	background: #000000;
	border-color: #000000;
	color: #fff;
}

.page-btn[disabled] {
	opacity: 0.3;
	cursor: not-allowed;
}

.page-btn--arrow {
	font-size: 16px;
}

.page-ellipsis {
	color: #999;
	font-size: 14px;
	padding: 0 4px;
	line-height: 38px;
}

.wpulike-default button.wp_ulike_btn {
    color: #616161;
    background-color: #ffffff !important;
    min-height: 30px;
    min-width: 0px !important;
}

@media(max-width: 768px) {
	
	.eg-rbar-wrapper {
		margin-bottom: 28px;
		width: 100%;
	}
	
    .main-navigation .main-nav ul li a {
		padding-left: 0px;
		padding-right: 0px;
		line-height: 60px;
	}
}

