/**
Theme Name: Visita Sondrio
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: visita-sondrio
Template: astra
*/

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

.site-header-primary-section-right .ast-custom-button-link .ast-custom-button {min-width:155px!important;}

/* ================================================================
  CONFIGURAZIONE SUB MENU - SOLO DESKTOP
  ================================================================ */

@media (min-width: 922px) {

		.main-header-menu .menu-item,  .ast-container[data-section="section-primary-header-builder"] .site-header-primary-section-center,  #ast-hf-menu-1 {position: initial!important;}

		.ast-builder-menu-1 .menu-item > .menu-link {min-height:135px;}

		.ast-builder-menu-1 .menu-item > .sub-menu .menu-link {min-height:unset!important;}

		.sub-menu {
			padding: 0 30px 10px !important;
			border: 0 !important;
			width: 100%!important;
			gap: 0;  
			align-items: flex-start;
		}

		.smenu-img {
			flex: 0 0 auto;
			list-style: none;
			float: left;
		}

		.smenu-img> a.menu-link::before {
			z-index:-1!important;;
		}

		.smenu-img > a.menu-link {
			display: flex!important;
			justify-content: center!important; 
			align-items: center!important; 
			position: relative;
			width: 200px;  
			height: 160px; 
			padding: 0 !important;
			overflow: hidden;
			margin: 12px;
			background-color: #333333 !important;
		}


		.smenu-img > a.menu-link::before {
			content: "";
			position: absolute;
			top: 0; left: 0;
			width: 100%; height: 100%;
			background-size: cover;
			background-position: center;
			transition: transform 0.4s ease, opacity 0.3s ease;
			z-index: 1;
			opacity: 0.6;
		}

		.smenu-img > a.menu-link::before {
			content: "";
			position: absolute;
			top: 0; left: 0;
			width: 100%; height: 100%;
			background-image: var(--menu-bg, none); 
			background-size: cover;
			background-position: center;
			transition: transform 0.4s ease, opacity 0.3s ease;
			z-index: 1;
			opacity: 0.5;
		}

		.sub-menu > li:not(.smenu-img) {
			flex: 1;
			display: flex;
			flex-direction: column;
			min-width: 200px; 
			padding-left: 20px; 
		}

		.sub-menu > li:not(.smenu-img) a {
			padding: 15px 0 0 !important;
			border-bottom: 0;
			width: 100%;
			font-size:98%!important;
		}

		.smenu-img > a.menu-link .menu-text, 
		.smenu-img > a.menu-link {
			color: #ffffff !important;
			font-weight: 800;
			text-shadow: 2px 2px 4px rgba(0,0,0,0.4); 
			z-index: 2;
			text-align: center;
		}

		.smenu-img:hover > a.menu-link  {
			color: #9f5cc0 !important;
		}

		.smenu-img > a.menu-link:hover::before {
			transform: scale(1.1);
			opacity: 0.8;
		}
		.sub-menu a.menu-link {
			line-height:1.1!important;}


		/* Layout della voce .smenu-top */

		.smenu-top > a.menu-link {
			display: flex;
			flex-direction: row; 
			justify-content: flex-start; 
			align-items: center;
			text-transform: uppercase;
		}

		.smenu-top > a.menu-link::before {
			content: "\f0a8";
			font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome";
			color: #df1883;
			font-size: 24px;
			transition: transform 0.3s ease;
				margin-right:10px;
		}

		.smenu-top:hover > a.menu-link {
			color: #9f5cc0 !important;
		}

		.smenu-top:hover > a.menu-link::before {
			transform: translateX(-5px)!important;
				color:#9f5cc0!important;
		}

		.smenu-top .ast-icon {
			display: none !important;
		}
}

@media (max-width: 922px) {
	.smenu-top {display:none!important;}
}

/* ================================================================
   TITLE, TESTO E BOTTONI
   ================================================================ */

.h1-grad h1 {
  /* Definiamo il gradiente moderno (standard) */
  background: linear-gradient(-45deg, rgba(223, 24, 131, 1) 0%, rgba(159, 92, 192, 1) 67.67%, rgba(223, 24, 131, 1) 100%);
  
  /* Dimensioni maggiorate per permettere il movimento */
  background-size: 200% 200%;
  
  /* Clip del testo */
  -webkit-background-clip: text;
  background-clip: text;
  
  /* Rendiamo il testo trasparente per mostrare il background */
  color: transparent;
  -webkit-text-fill-color: transparent;
  
  /* Animazione */
  animation: gradientShift 5s ease infinite;
}

/* Definizione del movimento */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.vc_general {
	background-image:none!important;
	font-weight: 700!important;
	font-size: 1rem!important;
	text-transform: uppercase!important;
	letter-spacing: 1px!important;
	padding-top: 14px!important;
	padding-bottom: 14px!important;
	padding-left: 30px!important;
	padding-right: 30px!important;
	box-shadow: 0px 0px 0px 0px rgba(0,0,0,0.1)!important;
	border-radius:10px!important;
	text-decoration:none!important;
}



.vc_general:not(.btn-wdg .vc_general, .btn-down .vc_general):hover  {background: #aadb1e !important;}

.vc_icon_element.vc_icon_element-outer .vc_icon_element-inner {width: 2.5em!important;}

.btn-gre a:hover {
	background: #ffb600!important;
}

.btn-wdg button{
	text-transform: none!important;
	font-size: 140%!important;
	font-weight:800!important;
	padding-left: 60px!important;
	border-radius: 0!important;
}



.btn-down a {border:0!important;padding:0px!important;padding-left:50px!important;}
.btn-down a:hover {background:#f8f8f8!important;}
.btn-down .vc_btn3-icon {left:20px!important;}

address {font-style: inherit!important;}

.i-left {
	float: left!important;
	margin-right: 15px!important;
	margin-top: -10px!important;
}

ul li {
	line-height: 1.3;
	margin-bottom: 12px;
}

ul.li-space li {margin-bottom:30px;}
ul.li-space li:last-child {margin-bottom:0px;}

ul.li-space-s li {margin-bottom:10px;}
ul.li-space-s li:last-child {margin-bottom:0px;}

.fa-star {color:#ffb600!important;}

ul.ul-nopdt {margin-top:10px;}
ul.ul-nopdt li {margin-bottom:10px;}



/* ================================================================
   SIDEBAR SHORTCUTS 
   ================================================================ */

/* --- POSIZIONAMENTO SIDEBAR --- */
.shortcut-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999999;
}

.shortcut__list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* --- DESKTOP CON CLAMP (DINAMICO MA BLOCCATO) --- */
@media (min-width: 769px) {
    .shortcut__item {
        margin-bottom: 3px;
        /* Altezza e larghezza base: Min 60px, Ideale 3.5vw, Max 75px */
        width: clamp(60px, 3.5vw, 75px); 
        height: clamp(60px, 3.5vw, 75px);
        overflow: hidden;
        transition: width 0.3s ease-in-out;
        display: block;
        border-top-left-radius: 4px;
        border-bottom-left-radius: 4px;
    }

    /* LARGHEZZA IN HOVER: Min 220px, Ideale 12vw, Max 260px */
    .shortcut__item:hover {
        width: clamp(220px, 12vw, 260px); 
    }

    .shortcut__link {
        display: flex !important;
        width: 100%; /* Si adatta al contenitore clamp */
        height: 100%;
        align-items: center;
        text-decoration: none !important;
        color: #fff !important;
    }

    /* ICONE GOOGLE: Min 30px, Ideale 2vw, Max 40px */
    .material-symbols-rounded {
        font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 48;
        width: clamp(60px, 3.5vw, 75px);
        min-width: clamp(60px, 3.5vw, 75px);
        height: 100%;
        line-height: 1;
        text-align: center;
        font-size: clamp(30px, 2vw, 40px) !important; 
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    /* TESTO: Min 16px, Ideale 1vw, Max 20px */
    .shortcut__text {
        opacity: 0;
        transition: opacity 0.2s ease;
        white-space: nowrap;
        font-weight: 700;
        text-transform: uppercase;
        font-size: clamp(16px, 1vw, 20px); 
        padding-left: 10px;
    }

    .shortcut__item:hover .shortcut__text {
        opacity: 1;
    }
}

/* --- MOBILE (RESTA FISSO) --- */
@media (max-width: 768px) {
    .shortcut-sidebar { bottom: 0; top: auto; left: 0; right: 0; width: 100%; transform: none; background: transparent; }
    .shortcut__list { flex-direction: row; }
    .shortcut__item { flex: 1; height: 60px; margin-bottom: 0; }
    .shortcut__link { display: flex !important; justify-content: center; align-items: center; height: 100%; width: 100%; text-decoration: none !important; }
    .shortcut__text { display: none !important; }
    .material-symbols-rounded { 
        font-size: 30px !important; 
        color: #fff !important;
        font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 48;
    }
}

/* --- I TUOI COLORI --- */
.item-eventi   { background-color: #df1883; }
.item-dove     { background-color: #2ad2c9; }
.item-info     { background-color: #ff8f1c; }
.item-contatti { background-color: #ffb600; }
.item-meteo    { background-color: #aadb1e; }
.item-wifi     { background-color: #9f5cc0; }

.shortcut__item:hover { filter: brightness(1.1); }


/* ================================================================
  BLOCCHI HOME
  ================================================================ */

/* --- BOX BLU --- */
.box-home > .wpb_column:hover .vc_column-inner .grad-box-blu,
.box-home > .wpb_column:active .vc_column-inner .grad-box-blu {
  background: linear-gradient(180deg, rgba(42, 210, 201, 0) 20.03%, rgba(42, 210, 201, 1) 82.17%);
}

/* --- BOX FUCSIA --- */
.box-home > .wpb_column:hover .vc_column-inner .grad-box-fuc,
.box-home > .wpb_column:active .vc_column-inner .grad-box-fuc {
  background: linear-gradient(180deg, rgba(223, 24, 131, 0) 20.03%, rgba(223, 24, 131, 1) 82.17%);
}

/* --- BOX ARANCIO --- */
.box-home > .wpb_column:hover .vc_column-inner .grad-box-ora,
.box-home > .wpb_column:active .vc_column-inner .grad-box-ora {
  background: linear-gradient(180deg, rgba(255, 143, 28, 0) 20.03%, rgba(255, 143, 28, 1) 82.17%);
}

/* --- BOX GIALLO --- */
.box-home > .wpb_column:hover .vc_column-inner .grad-box-yel,
.box-home > .wpb_column:active .vc_column-inner .grad-box-yel {
  background: linear-gradient(180deg, rgba(255, 182, 0, 0) 20.03%, rgba(255, 182, 0, 1) 82.17%);
}

/* --- BOX VERDE --- */
.box-home > .wpb_column:hover .vc_column-inner .grad-box-gre,
.box-home > .wpb_column:active .vc_column-inner .grad-box-gre {
  background: linear-gradient(180deg, rgba(170, 219, 30, 0) 20.03%, rgba(170, 219, 30, 1) 82.17%);
}


/* HOVER SU LARGE BLOCK */
body .large-block:hover .c-block-ora .vc_column-inner {background-color:rgba(255, 143, 28, 1)!important;}
body .large-block:hover .c-block-blu .vc_column-inner {background-color:rgba(42, 210, 201, 1)!important;}
body .large-block:hover .c-block-fuc .vc_column-inner {background-color:rgba(223, 24, 131, 1)!important;}
body .large-block:hover .c-block-gre .vc_column-inner {background-color:rgba(170, 219, 30, 1)!important;}
body .large-block:hover .c-block-vio .vc_column-inner {background-color:rgba(159, 93, 192, 1)!important;}
body .large-block:hover .c-block-yel .vc_column-inner {background-color:rgba(255, 182, 0, 1)!important;}

.dsk-hide {display:none;}


/* ================================================================
  BLOCCO EVENTI
  ================================================================ */

.vs-pe-empty {background:transparent!important;}

.bg-half-grey {
	background-color: #ffffff; /* Colore di fallback */
	background-image: linear-gradient(
	  #ffffff 10%, 
	  #f8f8f8 10%
	);
	overflow:visible!important;
}

.bg-half-grey-inv {
	background-color: #ffffff; /* Colore di fallback */
	background-image: linear-gradient(
	  #ffffff 47%, 
	  #f8f8f8 47%
	);
	overflow:visible!important;
}

.simple-box-link:hover .wpb_single_image {opacity:0.75;}
.simple-box-link:hover .wpb_text_column h4 {color:#df1883;} 

.soc-onp .vc_icon_element-inner {height: 2.5em!important;}

/* ================================================================
   Iframe Flickr
  ================================================================ */

  .flickr-responsive-container {
    position: relative;
    width: 100%;
    padding-bottom: 66.66%; 
    height: 0;
    overflow: hidden;
  }

  .flickr-responsive-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

/* ================================================================
  SIDEBAR
  ================================================================ */


.widget_nav_menu ul {padding:0 25px;}

.widget_nav_menu ul li {line-height:1.2!important;margin-bottom:12px;}

.widget_nav_menu ul li a {
	font-weight:600;
	text-decoration:none!important;
}

.wpb_widgetised_column img {margin-bottom:35px;}


.wpb_widgetised_column .textwidget {padding:0 25px;}
.wpb_widgetised_column .textwidget a {
	font-weight:600;
	text-decoration:none!important;
}

.wpb_widgetised_column .custom-html-widget {padding:0;}


.wpb_widgetised_column  .menu {
	list-style-type:none;
	padding:0 25px 10px;
}

.wpb_widgetised_column  .menu li {font-weight:600;}

.wpb_widgetised_column  .menu li a {text-decoration:none;}

.social-sidebar {float:left;margin-top: -30px;}

.social-sidebar .vc_icon_element-icon {left: 5px!important;}

body .social-sidebar .vc_icon_element-icon:hover {color:#df1883!important;;}

/* ================================================================
  FOOTER
  ================================================================ */


footer {
  background: linear-gradient(-45deg, rgba(223, 24, 131, 1) 0%, rgba(159, 92, 192, 1) 50%, rgba(223, 24, 131, 1) 100%);
  background-size: 400% 400%;
  animation: gradientShiftSlow 25s ease-in-out infinite;
}

@keyframes gradientShiftSlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.ast-scroll-to-top-right {bottom: 50px!important;}

/* ================================================================
  TABLET E MOBILE
  ================================================================ */

@media (max-width: 768px) {
	
	.h20 {height: 40vw!important;}
	
	.vc_icon_element.vc_icon_element-outer .vc_icon_element-inner.vc_icon_element-size-lg .vc_icon_element-icon {
		font-size: 2em!important;
	}
	
	.vc_icon_element.vc_icon_element-outer .vc_icon_element-inner {
		height: 0;
	}
	
	body .box-home {
		padding-right: 3.5em !important;
		padding-left: 3.5em !important;
	}
	body .mob-pad > .vc_column_container > .vc_column-inner, body .large-block > .vc_row > .vc_column-inner {
		padding-right: 25px !important;
		padding-left: 25px !important;
	}
	body .box-m-pad {
		padding-right: 30px !important;
		padding-left: 30px !important;
	}
	
}

/* ================================================================
  MOBILE
  ================================================================ */

@media (max-width: 544px) {
	
	
	body .mob-pad > .vc_column_container > .vc_column-inner, body .box-home, body .large-block > .vc_row > .vc_column-inner {
		padding-right: 15px !important;
		padding-left: 15px !important;
	}
	
	
	body .large-block .vc_col-xs-6, body .box-home .vc_col-xs-6 {width:100%!important;}
	body .home-vid > .vc_column_container > .vc_column-inner {padding:0!important;}
	
	body .large-block > .vc_column_container > .vc_column-inner {padding:0!important;}
	
	.dsk-hide {display:block;}
	
}

/* ================================================================
  TEMPLATE EVENTI (template-eventi.php)
  Card full-image · filtri date range · toggle griglia/calendario
  ================================================================ */

#vs-eventi-page .entry-content,
#vs-eventi-page .ast-post-format-wrapper {
    padding: 0 !important;
    margin: 0 !important;
}

/* ── HERO ───────────────────────────────────────────────────────────────── */

.vs-ev-hero {
    position: relative;
    width: 100%;
    height: clamp(160px, 22vw, 300px);
    background: url('https://picsum.photos/seed/sondrio-eventi/1600/500') center/cover no-repeat; /* TODO Ivo: sostituire con foto definitiva */
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.vs-ev-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.18);
    z-index: 1;
}

.vs-ev-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: clamp(20px, 3.5vw, 44px);
}

.vs-ev-hero__title {
    color: #fff !important;
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
    -webkit-text-fill-color: #fff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    animation: none !important;
}

/* ── BARRA SUPERIORE (toggle + filtri) ──────────────────────────────────── */

.vs-ev-topbar {
    background: #f3f3f3;
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 0 10px;
}

.vs-ev-topbar__row1 {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.vs-ev-topbar__row2 {
    margin-top: 10px;
}

/* ── Toggle griglia / calendario ────────────────────────────────────────── */

.vs-ev-view-toggle {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.vs-ev-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1.5px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: #666 !important;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
    font-size: 20px;
    line-height: 1;
}

.vs-ev-view-btn:hover {
    border-color: #aadb1e;
    color: #6eb400 !important;
}

.vs-ev-view-btn.active {
    background: #aadb1e;
    border-color: #aadb1e;
    color: #fff !important;
}

/* ── Form filtri ────────────────────────────────────────────────────────── */

.vs-ev-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1 1 0;
}

.vs-ev-form__dates {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.vs-ev-form__dates .vs-ev-form__input {
    width: 140px;
}

.vs-ev-form__date-sep,
.vs-ev-form__sep {
    font-size: 0.82rem;
    color: #999;
    font-weight: 600;
    white-space: nowrap;
}

.vs-ev-form__field {
    display: flex;
}

.vs-ev-form__cat    { flex: 1 1 160px; }
.vs-ev-form__search { flex: 1 1 180px; }

.vs-ev-form__input {
    padding: 9px 12px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    font-size: 0.88rem;
    background: #fff;
    color: #333;
    box-sizing: border-box;
    appearance: auto;
    height: 38px;
}

.vs-ev-form__input:focus {
    outline: none;
    border-color: #aadb1e;
    box-shadow: 0 0 0 2px rgba(170,219,30,0.2);
}

.vs-ev-form__select {
    cursor: pointer;
    flex: 1 1 160px;
    max-width: 220px;
}

.vs-ev-form__actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vs-ev-form__btn {
    padding: 0 24px;
    height: 38px;
    background: #aadb1e;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

.vs-ev-form__btn:hover { background: #6eb400; }

.vs-ev-form__reset {
    font-size: 0.8rem;
    color: #999;
    text-decoration: underline;
    white-space: nowrap;
}

.vs-ev-form__reset:hover { color: #6eb400; }

/* ── Checkbox "Top evento" ───────────────────────────────────────────────── */

.vs-ev-top-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    user-select: none;
}

.vs-ev-top-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #aadb1e;
    cursor: pointer;
}

/* ── GRIGLIA ────────────────────────────────────────────────────────────── */

.vs-ev-topbar__inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 24px;
}

.vs-ev-main {
    padding-top: 36px;
    padding-bottom: 64px;
}

.vs-ev-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.vs-ev-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ── CARD FULL-IMAGE ────────────────────────────────────────────────────── */

.vs-ev-card {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    min-height: clamp(260px, 28vw, 380px);
    background-color: #222;
}

/* Background layer — zoom on hover via transform */
.vs-ev-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--ev-img);
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
    z-index: 0;
}

/* Placeholder gradient when no image */
.vs-ev-card:not([style])::before {
    background-image: none;
    background: linear-gradient(135deg, #6eb400 0%, #aadb1e 100%);
}

.vs-ev-card:hover::before { transform: scale(1.06); }

/* Link fills the whole card, gradient overlay, flexbox bottom-align */
.vs-ev-card__inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    position: absolute;
    inset: 0;
    z-index: 2;
    text-decoration: none !important;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.02) 0%,
        rgba(0,0,0,0.08) 40%,
        rgba(0,0,0,0.75) 100%
    );
}

/* ── Badge data (top right) ─────────────────────────────────────────────── */

.vs-ev-card__badge {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    background: #aadb1e;
    color: #fff;
    font-weight: 800;
    text-align: center;
    padding: 8px 12px;
    border-bottom-left-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 48px;
    line-height: 1.15;
}

.vs-ev-badge-day {
    font-size: 1.45rem;
    line-height: 1;
    display: block;
}

.vs-ev-badge-mon {
    font-size: 0.6rem;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    display: block;
}

.vs-ev-badge-yr {
    font-size: 0.58rem;
    opacity: 0.88;
    display: block;
}

/* Badge range (eventi multi-giorno) */
.vs-ev-card__badge--range {
    min-width: 60px;
    padding: 7px 10px;
    gap: 2px;
}

.vs-ev-badge-line {
    font-size: 0.6rem;
    letter-spacing: 0.3px;
    line-height: 1.35;
    display: block;
    white-space: nowrap;
}

.vs-ev-badge-sep {
    font-size: 0.55rem;
    opacity: 0.75;
    display: block;
    line-height: 1;
}

/* ── Testo in basso ─────────────────────────────────────────────────────── */

.vs-ev-card__body {
    padding: 14px 16px;
}

.vs-ev-card__cat {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    letter-spacing: 1.2px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.vs-ev-card__title {
    font-size: clamp(0.88rem, 1.15vw, 1rem) !important;
    font-weight: 800 !important;
    color: #fff !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── PAGINAZIONE ────────────────────────────────────────────────────────── */

.vs-ev-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.vs-ev-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #444;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.vs-ev-pagination .page-numbers:hover,
.vs-ev-pagination .page-numbers.current {
    background: #aadb1e;
    border-color: #aadb1e;
    color: #fff;
}

/* ── VUOTO ──────────────────────────────────────────────────────────────── */

.vs-ev-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.vs-ev-empty p { font-size: 1.05rem; margin-bottom: 16px; }
.vs-ev-empty a { color: #6eb400; font-weight: 600; text-decoration: underline; }

.vs-ev-luogo__empty { color: #666; font-style: italic; padding: 20px 0; }
.vs-ev-luogo__more  { color: #999; font-size: 0.9rem; margin-top: 12px; }

/* ── CALENDARIO ─────────────────────────────────────────────────────────── */

/* .vs-ev-cal-wrap removed — padding now on .vs-ev-main */

.vs-ev-cal {
    max-width: 900px;
    margin: 0 auto;
}

.vs-ev-cal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.vs-ev-cal__month-title {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: #222 !important;
    margin: 0 !important;
    text-transform: capitalize;
}

.vs-ev-cal__nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid #ddd;
    border-radius: 6px;
    color: #444;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.vs-ev-cal__nav:hover {
    background: #aadb1e;
    border-color: #aadb1e;
    color: #fff;
}

.vs-ev-cal__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.vs-ev-cal__dayname {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    padding: 6px 0 10px;
}

.vs-ev-cal__cell {
    min-height: 80px;
    border: 1px solid #ebebeb;
    border-radius: 4px;
    padding: 6px;
    background: #fff;
    vertical-align: top;
    position: relative;
}

.vs-ev-cal__cell--empty {
    background: transparent;
    border-color: transparent;
}

.vs-ev-cal__cell.is-today {
    border-color: #aadb1e;
    background: #f8ffe6;
}

.vs-ev-cal__cell.is-today .vs-ev-cal__day-num {
    background: #aadb1e;
    color: #fff;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.vs-ev-cal__day-num {
    font-size: 0.78rem;
    font-weight: 700;
    color: #333;
    display: block;
    margin-bottom: 4px;
}

.vs-ev-cal__ev-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vs-ev-cal__ev-list li a {
    display: block;
    font-size: 0.6rem;
    font-weight: 600;
    color: #fff;
    background: #aadb1e;
    border-radius: 3px;
    padding: 2px 5px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.vs-ev-cal__ev-list li a:hover {
    background: #6eb400;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
    .vs-ev-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
    .vs-ev-grid { grid-template-columns: repeat(2, 1fr); }
    .vs-ev-topbar__row1 { gap: 10px; }
    .vs-ev-form { gap: 8px; }
    .vs-ev-form__dates { flex-wrap: wrap; }
    .vs-ev-form__actions { flex-wrap: wrap; }
    .vs-ev-form__btn { width: 100%; justify-content: center; }
}

@media (max-width: 560px) {
    .vs-ev-hero { height: clamp(120px, 40vw, 180px); }
    .vs-ev-topbar__row1 { flex-direction: column; align-items: stretch; }
    .vs-ev-view-toggle { justify-content: flex-start; }
    .vs-ev-grid { grid-template-columns: 1fr; }
    .vs-ev-main { padding-top: 24px; padding-bottom: 40px; }
    .vs-ev-cal__cell { min-height: 52px; }
    .vs-ev-cal__ev-list li a { display: none; }
    .vs-ev-cal__cell.has-events::after {
        content: '';
        display: block;
        width: 6px; height: 6px;
        background: #aadb1e;
        border-radius: 50%;
        margin: 2px auto 0;
    }
}

/* ================================================================
  ARCHIVIO EVENTI
  (archive-evento.php)
  ================================================================ */

#vs-eventi-archive .entry-content,
#vs-eventi-archive .ast-post-format-wrapper {
    padding: 0 !important;
    margin: 0 !important;
}

/* ── HERO ───────────────────────────────────────────────────────────────── */

.vs-eventi-hero {
    position: relative;
    width: 100%;
    height: clamp(180px, 30vw, 380px);
    background: url('https://picsum.photos/seed/sondrio-eventi/1600/500') center/cover no-repeat; /* TODO Ivo: sostituire con foto definitiva */
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.vs-eventi-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 40%, rgba(0,0,0,0.35) 100%);
    z-index: 1;
}

.vs-eventi-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: clamp(20px, 4vw, 48px);
}

.vs-eventi-hero__title.pagename__title {
    color: #fff !important;
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
    -webkit-text-fill-color: #fff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    animation: none !important;
}

/* ── FILTRI ─────────────────────────────────────────────────────────────── */

.vs-eventi-filters-wrap {
    background: #f8f8f8;
    border-bottom: 1px solid #ececec;
    padding: 18px 0;
}

.vs-eventi-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.vs-eventi-form__field {
    flex: 1 1 200px;
}

.vs-eventi-form__search input[type="text"],
.vs-eventi-form__select select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #fff;
    color: #333;
    appearance: auto;
    box-sizing: border-box;
}

.vs-eventi-form__search input[type="text"]:focus,
.vs-eventi-form__select select:focus {
    outline: none;
    border-color: #9f5cc0;
    box-shadow: 0 0 0 2px rgba(159,92,192,0.15);
}

.vs-eventi-form__btn {
    flex: 0 0 auto;
    padding: 10px 24px;
    background: #df1883;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: background 0.2s;
}

.vs-eventi-form__btn:hover {
    background: #9f5cc0;
}

.vs-eventi-form__reset {
    flex: 0 0 auto;
    font-size: 0.85rem;
    color: #888;
    text-decoration: underline;
    white-space: nowrap;
}

.vs-eventi-form__reset:hover {
    color: #df1883;
}

/* ── GRIGLIA CARD ───────────────────────────────────────────────────────── */

.vs-eventi-grid {
    padding-top: 40px;
    padding-bottom: 60px;
}

.vs-eventi-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

/* ── CARD ───────────────────────────────────────────────────────────────── */

.vs-evento-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.25s, transform 0.25s;
    list-style: none;
}

.vs-evento-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.14);
    transform: translateY(-3px);
}

.vs-evento-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: inherit;
}

.vs-evento-card__img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #ececec;
    overflow: hidden;
    flex-shrink: 0;
}

.vs-evento-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.vs-evento-card:hover .vs-evento-card__img {
    transform: scale(1.05);
}

.vs-evento-card__img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0e6f6 0%, #fce4ef 100%);
}

.vs-evento-card__cat {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #df1883;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 3px 9px;
    border-radius: 4px;
    z-index: 1;
}

.vs-evento-card__body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.vs-evento-card__date {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9f5cc0;
    margin-bottom: 6px;
}

.vs-evento-card__title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin: 0 0 8px !important;
    color: #222 !important;
}

.vs-evento-card:hover .vs-evento-card__title {
    color: #df1883 !important;
}

.vs-evento-card__location {
    font-size: 0.82rem;
    color: #777;
    margin-bottom: 8px;
}

.vs-evento-card__excerpt {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.5;
    margin-top: auto;
    padding-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── PAGINAZIONE ────────────────────────────────────────────────────────── */

.vs-eventi-pagination {
    margin-top: 48px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
}

.vs-eventi-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #444;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.vs-eventi-pagination .page-numbers:hover,
.vs-eventi-pagination .page-numbers.current {
    background: #df1883;
    border-color: #df1883;
    color: #fff;
}

/* ── VUOTO ──────────────────────────────────────────────────────────────── */

.vs-eventi-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.vs-eventi-empty p {
    font-size: 1.05rem;
    margin-bottom: 16px;
}

.vs-eventi-empty a {
    color: #df1883;
    font-weight: 600;
    text-decoration: underline;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .vs-eventi-hero {
        height: clamp(140px, 45vw, 220px);
    }
    .vs-eventi-form {
        flex-direction: column;
        align-items: stretch;
    }
    .vs-eventi-form__field {
        flex: 1 1 100%;
    }
    .vs-eventi-form__btn,
    .vs-eventi-form__reset {
        width: 100%;
        text-align: center;
    }
    .vs-eventi-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .vs-eventi-grid {
        padding-top: 24px;
        padding-bottom: 40px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .vs-eventi-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================================================================
  SINGLE ESPERIENZA
  (single-esperienza.php)
  ================================================================ */

#vs-esperienza-single .entry-content,
#vs-esperienza-single .ast-post-format-wrapper {
    padding: 0 !important;
    margin: 0 !important;
}

/* ── HERO ───────────────────────────────────────────────────────────────── */

.vs-esp-hero {
    position: relative;
    width: 100%;
    height: clamp(220px, 38vw, 480px);
    background: linear-gradient(-45deg, #df1883 0%, #9f5cc0 60%, #2ad2c9 100%);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.vs-esp-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.vs-esp-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 30%, rgba(0,0,0,0.60) 100%);
    z-index: 1;
}

.vs-esp-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: clamp(24px, 4vw, 52px);
}

.vs-esp-hero__zone {
    display: inline-block;
    background: rgba(255,255,255,0.22);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.vs-esp-hero__title.pagename__title {
    color: #fff !important;
    font-size: clamp(1.8rem, 4.5vw, 3.2rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin: 0 0 8px !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    -webkit-text-fill-color: #fff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    animation: none !important;
}

.vs-esp-hero__dove {
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
    margin: 0;
}

/* ── CORPO (2 colonne) ───────────────────────────────────────────────────── */

.vs-esp-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 64px;
    align-items: start;
}

/* ── COLONNA PRINCIPALE ─────────────────────────────────────────────────── */

.vs-esp-content {
    margin-bottom: 32px;
    font-size: 1rem;
    line-height: 1.75;
    color: #333;
}

.vs-esp-section {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #ececec;
}

.vs-esp-section:last-child {
    border-bottom: none;
}

.vs-esp-section__title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #9f5cc0 !important;
    margin: 0 0 12px !important;
}

.vs-esp-section__body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #444;
}

.vs-esp-section__body p { margin-bottom: 0.75em; }
.vs-esp-section__body p:last-child { margin-bottom: 0; }

/* ── SIDEBAR ────────────────────────────────────────────────────────────── */

.vs-esp-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.vs-esp-widget {
    padding: 20px;
    background: #f8f8f8;
    border-radius: 10px;
    margin-bottom: 16px;
}

.vs-esp-widget__title {
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: #9f5cc0 !important;
    margin: 0 0 10px !important;
}

.vs-esp-widget__body {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #444;
}

.vs-esp-widget__body p { margin-bottom: 0.5em; }
.vs-esp-widget__body p:last-child { margin-bottom: 0; }
.vs-esp-widget__body a { color: #df1883; }

.vs-esp-map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #df1883 !important;
    text-decoration: none !important;
}

.vs-esp-map-link:hover { color: #9f5cc0 !important; }

.vs-esp-download-btn {
    display: block;
    text-align: center;
    padding: 10px 16px;
    background: #9f5cc0;
    color: #fff !important;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s;
}

.vs-esp-download-btn:hover { background: #df1883; }

.vs-esp-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vs-esp-social-link {
    padding: 5px 12px;
    border: 1.5px solid #ddd;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555 !important;
    text-decoration: none !important;
    transition: border-color 0.2s, color 0.2s;
}

.vs-esp-social-link:hover {
    border-color: #df1883;
    color: #df1883 !important;
}

/* ── CORRELATE ──────────────────────────────────────────────────────────── */

.vs-esp-correlate {
    background: #f8f8f8;
    padding: 48px 0;
}

.vs-esp-correlate__title {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: #222 !important;
    margin: 0 0 28px !important;
}

.vs-esp-correlate__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.vs-esp-correlate__card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    transition: box-shadow 0.2s, transform 0.2s;
}

.vs-esp-correlate__card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.13);
    transform: translateY(-2px);
}

.vs-esp-correlate__img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.vs-esp-correlate__img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #f0e6f6, #fce4ef);
}

.vs-esp-correlate__name {
    display: block;
    padding: 12px 14px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}

.vs-esp-correlate__card:hover .vs-esp-correlate__name {
    color: #df1883;
}

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .vs-esp-body {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 32px;
    }
    .vs-esp-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 16px;
    }
    .vs-esp-widget { margin-bottom: 0; }
}

@media (max-width: 600px) {
    .vs-esp-hero { height: clamp(180px, 55vw, 260px); }
    .vs-esp-sidebar { grid-template-columns: 1fr; }
    .vs-esp-correlate__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
  TEMPLATE SCOPRI — SEZIONE CON FILTRO ZONE
  (template-scopri.php — usato per /dintorni/, /citta/, ecc.)
  ================================================================ */

.vs-scopri-page .entry-content,
.vs-scopri-page .ast-post-format-wrapper {
    padding: 0 !important;
    margin: 0 !important;
}

/* ── HERO ───────────────────────────────────────────────────────────────── */

.vs-scopri-hero {
    position: relative;
    width: 100%;
    height: clamp(220px, 35vw, 420px);
    background-color: #335575;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-bottom: 0;
}

.vs-scopri-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.0) 30%,
        rgba(0,0,0,0.55) 100%
    );
    z-index: 1;
}

.vs-scopri-hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-bottom: clamp(20px, 4vw, 48px);
}

.vs-scopri-hero__title.pagename__title {
    color: #fff !important;
    font-size: clamp(2rem, 5vw, 3.5rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
    -webkit-text-fill-color: #fff !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    animation: none !important;
}

/* ── TESTO INTRODUTTIVO ─────────────────────────────────────────────────── */

.vs-scopri-intro {
    padding-top: 40px;
    padding-bottom: 32px;
}

.vs-scopri-intro__article .article__text {
    max-width: 820px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
}

.vs-scopri-intro__article .article__text p {
    margin-bottom: 1em;
}

.vs-scopri-intro__article .article__text p:last-child {
    margin-bottom: 0;
}

/* ── SEZIONE FILTRO ─────────────────────────────────────────────────────── */

.vs-scopri-filter-section {
    padding-top: 0;
    padding-bottom: 60px;
}

@media (max-width: 768px) {
    .vs-scopri-hero {
        height: clamp(160px, 50vw, 260px);
    }
    .vs-scopri-intro {
        padding-top: 24px;
        padding-bottom: 20px;
    }
    .vs-scopri-filter-section {
        padding-bottom: 40px;
    }
}

/* ================================================================
  SINGLE EVENTO
  (single-evento.php)
  ================================================================ */

#vs-evento-single .entry-content,
#vs-evento-single .ast-post-format-wrapper {
    padding: 0 !important;
    margin: 0 !important;
}

/* ── HERO ───────────────────────────────────────────────────────────────── */

.vs-ev-single-hero {
    position: relative;
    width: 100%;
    height: clamp(260px, 42vw, 560px);
    background: linear-gradient(-45deg, #df1883 0%, #9f5cc0 60%, #2ad2c9 100%);
    overflow: hidden;
}

.vs-ev-single-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.vs-ev-single-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.15);
    z-index: 1;
}

/* ── BREADCRUMB ─────────────────────────────────────────────────────────── */

.vs-ev-single-meta-bar {
    padding-top: 20px;
    padding-bottom: 0;
}

.vs-ev-single-breadcrumb {
    font-size: 0.82rem;
    color: #aaa;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.vs-ev-single-breadcrumb a {
    color: #888;
    text-decoration: none;
}
.vs-ev-single-breadcrumb a:hover { color: #df1883; }
.vs-ev-single-breadcrumb span:last-child {
    color: #555;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}

/* ── KICKER + TITOLO ────────────────────────────────────────────────────── */

.vs-ev-single-header {
    padding-top: 18px;
    padding-bottom: 6px;
}

.vs-ev-single-kicker {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.vs-ev-single-kicker__tipo { color: #df1883; }
.vs-ev-single-kicker__sep  { color: #ccc; }
.vs-ev-single-kicker__date { color: #555; }

.vs-ev-single-title {
    font-size: clamp(1.8rem, 4vw, 3rem) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    color: #1a1a1a !important;
    margin: 0 0 4px !important;
    -webkit-text-fill-color: #1a1a1a !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    animation: none !important;
}

/* ── CORPO (2 colonne) ───────────────────────────────────────────────────── */

.vs-ev-single-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    padding-top: 32px;
    padding-bottom: 72px;
    align-items: start;
}

/* ── COLONNA PRINCIPALE ──────────────────────────────────────────────────── */

.vs-ev-single-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 32px;
}

.vs-ev-single-content p { margin-bottom: 1em; }
.vs-ev-single-content p:last-child { margin-bottom: 0; }

/* Documenti */
.vs-ev-single-docs {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 2px solid #ececec;
}

.vs-ev-single-docs__title {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #9f5cc0 !important;
    margin: 0 0 14px !important;
}

.vs-ev-single-docs__list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.vs-ev-single-docs__list li { margin-bottom: 8px !important; }

.vs-ev-single-docs__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: #f4f4f4;
    border: 1.5px solid #e0e0e0;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333 !important;
    text-decoration: none !important;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.vs-ev-single-docs__link .material-symbols-rounded {
    font-size: 18px !important;
    font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
    width: auto !important;
    min-width: auto !important;
    height: auto !important;
    color: #9f5cc0;
    flex-shrink: 0;
}

.vs-ev-single-docs__link:hover {
    background: #9f5cc0;
    border-color: #9f5cc0;
    color: #fff !important;
}
.vs-ev-single-docs__link:hover .material-symbols-rounded { color: #fff; }

/* ── SIDEBAR ─────────────────────────────────────────────────────────────── */

.vs-ev-single-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Widget sidebar evento — sfondo verde lime per le intestazioni */
.vs-ev-widget {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,0.08);
}

.vs-ev-widget__head {
    background: #aadb1e;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 11px 18px;
}

.vs-ev-widget__body {
    background: #fff;
    padding: 16px 18px;
    font-size: 0.875rem;
    line-height: 1.65;
    color: #444;
}

/* Righe con icone Material Symbols (QUANDO) */
.vs-ev-widget__row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
}
.vs-ev-widget__row:last-child { margin-bottom: 0; }

.vs-ev-widget__icon {
    font-size: 20px !important;
    font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
    color: #aadb1e;
    width: 22px !important;
    min-width: 22px !important;
    height: auto !important;
    flex-shrink: 0;
    margin-top: 1px;
    line-height: 1.4 !important;
}

/* Mappa (DOVE) */
.vs-ev-widget__body--dove {
    padding: 0;
}

.vs-ev-widget__map {
    position: relative;
}

.vs-ev-widget__map iframe {
    display: block;
    width: 100%;
    height: 200px;
    border: 0;
}

.vs-ev-widget__map-link {
    display: block;
    font-size: 0.78rem;
    color: #9f5cc0 !important;
    text-decoration: none !important;
    font-weight: 600;
    padding: 6px 18px;
    background: #f8f8f8;
    border-bottom: 1px solid #eee;
}
.vs-ev-widget__map-link:hover { color: #df1883 !important; }

.vs-ev-widget__address {
    padding: 14px 18px;
    font-size: 0.875rem;
    line-height: 1.65;
    font-style: normal;
}
.vs-ev-widget__address strong a {
    color: #df1883 !important;
    text-decoration: none !important;
}
.vs-ev-widget__address strong a:hover { color: #9f5cc0 !important; }

/* Informazioni */
.vs-ev-widget__info-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.875rem;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}
.vs-ev-widget__info-row:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.vs-ev-widget__info-label { font-weight: 700; color: #555; white-space: nowrap; }

.vs-ev-widget__info-prezzo {
    font-size: 0.875rem;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.6;
}

.vs-ev-widget__tickets-btn {
    display: block;
    text-align: center;
    padding: 10px 16px;
    background: #df1883;
    color: #fff !important;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none !important;
    margin-bottom: 14px;
    transition: background 0.2s;
}
.vs-ev-widget__tickets-btn:hover { background: #9f5cc0; }

.vs-ev-widget__contact {
    font-size: 0.875rem;
    line-height: 1.75;
    padding-top: 10px;
    margin-top: 4px;
    border-top: 1px solid #f0f0f0;
}
.vs-ev-widget__contact a { color: #df1883 !important; text-decoration: none !important; }
.vs-ev-widget__contact a:hover { color: #9f5cc0 !important; }

.vs-ev-widget__extra {
    font-size: 0.82rem;
    color: #666;
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    margin-top: 12px;
    line-height: 1.6;
}

/* Condividi */
.vs-ev-share {
    display: flex;
    gap: 10px;
}

.vs-ev-share__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    text-decoration: none !important;
    transition: opacity 0.2s, transform 0.15s;
}
.vs-ev-share__btn:hover { opacity: 0.85; transform: scale(1.08); }
.vs-ev-share__btn--fb { background: #1877f2; color: #fff !important; }
.vs-ev-share__btn--tw { background: #1da1f2; color: #fff !important; }

/* ── RESPONSIVE ─────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
    .vs-ev-single-body {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 24px;
        padding-bottom: 48px;
    }
    .vs-ev-single-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .vs-ev-single-hero { height: clamp(200px, 55vw, 300px); }
    .vs-ev-single-title { font-size: clamp(1.5rem, 7vw, 2.2rem) !important; }
    .vs-ev-single-sidebar { grid-template-columns: 1fr; }
    .vs-ev-single-breadcrumb span:last-child { max-width: 180px; }
}

/* ================================================================
  SINGLE ESPERIENZA (single-esperienza.php)
  Struttura identica a single-evento; riusa .vs-ev-widget*
  ================================================================ */

#vs-esp-single .entry-content,
#vs-esp-single .ast-post-format-wrapper {
    padding: 0 !important;
    margin: 0 !important;
}

/* ── HERO ─────────────────────────────────────────────────────────────────── */

.vs-esp-hero {
    position: relative;
    width: 100%;
    height: clamp(220px, 30vw, 420px);
    background: linear-gradient(-45deg, #6eb400 0%, #aadb1e 60%, #6eb400 100%);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    overflow: hidden;
}

.vs-esp-hero--img .vs-esp-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.vs-esp-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.22);
}

/* ── BREADCRUMB ───────────────────────────────────────────────────────────── */

.vs-esp-meta-bar {
    padding-top: 14px;
    padding-bottom: 0;
}

.vs-esp-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.78rem;
    color: #888;
}

.vs-esp-breadcrumb a {
    color: #6eb400;
    text-decoration: none;
}

.vs-esp-breadcrumb a:hover { text-decoration: underline; }

.vs-esp-breadcrumb span[aria-hidden] { color: #ccc; }

/* ── TITOLO ───────────────────────────────────────────────────────────────── */

.vs-esp-header {
    padding-top: 16px;
    padding-bottom: 8px;
}

.vs-esp-title {
    font-size: clamp(1.8rem, 4vw, 3rem) !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    margin: 0 !important;
    color: #1a1a1a !important;
}

/* ── CORPO 2 colonne ──────────────────────────────────────────────────────── */

.vs-esp-body {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    padding-top: 32px;
    padding-bottom: 64px;
    align-items: start;
}

.vs-esp-body--full {
    grid-template-columns: 1fr;
}

.vs-esp-main {
    min-width: 0;
}

.vs-esp-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #333;
}

.vs-esp-content p  { margin-bottom: 1em; }
.vs-esp-content ul { padding-left: 1.4em; }
.vs-esp-content li { margin-bottom: 0.4em; }

/* ── Sidebar ──────────────────────────────────────────────────────────────── */

.vs-esp-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ── Widget body variants ─────────────────────────────────────────────────── */

.vs-ev-widget__body--links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6eb400;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 6px;
}

.vs-ev-widget__body--links a:hover { text-decoration: underline; }

/* ── Social page buttons ──────────────────────────────────────────────────── */

.vs-esp-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.vs-esp-social__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: opacity 0.2s;
}

.vs-esp-social__btn:hover { opacity: 0.85; }
.vs-esp-social__btn--fb { background: #1877f2; color: #fff; }
.vs-esp-social__btn--ig { background: #e1306c; color: #fff; }
.vs-esp-social__btn--yt { background: #ff0000; color: #fff; }

/* ── Esperienze correlate ─────────────────────────────────────────────────── */

.vs-esp-correlate {
    background: #f8f8f8;
    padding: 48px 0;
    margin-top: 32px;
}

.vs-esp-correlate__title {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    margin: 0 0 24px !important;
    color: #1a1a1a !important;
}

.vs-esp-correlate__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.vs-esp-correlate__card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    min-height: 160px;
    background-color: #222;
    background-image: var(--rel-img);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    text-decoration: none !important;
    transition: transform 0.3s;
}

.vs-esp-correlate__card--noimg {
    background: linear-gradient(135deg, #6eb400 0%, #aadb1e 100%);
}

.vs-esp-correlate__card:hover { transform: translateY(-3px); }

.vs-esp-correlate__name {
    display: block;
    width: 100%;
    padding: 10px 14px;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.2;
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
    .vs-esp-body {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .vs-esp-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .vs-esp-hero   { height: clamp(180px, 50vw, 280px); }
    .vs-esp-title  { font-size: clamp(1.5rem, 7vw, 2rem) !important; }
    .vs-esp-sidebar { grid-template-columns: 1fr; }
    .vs-esp-correlate__grid { grid-template-columns: repeat(2, 1fr); }
}

/* =================================================================
   WIDGET SEGNA IN AGENDA  [vs_segna_agenda]
   ================================================================= */

.vs-agenda {
    padding: 48px 0 56px;
}

.vs-agenda__title {
    font-family: 'Dancing Script', cursive !important;
    font-size: clamp(2.2rem, 4vw, 3.2rem) !important;
    font-weight: 700 !important;
    color: #3aaad4 !important;
    text-align: center !important;
    margin: 0 0 40px !important;
    line-height: 1.2 !important;
}

.vs-agenda__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* ── Card ─────────────────────────────────────────────────────── */

.vs-agenda__card {
    position: relative;
    display: block;
    min-height: 380px;
    border-radius: 6px;
    overflow: hidden;
    background: linear-gradient(135deg, #3aaad4 0%, #1a7a9a 100%);
    text-decoration: none !important;
}

.vs-agenda__card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--ag-img);
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.vs-agenda__card:hover::before {
    transform: scale(1.04);
}

/* overlay scuro gradiente in basso */
.vs-agenda__card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 35%, rgba(0,0,0,0.72) 100%);
    z-index: 1;
}

/* card senza immagine: overlay più leggero */
.vs-agenda__card--noimg::after {
    background: linear-gradient(135deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.4) 100%);
}

/* ── Badge data ───────────────────────────────────────────────── */

.vs-agenda__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    background: #aadb1e;
    color: #fff;
    text-align: center;
    padding: 8px 12px;
    border-radius: 4px;
    line-height: 1.15;
    min-width: 48px;
}

.vs-agenda__badge-day {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}

.vs-agenda__badge-mon {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.vs-agenda__badge-yr {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.85;
}

/* ── Testo in basso ───────────────────────────────────────────── */

.vs-agenda__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 20px 24px 24px;
    color: #fff;
}

.vs-agenda__cat {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
    opacity: 0.9;
}

.vs-agenda__ev-title {
    font-size: clamp(1.05rem, 1.8vw, 1.3rem) !important;
    font-weight: 700 !important;
    color: #fff !important;
    margin: 0 0 6px !important;
    line-height: 1.3 !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.vs-agenda__excerpt {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.88);
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Footer link ─────────────────────────────────────────────── */

.vs-agenda__footer {
    text-align: center;
    margin-top: 32px;
}

.vs-agenda__all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3aaad4 !important;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none !important;
    transition: gap 0.2s;
}

.vs-agenda__all-link:hover { gap: 10px; }

.vs-agenda__all-link .material-symbols-rounded {
    font-size: 20px;
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 640px) {
    .vs-agenda__grid { grid-template-columns: 1fr; }
    .vs-agenda__card { min-height: 300px; }
}














/* ── Link utili nella scheda evento ────────────────────────────────────────── */
.vs-ev-single-links {
    margin-top: 24px;
    padding-top: 24px;
}
