/*
 * Kubeitalia Theme — main.css v2.1 (Premium Redesign)
 *
 * Struttura:
 *  1. Variabili CSS + reset
 *  2. Tipografia + utility
 *  3. Header premium (glassmorphism + menu underline + hamburger animato)
 *  4. Overlay menu full-screen (gradient + stagger + numerazione)
 *  5. Hero parallax
 *  6. Content + sidebar
 *  7. Full-width page template (per Home/Hotel/Auto)
 *  8. Embed widget Travelpayouts (Bootstrap grid)
 *  9. Footer dark premium
 * 10. Responsive
 * 11. Utilities (print, a11y)
 */

/* ==========================================================================
   1. VARIABILI + RESET
   ========================================================================== */
:root {
	--k-primary:   #005DF2;
	--k-accent:    #FF6600;
	--k-bg:        #ffffff;
	--k-ink:       #0a0a0f;
	--k-muted:     #6b6b75;
	--k-line:      rgba(10, 10, 15, 0.08);
	--k-footer-bg: #0c0c0f;
	--k-footer-fg: #c7c7cc;

	--k-font-sans:  -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	--k-font-head:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

	--k-radius:     10px;
	--k-radius-sm:  6px;
	--k-header-h:   80px;

	--k-shadow-sm:  0 1px 2px rgba(10,10,15,.05);
	--k-shadow-md:  0 4px 20px rgba(10,10,15,.06);
	--k-shadow-lg:  0 10px 40px rgba(10,10,15,.10);

	--k-ease:       cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--k-header-h) + 8px);
	-webkit-text-size-adjust: 100%;
}
body {
	margin: 0;
	font-family: var(--k-font-sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--k-ink);
	background: var(--k-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;             /* clip non crea contesto di scroll come hidden */
}

body.menu-open { overflow: hidden; }

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--k-primary); text-decoration: none; transition: color .2s var(--k-ease); }
a:hover { color: var(--k-accent); }

button { font-family: inherit; cursor: pointer; }

/* ==========================================================================
   2. TIPOGRAFIA + UTILITY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--k-font-head);
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.15;
	margin: 0 0 1rem;
	color: var(--k-ink);
}
h1 { font-size: clamp(2rem, 4.2vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.container { max-width: 1440px; margin: 0 auto; padding: 0 1.5rem; }
.screen-reader-text {
	position: absolute !important;
	clip: rect(0,0,0,0);
	width: 1px; height: 1px;
	overflow: hidden;
	white-space: nowrap;
}
.skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	background: var(--k-ink);
	color: #fff;
	padding: .75rem 1rem;
	border-radius: var(--k-radius-sm);
	z-index: 10000;
	transition: top .2s;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Utility no-gutters per .row (Bootstrap 4-style) */
.row.no-gutters { margin-right: 0; margin-left: 0; }
.row.no-gutters > [class*="col-"],
.row.no-gutters > .col { padding-right: 0; padding-left: 0; }

/* ==========================================================================
   3. HEADER PREMIUM (glassmorphism sticky)
   ========================================================================== */
.site-header {
	position: sticky;
	top: 0;
	z-index: 800;
	background: rgba(255, 255, 255, 0.82);
	backdrop-filter: saturate(180%) blur(24px);
	-webkit-backdrop-filter: saturate(180%) blur(24px);
	border-bottom: 1px solid transparent;
	transition: background .3s var(--k-ease), border-color .3s var(--k-ease), box-shadow .3s var(--k-ease);
}
.site-header.is-scrolled {
	background: rgba(255, 255, 255, 0.96);
	border-bottom-color: var(--k-line);
	box-shadow: var(--k-shadow-sm);
}

.header-inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	min-height: var(--k-header-h);
}

/* Brand / logo */
.header-brand { display: flex; align-items: center; gap: 1rem; }
.site-branding,
.site-logo,
.site-branding a,
.site-logo a { display: flex; align-items: center; }
.site-branding img,
.site-logo img,
.custom-logo {
	height: 40px !important;
	width: auto !important;
	max-width: 200px;
	transition: transform .25s var(--k-ease);
}
.site-branding a:hover img,
.site-logo a:hover img { transform: scale(1.05); }

.site-title {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0;
	letter-spacing: -.02em;
}
.site-title a { color: inherit; }
.site-description { display: none; }

/* Navigation desktop */
.main-navigation { display: flex; align-items: center; gap: 1.5rem; }
.primary-menu {
	list-style: none;
	display: flex;
	gap: 2rem;
	margin: 0;
	padding: 0;
	align-items: center;
}
.primary-menu li { position: relative; }
.primary-menu > li > a {
	display: block;
	font-size: .9375rem;
	font-weight: 500;
	letter-spacing: -.01em;
	color: var(--k-ink);
	padding: .5rem 0;
	position: relative;
	transition: color .2s var(--k-ease);
}
.primary-menu > li > a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: var(--k-ink);
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .35s var(--k-ease);
}
.primary-menu > li > a:hover,
.primary-menu > li.current-menu-item > a { color: var(--k-primary); }
.primary-menu > li > a:hover::after,
.primary-menu > li.current-menu-item > a::after {
	transform: scaleX(1);
	transform-origin: left;
	background: currentColor;
}

/* Dropdown primary menu */
.primary-menu li .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	background: #fff;
	list-style: none;
	padding: .5rem 0;
	margin: 0;
	border-radius: var(--k-radius);
	box-shadow: var(--k-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all .25s var(--k-ease);
	z-index: 10;
}
.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.primary-menu .sub-menu a {
	display: block;
	padding: .6rem 1.25rem;
	color: var(--k-ink);
	font-size: .9rem;
}
.primary-menu .sub-menu a:hover { background: rgba(0,0,0,.04); color: var(--k-primary); }

/* Hamburger animated */
.menu-toggle {
	background: transparent;
	border: 0;
	width: 48px;
	height: 48px;
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 6px;
	padding: 0;
	border-radius: var(--k-radius-sm);
	transition: background .2s var(--k-ease);
	margin-left: auto;
}
.menu-toggle:hover { background: rgba(10,10,15,.05); }
.menu-toggle-bar {
	display: block;
	width: 26px;
	height: 2px;
	background: var(--k-ink);
	border-radius: 2px;
	transform-origin: center;
	transition: transform .35s var(--k-ease), opacity .2s var(--k-ease), background .2s var(--k-ease);
}
.menu-toggle.is-active .menu-toggle-bar:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}
.menu-toggle.is-active .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .menu-toggle-bar:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* Overlay desktop mode */
.site-header.use-overlay-desktop .main-navigation { display: none; }
.site-header.use-overlay-desktop .menu-toggle     { display: flex; }

/* Header top bar */
.header-top-bar {
	background: var(--k-ink);
	color: #eaeaef;
	font-size: .825rem;
	padding: .5rem 0;
}
.header-top-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.header-top-bar a { color: #fff; }

/* ==========================================================================
   4. OVERLAY MENU PREMIUM
   ========================================================================== */
.overlay-menu {
	position: fixed;
	inset: 0;
	z-index: 1000;
	background: #0a0a0f;
	opacity: 0;
	visibility: hidden;
	transition: opacity .45s var(--k-ease), visibility .45s var(--k-ease);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow-y: auto;
	overflow-x: hidden;
}
.overlay-menu::before,
.overlay-menu::after {
	content: '';
	position: absolute;
	width: 800px; height: 800px;
	border-radius: 50%;
	filter: blur(100px);
	pointer-events: none;
	z-index: 0;
	transition: transform 1s var(--k-ease);
}
.overlay-menu::before {
	top: -30%;
	right: -20%;
	background: radial-gradient(circle, rgba(255, 102, 0, .22) 0%, transparent 65%);
}
.overlay-menu::after {
	bottom: -30%;
	left: -20%;
	background: radial-gradient(circle, rgba(0, 93, 242, .25) 0%, transparent 65%);
}
.overlay-menu.is-open { opacity: 1; visibility: visible; }
.overlay-menu.is-open::before { transform: translate(-40px, 30px); }
.overlay-menu.is-open::after  { transform: translate(40px, -30px); }

.overlay-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1200px;
	padding: 6rem 2rem 3rem;
	transform: translateY(20px);
	opacity: 0;
	transition: transform .6s .1s var(--k-ease), opacity .6s .1s var(--k-ease);
}
.overlay-menu.is-open .overlay-inner { transform: translateY(0); opacity: 1; }

/* Close button */
.overlay-close {
	position: fixed;
	top: 1.5rem;
	right: 1.5rem;
	width: 52px;
	height: 52px;
	border: 0;
	background: rgba(255, 255, 255, .08);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	border-radius: 50%;
	color: #fff;
	font-size: 1.75rem;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all .3s var(--k-ease);
	z-index: 5;
}
.overlay-close:hover {
	background: rgba(255, 255, 255, .18);
	transform: rotate(90deg) scale(1.05);
}

/* Menu list big typography */
.overlay-menu-list {
	list-style: none;
	padding: 0;
	margin: 0;
	counter-reset: menuItem;
}
.overlay-menu-list > li {
	counter-increment: menuItem;
	opacity: 0;
	transform: translateX(-40px);
	transition: opacity .55s var(--k-ease), transform .55s var(--k-ease);
	transition-delay: calc(.28s + var(--i, 0) * .07s);
	padding-left: 4.5rem;
	position: relative;
}
.overlay-menu.is-open .overlay-menu-list > li {
	opacity: 1;
	transform: translateX(0);
}
.overlay-menu-list > li::before {
	content: "0" counter(menuItem);
	position: absolute;
	left: 0;
	top: 1.4rem;
	font-size: .875rem;
	font-weight: 500;
	color: rgba(255, 255, 255, .3);
	letter-spacing: .05em;
	font-variant-numeric: tabular-nums;
}
.overlay-menu-list > li > a {
	display: inline-block;
	font-family: var(--k-font-head);
	font-size: clamp(2rem, 6.5vw, 5rem);
	font-weight: 300;
	letter-spacing: -.04em;
	color: #fff;
	line-height: 1.05;
	padding: .55rem 0;
	transition: transform .35s var(--k-ease), color .25s var(--k-ease);
	position: relative;
}
.overlay-menu-list > li > a:hover,
.overlay-menu-list > li > a:focus {
	color: var(--k-accent);
	transform: translateX(14px);
}
.overlay-menu-list > li > a::after {
	content: '→';
	display: inline-block;
	margin-left: 1rem;
	opacity: 0;
	transform: translateX(-10px);
	transition: all .35s var(--k-ease);
	font-weight: 200;
}
.overlay-menu-list > li > a:hover::after,
.overlay-menu-list > li > a:focus::after {
	opacity: 1;
	transform: translateX(0);
}
/* Sub-menu overlay */
.overlay-menu-list .sub-menu {
	list-style: none;
	padding-left: 0;
	margin: .5rem 0 1rem;
}
.overlay-menu-list .sub-menu a {
	color: rgba(255, 255, 255, .65);
	font-size: 1.1rem;
	font-weight: 300;
	padding: .25rem 0;
	display: inline-block;
}
.overlay-menu-list .sub-menu a:hover { color: #fff; }

/* Overlay-widgets / social footer dentro overlay */
.overlay-widgets {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid rgba(255, 255, 255, .1);
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .6s .8s var(--k-ease), transform .6s .8s var(--k-ease);
}
.overlay-menu.is-open .overlay-widgets { opacity: 1; transform: translateY(0); }
.overlay-widgets .widget-title {
	color: rgba(255, 255, 255, .5);
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: .15em;
	text-transform: uppercase;
	margin-bottom: 1rem;
}
.overlay-widgets a { color: rgba(255, 255, 255, .8); }
.overlay-widgets a:hover { color: var(--k-accent); }

.overlay-social {
	display: flex;
	gap: .75rem;
	margin-top: 2rem;
}
.overlay-social a {
	width: 42px; height: 42px;
	border: 1px solid rgba(255, 255, 255, .15);
	border-radius: 50%;
	color: #fff;
	display: inline-flex; align-items: center; justify-content: center;
	transition: all .3s var(--k-ease);
}
.overlay-social a:hover {
	background: #fff; color: var(--k-ink); border-color: #fff;
	transform: translateY(-3px);
}

/* ==========================================================================
   5. HERO PARALLAX
   ========================================================================== */
.hero-parallax {
	position: relative;
	width: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	color: #fff;
	isolation: isolate;
}
.hero-parallax.is-parallax { background-attachment: fixed; }
.hero-parallax.hero-no-image {
	background: linear-gradient(135deg, var(--k-primary) 0%, #003eb3 60%, #0a0a0f 100%);
}

.hero-height-small      { min-height: 40vh; padding: 4rem 0; }
.hero-height-medium     { min-height: 60vh; padding: 5rem 0; }
.hero-height-large      { min-height: 80vh; padding: 6rem 0; }
.hero-height-fullscreen { min-height: calc(100vh - var(--k-header-h)); padding: 6rem 0; }

.hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.hero-content {
	position: relative;
	z-index: 2;
	max-width: 1000px;
	padding: 0 1.5rem;
}
.hero-align-left   .hero-content { text-align: left;   margin-right: auto; margin-left: 0; }
.hero-align-center .hero-content { text-align: center; margin-left: auto;  margin-right: auto; }
.hero-align-right  .hero-content { text-align: right;  margin-left: auto;  margin-right: 0; }

.hero-title {
	font-size: clamp(2.25rem, 6vw, 5rem);
	font-weight: 700;
	letter-spacing: -.03em;
	line-height: 1.05;
	margin-bottom: 1rem;
	color: inherit;
	text-shadow: 0 2px 20px rgba(0,0,0,.25);
}
.hero-subtitle {
	font-size: clamp(1rem, 1.6vw, 1.375rem);
	font-weight: 400;
	opacity: .95;
	margin-bottom: 2rem;
	max-width: 700px;
	text-shadow: 0 1px 10px rgba(0,0,0,.2);
}
.hero-align-center .hero-subtitle { margin-left: auto; margin-right: auto; }

.hero-cta.kb-btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: 1rem 2rem;
	background: var(--k-primary);
	color: #fff;
	border-radius: 999px;
	font-weight: 600;
	font-size: 1rem;
	box-shadow: 0 10px 30px rgba(0, 93, 242, .35);
	transition: all .3s var(--k-ease);
	text-decoration: none;
	border: 0;
}
.hero-cta.kb-btn:hover {
	background: var(--k-accent);
	transform: translateY(-2px);
	box-shadow: 0 14px 40px rgba(255, 102, 0, .4);
	color: #fff;
}

.hero-scroll {
	position: absolute;
	left: 50%;
	bottom: 1.75rem;
	transform: translateX(-50%);
	z-index: 3;
	width: 28px; height: 44px;
	border: 2px solid rgba(255,255,255,.7);
	border-radius: 14px;
	opacity: .85;
	transition: opacity .25s;
}
.hero-scroll:hover { opacity: 1; }
.hero-scroll span {
	position: absolute;
	left: 50%; top: 8px;
	transform: translateX(-50%);
	width: 4px; height: 8px;
	background: #fff;
	border-radius: 2px;
	animation: kb-hero-scroll 1.8s var(--k-ease) infinite;
}
@keyframes kb-hero-scroll {
	0%, 100% { top: 8px;  opacity: 1; }
	50%      { top: 24px; opacity: .3; }
}

/* ==========================================================================
   6. CONTENT
   ========================================================================== */
.site-content-wrapper { padding: 3rem 1.25rem; }
.layout-with-sidebar {
	display: grid;
	grid-template-columns: minmax(0,1fr) 320px;
	gap: 3rem;
}
.site-content { min-width: 0; }

.entry { margin-bottom: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--k-line); }
.entry:last-child { border-bottom: 0; }
.entry-title { font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
.entry-meta { color: var(--k-muted); font-size: .9rem; margin-bottom: 1rem; }
.entry-meta a { color: inherit; }
.post-thumbnail img { border-radius: var(--k-radius); margin-bottom: 1rem; }

.pagination, .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; margin: 2rem 0; }
.page-numbers {
	padding: .5rem .875rem;
	border: 1px solid var(--k-line);
	border-radius: var(--k-radius-sm);
	color: var(--k-ink);
}
.page-numbers.current {
	background: var(--k-primary);
	color: #fff;
	border-color: var(--k-primary);
}

/* Page widget zones */
.page-widget-zone { padding: 1.5rem 0; }

/* ==========================================================================
   7. FULL-WIDTH PAGE TEMPLATE
   ========================================================================== */
body.page-template-page-fullwidth,
body.page-template-page-home,
body.page-template-page-hotel,
body.page-template-page-auto {
	background: #fff;
	overflow-x: clip;
}
body.page-template-page-fullwidth .site-content-wrapper,
body.page-template-page-fullwidth .page-widget-zone,
body.page-template-page-fullwidth #secondary.widget-area,
body.page-template-page-home .site-content-wrapper,
body.page-template-page-home .page-widget-zone,
body.page-template-page-home #secondary.widget-area,
body.page-template-page-hotel .site-content-wrapper,
body.page-template-page-hotel .page-widget-zone,
body.page-template-page-hotel #secondary.widget-area,
body.page-template-page-auto .site-content-wrapper,
body.page-template-page-auto .page-widget-zone,
body.page-template-page-auto #secondary.widget-area { display: none !important; }

.kubeitalia-fullwidth-page {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	background: #fff;
}
.kubeitalia-fullwidth-content {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
}

/* ==========================================================================
   8. KB-VOLAROO PAGE — WIDGET FULLSCREEN SECTIONS
   ==========================================================================
   Ogni sezione è 100vh, con:
    - Sfondo gradient (hero / dark / light)
    - Card centrata con ombre e backdrop-blur
    - Fade-in on scroll (IntersectionObserver via data-k-anim)
   ========================================================================== */

.kb-volaroo-page {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	overflow-x: clip;
}

/* ---------- Sezione base ---------- */
.kb-widget-section {
	position: relative;
	width: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 6rem 1.5rem;
	box-sizing: border-box;
	isolation: isolate;

	/* Fade-in stato iniziale */
	opacity: 0;
	transform: translateY(40px);
	transition: opacity .9s var(--k-ease), transform .9s var(--k-ease);
}
.kb-widget-section.is-visible {
	opacity: 1;
	transform: translateY(0);
}
.kb-widget-section:first-child {
	min-height: calc(100vh - var(--k-header-h));
}

/* ---------- Hero section (form ricerca, con gradient + pattern) ---------- */
.kb-widget-section--hero {
	background:
		radial-gradient(ellipse at top left,  rgba(0,  93, 242, 0.10) 0%, transparent 55%),
		radial-gradient(ellipse at bottom right, rgba(255, 102,   0, 0.08) 0%, transparent 55%),
		linear-gradient(135deg, #f4f7fc 0%, #e8eefa 50%, #f4f7fc 100%);
}
.kb-widget-section--hero .kb-widget-section-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image:
		linear-gradient(rgba(10, 10, 15, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(10, 10, 15, 0.035) 1px, transparent 1px);
	background-size: 44px 44px;
	mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 75%);
}

/* Se c'è un'immagine hero caricata dal customizer, usala come sfondo della prima sezione */
.kb-widget-section--hero[data-bg] {
	background-image: var(--kb-hero-bg);
	background-size: cover;
	background-position: center;
}
.kb-widget-section--hero[data-bg]::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(255,255,255,.85) 0%, rgba(244,247,252,.95) 100%);
	z-index: 1;
}

/* ---------- Light section (white base + shadow separators) ---------- */
.kb-widget-section--light {
	background: linear-gradient(180deg, #fafbfd 0%, #ffffff 100%);
	align-items: flex-start;   /* widget alto: non centrare, lascia crescere dall'alto */
	padding-top: 5rem;
	padding-bottom: 5rem;
}
.kb-widget-section--light .kb-widget-frame--grid,
.kb-widget-section--light .kb-widget-frame--grid *,
.kb-widget-section--light .kb-widget-frame--grid > div,
.kb-widget-section--light .kb-widget-frame--grid > div > div {
	overflow: visible !important;
	height: auto !important;
	max-height: none !important;
}
.kb-widget-section--light .kb-widget-frame--grid {
	min-height: 580px;
}

/* ---------- Dark section (map, transfer) ---------- */
.kb-widget-section--dark {
	background:
		radial-gradient(ellipse at 15% 20%, rgba(0, 93, 242, 0.18) 0%, transparent 50%),
		radial-gradient(ellipse at 85% 80%, rgba(255, 102, 0, 0.12) 0%, transparent 50%),
		linear-gradient(135deg, #0a0a0f 0%, #0f1420 50%, #141b2e 100%);
	color: #fff;
}

/* ---------- Widget inner (card centrata) ---------- */
.kb-widget-inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
}

/* ---------- Widget frame (la card con ombra e blur) ---------- */
.kb-widget-frame {
	position: relative;
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border-radius: 20px;
	box-shadow:
		0 30px 80px -20px rgba(10, 10, 15, 0.18),
		0 12px 30px -8px rgba(10, 10, 15, 0.08),
		0 0 0 1px rgba(10, 10, 15, 0.04);
	padding: 2.5rem;
	box-sizing: border-box;
	transition: box-shadow .35s var(--k-ease);
}
.kb-widget-frame:hover {
	box-shadow:
		0 40px 100px -20px rgba(10, 10, 15, 0.25),
		0 16px 40px -10px rgba(10, 10, 15, 0.10),
		0 0 0 1px rgba(10, 10, 15, 0.06);
}

.kb-widget-frame--form  { padding: 2rem; }
.kb-widget-frame--grid  {
	padding: 3rem 2.5rem;
	overflow: visible !important;
	min-height: 600px;
}
.kb-widget-frame--map   { padding: 0; overflow: hidden; border-radius: 20px; }

/* Variante dark della card (per la sezione transfer) */
.kb-widget-frame--dark {
	background: rgba(255, 255, 255, 0.04);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border: 1px solid rgba(255, 255, 255, 0.1);
	box-shadow:
		0 30px 80px -20px rgba(0, 0, 0, 0.5),
		0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* ---------- Widget inner "full" (mappa o widget che si gestiscono da soli) ---------- */
.kb-widget-inner--full {
	max-width: 1600px;
}

/* ---------- Forza i widget iniettati dagli script tpemd al 100% ---------- */
.kb-widget-frame > script { display: none !important; }
.kb-widget-frame > div,
.kb-widget-frame > iframe,
.kb-widget-frame > [id^="tp-"],
.kb-widget-frame > [class*="tp-"],
.kb-widget-frame > [class*="trvl"] {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	box-sizing: border-box;
}
.kb-widget-frame iframe {
	display: block;
	border: 0;
	width: 100% !important;
	max-width: 100% !important;
}

/* Loading spinner (mentre gli script async caricano) */
.kb-widget-frame:has(> script:only-child)::before {
	content: '';
	display: block;
	width: 48px;
	height: 48px;
	margin: 60px auto;
	border: 3px solid rgba(0, 93, 242, 0.15);
	border-top-color: var(--k-primary);
	border-radius: 50%;
	animation: kb-spin 0.9s linear infinite;
}
.kb-widget-frame--dark:has(> script:only-child)::before {
	border-color: rgba(255, 255, 255, 0.15);
	border-top-color: #fff;
}
@keyframes kb-spin { to { transform: rotate(360deg); } }

/* Branding "Powered by travelpayouts" discreto */
.kb-widget-frame a[href*="travelpayouts"],
.kb-widget-frame [class*="powered"] {
	font-size: 11px !important;
	opacity: .5;
}

/* ---------- Scroll indicator (freccia ↓ tra sezioni) ---------- */
.kb-scroll-down {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 3;
	width: 32px;
	height: 50px;
	border: 2px solid currentColor;
	border-radius: 16px;
	opacity: .55;
	transition: opacity .25s, transform .3s;
	color: var(--k-ink);
}
.kb-widget-section--dark .kb-scroll-down,
.kb-widget-section--dark.kb-widget-section--map .kb-scroll-down { color: #fff; }
.kb-scroll-down:hover {
	opacity: 1;
	transform: translateX(-50%) translateY(4px);
}
.kb-scroll-down span {
	position: absolute;
	left: 50%;
	top: 10px;
	transform: translateX(-50%);
	width: 4px;
	height: 10px;
	background: currentColor;
	border-radius: 2px;
	animation: kb-hero-scroll 1.8s var(--k-ease) infinite;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.kb-widget-section { padding: 4rem 1.25rem; min-height: 80vh; }
	.kb-widget-section:first-child { min-height: calc(80vh - var(--k-header-h)); }
	.kb-widget-frame { padding: 1.75rem; border-radius: 16px; }
	.kb-widget-frame--grid { padding: 2rem 1.5rem; }
}
@media (max-width: 575px) {
	.kb-widget-section { padding: 3rem 1rem; min-height: auto; }
	.kb-widget-section:first-child { min-height: 85vh; }
	.kb-widget-frame { padding: 1.25rem; border-radius: 14px; }
	.kb-widget-frame--form { padding: 1rem; }
	.kb-scroll-down { bottom: 1rem; width: 28px; height: 44px; }
}

/* Legacy: lo shortcode [kubeitalia_embed] ancora wrappa in .kb-embed-section.
   Se qualcuno lo usa altrove, manteniamo uno stile base minimo. */
.kb-embed-section {
	width: 100%;
	padding: 2rem 1rem;
	background: #fff;
}
.kb-embed-section:nth-of-type(even) { background: #f7f8fa; }
.kubeitalia-embed {
	position: relative;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	min-height: 200px;
	padding: 1rem;
	box-sizing: border-box;
}
.kubeitalia-embed > script { display: none !important; }
.kubeitalia-embed > div,
.kubeitalia-embed > iframe {
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
}

/* ==========================================================================
   9. FOOTER DARK PREMIUM
   ========================================================================== */
.site-footer {
	background: var(--k-footer-bg);
	color: var(--k-footer-fg);
	padding: 5rem 0 0;
	position: relative;
	margin-top: 0;
}
.site-footer a { color: #a0a0a8; }
.site-footer a:hover { color: #fff; }

.footer-inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 0 2rem;
}

.footer-widgets {
	display: grid;
	grid-template-columns: 1.8fr 1fr 1fr 1.4fr;
	gap: 3rem;
	padding-bottom: 3.5rem;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.footer-col { min-width: 0; }
.footer-col .widget-title,
.footer-col h2,
.footer-col h3,
.footer-col h4 {
	color: #fff;
	font-size: .8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .12em;
	margin: 0 0 1.5rem;
}

.footer-col ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
.footer-col ul li { margin-bottom: .75rem; line-height: 1.4; }
.footer-col ul a {
	transition: color .2s, padding-left .2s;
	display: inline-block;
	position: relative;
}
.footer-col ul a:hover { padding-left: 4px; }

/* Pulisci eventuali border/hr indesiderati nel footer e nasconde widget vuoti */
.site-footer hr,
.site-footer .wp-block-separator { display: none; }
.site-footer .footer-col > nav:empty,
.site-footer .footer-col > .sidebar:empty,
.site-footer .footer-col > .widget:empty { display: none; }
.site-footer .footer-col .widget { margin-bottom: 1.25rem; }
.site-footer .footer-col .widget:last-child { margin-bottom: 0; }
.site-footer .footer-col .widget_search,
.site-footer .footer-col .widget_text,
.site-footer .footer-col .widget_nav_menu { border: 0 !important; padding: 0 !important; }
.site-footer *[style*="border-bottom"] { border-bottom-color: rgba(255,255,255,.08) !important; }
.site-footer .widget-title { border: 0; padding-bottom: 0; }

/* Brand column */
.footer-brand img,
.footer-brand .footer-logo img,
.footer-brand .custom-logo,
.footer-brand a img {
	max-width: 150px !important;
	width: auto !important;
	height: auto !important;
	max-height: 60px !important;
	margin-bottom: 1.25rem;
	filter: brightness(0) invert(1);
	opacity: .95;
	display: block;
}
.footer-brand .footer-tagline {
	font-size: .95rem;
	line-height: 1.65;
	max-width: 320px;
	margin-bottom: 1.5rem;
	color: #9a9aa3;
}
.footer-brand .footer-address {
	font-size: .875rem;
	line-height: 1.7;
	color: #9a9aa3;
	font-style: normal;
}
.footer-brand .footer-address strong { color: #e0e0e6; font-weight: 600; display: block; margin-bottom: .25rem; }

/* Social */
.social-icons,
.footer-social {
	display: flex;
	gap: .65rem;
	margin-top: 1.5rem;
}
.social-icons a,
.footer-social a {
	width: 40px;
	height: 40px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all .3s var(--k-ease);
	color: #d0d0d6;
	font-size: .95rem;
}
.social-icons a:hover,
.footer-social a:hover {
	background: #fff;
	color: var(--k-ink);
	border-color: #fff;
	transform: translateY(-2px);
}

/* Newsletter form */
.footer-col .newsletter-text {
	font-size: .9rem;
	color: #9a9aa3;
	margin-bottom: 1rem;
}
.footer-col input[type="email"],
.footer-col input[type="text"] {
	width: 100%;
	padding: .75rem 1rem;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: var(--k-radius-sm);
	color: #fff;
	font-size: .9rem;
	transition: border-color .25s;
	box-sizing: border-box;
}
.footer-col input[type="email"]::placeholder,
.footer-col input[type="text"]::placeholder { color: rgba(255, 255, 255, .4); }
.footer-col input[type="email"]:focus,
.footer-col input[type="text"]:focus { outline: 0; border-color: var(--k-primary); background: rgba(255, 255, 255, .1); }
.footer-col button[type="submit"],
.footer-col input[type="submit"] {
	margin-top: .5rem;
	width: 100%;
	padding: .75rem 1rem;
	background: var(--k-primary);
	color: #fff;
	border: 0;
	border-radius: var(--k-radius-sm);
	font-weight: 600;
	font-size: .9rem;
	cursor: pointer;
	transition: background .25s;
}
.footer-col button[type="submit"]:hover,
.footer-col input[type="submit"]:hover { background: var(--k-accent); }

/* Footer bottom bar */
.footer-bottom {
	padding: 1.75rem 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: .8125rem;
	color: #707076;
}
.footer-bottom p { margin: 0; }
.footer-bottom-menu {
	display: flex;
	gap: 1.75rem;
	list-style: none;
	padding: 0;
	margin: 0;
	flex-wrap: wrap;
}
.footer-bottom-menu a { color: #909096; font-size: .8125rem; }
.footer-bottom-menu a:hover { color: #fff; }

/* Pre-footer full-width widget area */
.prefooter-area {
	background: #14141a;
	color: #d6d6dc;
	padding: 3rem 0;
}
.prefooter-area .container { max-width: 1440px; }

/* ==========================================================================
   10. RESPONSIVE
   ========================================================================== */
@media (max-width: 991px) {
	.footer-widgets { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 767px) {
	.main-navigation { display: none; }
	.menu-toggle     { display: flex; }

	.header-inner { padding: 0 1rem; min-height: 68px; }
	:root { --k-header-h: 68px; }

	.site-branding img, .site-logo img, .custom-logo { height: 36px !important; }

	.site-content-wrapper { padding: 2rem 1rem; }
	.layout-with-sidebar { grid-template-columns: 1fr; gap: 2rem; }

	.hero-parallax.is-parallax { background-attachment: scroll; }
	.hero-height-fullscreen { min-height: calc(100vh - 68px); }

	.footer-widgets { grid-template-columns: 1fr; gap: 2rem; }
	.site-footer { padding-top: 3rem; }
	.footer-inner { padding: 0 1.25rem; }

	.footer-bottom { flex-direction: column; text-align: center; gap: .75rem; }
	.footer-bottom-menu { justify-content: center; }

	.overlay-inner { padding: 5rem 1.5rem 2rem; }
	.overlay-close { top: 1rem; right: 1rem; width: 44px; height: 44px; font-size: 1.5rem; }
	.overlay-menu-list > li { padding-left: 3rem; }
	.overlay-menu-list > li::before { font-size: .75rem; top: 1rem; }
}

/* ==========================================================================
   11. PRINT + A11Y
   ========================================================================== */
@media print {
	.site-header, .site-footer, .menu-toggle, .overlay-menu,
	.widget-area, .comments-area, .hero-parallax { display: none !important; }
	body { color: #000; background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
		scroll-behavior: auto !important;
	}
}
