/* ==========================================================================
   MyStreaming — main stylesheet
   ========================================================================== */

:root {
	--ms-green: #8dc63f;
	--ms-navy: #011627;
	--ms-mint: #e1efe6;
	--ms-white: #fdfffc;
	--ms-black: #02020b;
	--ms-gray: #777777;
	--ms-font: "Open Sans", Helvetica, Arial, sans-serif;
	--ms-head: "Oswald", "Arial Narrow", sans-serif;
	--ms-header-h: 110px;
	--ms-ease: cubic-bezier(.215, .61, .355, 1);
}

/* Base ------------------------------------------------------------------- */
html { scroll-behavior: smooth; }
body {
	font-family: var(--ms-font);
	font-size: 16px;
	line-height: 18px;
	font-weight: 400;
	color: var(--ms-navy);
	background: var(--ms-white);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
a { color: var(--ms-green); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--ms-navy); }
img { max-width: 100%; height: auto; }
p { margin: 0 0 30px; }
strong, b { font-weight: 600; }
.text-green { color: var(--ms-green); }
.bg-mint { background-color: var(--ms-mint); }
.bg-white { background-color: #fff; }

h1, h2, h3, h4, h5, h6 { color: var(--ms-navy); margin: 0 0 7px; letter-spacing: 0; }
h1 { font-family: var(--ms-head); text-transform: uppercase; font-size: 48px; line-height: 55px; font-weight: 400; }
h2 { font-family: var(--ms-head); text-transform: uppercase; font-size: 35px; line-height: 48px; font-weight: 300; }
h3 { font-family: var(--ms-head); text-transform: uppercase; font-size: 25px; line-height: 38px; font-weight: 300; }
h4 { font-family: var(--ms-font); text-transform: uppercase; font-size: 20px; line-height: 32px; font-weight: 400; }
h5 { font-family: var(--ms-head); text-transform: uppercase; font-size: 22px; line-height: 28px; font-weight: 400; }
h6 { font-family: var(--ms-head); text-transform: uppercase; font-size: 20px; line-height: 23px; font-weight: 400; }

.skip-link:focus { position: fixed; top: 10px; left: 10px; z-index: 100001; background: #fff; padding: 10px 16px; }

/* Container (stessa griglia del sito originale: 1425px con 90px di padding) */
.ms-container {
	width: 100%;
	max-width: 1425px;
	margin: 0 auto;
	padding: 0 90px;
}
.ms-container .row { --bs-gutter-x: 30px; }

.ms-section { padding: 50px 0; }
.section-heading { text-align: center; margin-bottom: 30px; }

/* Buttons ---------------------------------------------------------------- */
.ms-btn {
	display: inline-block;
	background: var(--ms-green);
	color: #fff;
	border: 0;
	border-radius: 5px;
	font-family: var(--ms-font);
	font-size: 14px;
	line-height: 20px;
	text-transform: uppercase;
	padding: 13px 28px;
	box-shadow: 0 0 0 rgba(0, 0, 0, 0);
	transition: box-shadow .35s var(--ms-ease), opacity .3s, transform .35s var(--ms-ease);
	cursor: pointer;
}
.ms-btn:hover, .ms-btn:focus { color: #fff; box-shadow: 0 20px 38px rgba(0, 0, 0, .16); transform: translateY(-2px); }
.ms-btn-jumbo { font-size: 18px; line-height: 20px; padding: 23px 50px; margin-top: 30px; }
.ms-btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); }
.ms-btn-ghost:hover, .ms-btn-ghost:focus { background: #fff; color: var(--ms-navy); box-shadow: inset 0 0 0 2px #fff, 0 18px 36px -12px rgba(0, 0, 0, .35); }

/* Pulsanti hero */
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.hero-actions .ms-btn { font-size: 15px; padding: 15px 30px; letter-spacing: .04em; }

/* Pulsante nel box Contattaci */
.cta-wrapper .cta-btn { margin-top: 28px; }
.cta-wrapper .go-contact:hover .cta-btn { transform: translateY(-2px); box-shadow: 0 18px 36px -12px rgba(141, 198, 63, .65); }

/* ==========================================================================
   Header
   ========================================================================== */
#header-outer {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 9998;
	background: var(--ms-white);
	box-shadow: 0 0 3px 0 rgba(0, 0, 0, .22);
	transition: background-color .4s ease, box-shadow .4s ease, transform .3s ease;
}
.admin-bar #header-outer { top: 32px; }
@media (max-width: 782px) { .admin-bar #header-outer { top: 46px; } }

#header-outer.is-transparent:not(.scrolled) { background: transparent; box-shadow: none; }

/* Pre top bar */
#pre-top-bar {
	font-size: 12px;
	line-height: 25px;
	overflow: hidden;
	max-height: 41px;
	transition: max-height .35s ease, opacity .3s ease;
}
#pre-top-bar .d-flex { padding: 8px 0; }
#pre-top-bar a { color: var(--ms-green); margin-right: 8px; }
#pre-top-bar a:hover { color: var(--ms-navy); }
#pre-top-bar i.fa { width: 18px; text-align: center; font-size: 14px; }
#header-outer.is-transparent:not(.scrolled) #pre-top-bar a { color: #fff; }
#header-outer.is-transparent:not(.scrolled) #pre-top-bar a:hover { color: var(--ms-green); }
#header-outer.scrolled #pre-top-bar { max-height: 0; opacity: 0; }
.social-link { list-style: none; margin: 0; padding: 0; display: flex; }
.social-link li a { margin: 0 !important; display: inline-block; width: 25px; text-align: center; }

/* Main header row */
header#top { padding: 30px 0; transition: padding .35s ease; }
#header-outer.scrolled header#top { padding: 12px 0; }

.site-logo { display: block; position: relative; line-height: 0; }
.site-logo img { height: 50px; width: auto; transition: height .35s ease, opacity .3s ease; }
#header-outer.scrolled .site-logo img { height: 44px; }
.site-logo .logo-light { position: absolute; left: 0; top: 0; opacity: 0; }
#header-outer.is-transparent:not(.scrolled) .site-logo .logo-dark { opacity: 0; }
#header-outer.is-transparent:not(.scrolled) .site-logo .logo-light { opacity: 1; }
.logo-text { font: 600 22px/50px var(--ms-font); color: var(--ms-navy); }

/* Nav */
.main-nav .sf-menu { list-style: none; display: flex; margin: 0; padding: 0; }
.main-nav .sf-menu > li { position: relative; }
.main-nav .sf-menu > li > a {
	display: block;
	position: relative;
	padding: 0 !important;
	margin: 0 10px;
	font-family: var(--ms-font);
	font-size: 14px;
	line-height: 22px;
	font-weight: 600;
	text-transform: uppercase;
	color: var(--ms-navy);
}
.main-nav .sf-menu > li > a::after {
	content: "";
	position: absolute;
	left: 0; bottom: -4px;
	width: 100%; height: 2px;
	background: var(--ms-green);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .3s var(--ms-ease);
}
.main-nav .sf-menu > li > a:hover::after,
.main-nav .sf-menu > li > a.active::after,
.main-nav .sf-menu > li.current-menu-item > a::after { transform: scaleX(1); }
#header-outer.is-transparent:not(.scrolled) .main-nav .sf-menu > li > a { color: #fff; }
#header-outer.is-transparent:not(.scrolled) .main-nav .sf-menu > li > a::after { background: #fff; }

/* Sub menu */
.main-nav .sf-menu ul {
	list-style: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 220px;
	margin: 0;
	padding: 18px 0 8px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all .25s ease;
}
.main-nav .sf-menu ul::before { content: ""; position: absolute; inset: 10px 0 0; background: #fff; box-shadow: 0 6px 28px rgba(0, 0, 0, .08); border-radius: 5px; z-index: -1; }
.main-nav .sf-menu li:hover > ul, .main-nav .sf-menu li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.main-nav .sf-menu ul a { display: block; padding: 8px 20px; color: var(--ms-navy); font-size: 13px; line-height: 18px; }
.main-nav .sf-menu ul a:hover { color: var(--ms-green); }

.search-btn {
	background: none; border: 0; padding: 0; margin-left: 22px;
	color: var(--ms-navy); line-height: 0; cursor: pointer;
}
.search-btn:hover { color: var(--ms-green); }
#header-outer.is-transparent:not(.scrolled) .search-btn { color: #fff; }

/* Mobile toggle */
.menu-toggle { background: none; border: 0; padding: 6px 0; margin-left: 18px; width: 22px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; width: 22px; background: var(--ms-navy); border-radius: 2px; transition: background .3s; }
#header-outer.is-transparent:not(.scrolled) .menu-toggle span { background: #fff; }

/* Search overlay */
#search-outer {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 100000;
	background: #fff;
	box-shadow: 0 0 30px rgba(0, 0, 0, .12);
	padding: 60px 0 50px;
	transform: translateY(-110%);
	transition: transform .55s var(--ms-ease);
}
body.search-open #search-outer { transform: none; }
#search-outer .ms-container { position: relative; }
#search-outer input[type=text] {
	width: 100%;
	border: 0;
	border-bottom: 2px solid rgba(0, 0, 0, .08);
	background: transparent;
	font-family: var(--ms-font);
	font-size: 48px;
	line-height: 64px;
	color: var(--ms-navy);
	padding: 0 0 10px;
	outline: none;
}
#search-outer input[type=text]:focus { border-color: var(--ms-green); }
#search-outer span { display: block; margin-top: 12px; font-size: 13px; color: var(--ms-gray); }
.search-close, .ms-close {
	position: absolute; right: 90px; top: -40px;
	width: 28px; height: 28px;
	background: none; border: 0; cursor: pointer;
}
.search-close span, .ms-close span {
	position: absolute; left: 0; top: 13px; width: 28px; height: 2px; background: var(--ms-navy); transition: transform .3s;
}
.search-close span:first-child, .ms-close span:first-child { transform: rotate(45deg); }
.search-close span:last-child, .ms-close span:last-child { transform: rotate(-45deg); }
.search-close:hover span, .ms-close:hover span { background: var(--ms-green); }

/* Off canvas (mobile) */
.ms-offcanvas.offcanvas { background: var(--ms-navy); color: #fff; width: 360px; max-width: 85vw; border: 0 !important; }
.ms-offcanvas .offcanvas-header { justify-content: flex-end; padding: 30px; }
.ms-offcanvas .ms-close { position: relative; right: auto; top: auto; }
.ms-offcanvas .ms-close span { background: #fff; }
.ms-offcanvas .offcanvas-body { padding: 20px 50px; }
.off-canvas-menu, .ms-offcanvas .navbar-nav { list-style: none; padding: 0; margin: 0; display: block; }
.off-canvas-menu li a, .ms-offcanvas .navbar-nav li a {
	display: block;
	font-family: var(--ms-font);
	font-size: 18px;
	line-height: 18px;
	font-weight: 600;
	text-transform: uppercase;
	color: #fff;
	padding: 14px 0;
}
.off-canvas-menu li a:hover, .off-canvas-menu li a.active, .ms-offcanvas .navbar-nav li a.active { color: var(--ms-green); }
.off-canvas-menu ul { list-style: none; padding-left: 15px; }
.off-canvas-menu ul a { font-size: 16px; font-weight: 400; text-transform: none; }
.offcanvas-backdrop.show { opacity: .5; }

/* Spazio sotto header fisso per le pagine senza hero */
body.no-hero #ajax-content-wrap { padding-top: calc(var(--ms-header-h) + 41px); }

/* ==========================================================================
   Home hero (video)
   ========================================================================== */
.home-hero {
	position: relative;
	height: 100vh;
	min-height: 500px;
	overflow: hidden;
	background: var(--ms-black);
}
.hero-media {
	position: absolute; inset: 0;
	background-size: cover;
	background-position: center;
}
.hero-video {
	position: absolute;
	top: 50%; left: 50%;
	min-width: 100%; min-height: 100%;
	width: auto; height: auto;
	transform: translate(-50%, -50%);
	object-fit: cover;
}
@supports (object-fit: cover) {
	.hero-video { width: 100%; height: 100%; }
}
/* Il poster è un'immagine vera (elemento LCP); il video compare sopra solo quando parte. */
.hero-poster {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
}
.hero-video { opacity: 0; transition: opacity .6s ease; }
.hero-video.is-playing { opacity: 1; }
.hero-content {
	position: absolute;
	left: 0; right: 0;
	bottom: 135px;
	text-align: center;
	z-index: 2;
	padding: 0 20px;
}
.home-hero .subheader {
	display: block;
	font-family: var(--ms-head);
	font-size: 30px;
	line-height: 38px;
	font-weight: 400;
	text-transform: uppercase;
	color: #fff;
	text-shadow: 3px 3px 1px rgba(2, 2, 11, .75);
}
.section-down-arrow {
	position: absolute;
	left: 50%; bottom: 30px;
	transform: translateX(-50%);
	z-index: 2;
}
.section-down-arrow .mouse {
	display: block;
	width: 22px; height: 38px;
	border: 2px solid #fff;
	border-radius: 15px;
	position: relative;
	opacity: .9;
}
.section-down-arrow .wheel {
	position: absolute;
	left: 50%; top: 7px;
	width: 3px; height: 7px;
	margin-left: -1.5px;
	background: #fff;
	border-radius: 3px;
	animation: ms-wheel 1.6s ease-in-out infinite;
}
@keyframes ms-wheel {
	0% { transform: translateY(0); opacity: 1; }
	70% { transform: translateY(10px); opacity: 0; }
	100% { transform: translateY(0); opacity: 0; }
}

/* ==========================================================================
   Home sections
   ========================================================================== */
.home-main .intro-section { padding: 80px 0 50px; }
.intro-col { padding-left: 15px; padding-right: 15px; }
.intro-col .entry-text { font-size: 17px; line-height: 27px; }
.entry-text, .maintext { font-size: 20px; line-height: 24px; }
.entry-text p:last-child { margin-bottom: 0; }

/* Cosa offriamo */
#main-service { padding: 50px 0 20px; }
.services-wrapper { width: 100%; padding-top: 40px; padding-bottom: 30px; }
.services-wrapper-inner.flex-wrapper { display: flex; width: 100%; max-width: 1200px; margin: auto; }
.flex-wrapper .service-item { flex: 1 1 25%; }
.service-item a { display: inline-block; width: 100%; height: 100%; text-align: center; color: var(--ms-navy); }
.service-item a:hover { color: var(--ms-navy); }
.service-item .img-box { height: 100px; width: 100px; border-radius: 50%; margin: auto; padding: 30px; }
.service-item img { width: 100%; height: 100%; object-fit: contain; display: block; }

#main-service .service-item .img-box {
	background-color: var(--ms-navy);
	height: 150px;
	width: 150px;
	display: flex;
	align-items: center;
	justify-content: center;
}
#main-service .service-item.card-item a {
	padding-top: 25px;
	padding-bottom: 25px;
	transition: all .6s ease-in-out;
}
#main-service .service-item.card-item a:hover { box-shadow: 2px 2px 10px rgba(0, 0, 0, .5); }
/* Icone: SVG inline (colore via fill) oppure <img> con filtro di fallback */
#main-service .img-box svg { width: 100%; height: 100%; fill: var(--ms-mint); transition: fill .6s ease; }
#main-service a:hover .img-box svg { fill: var(--ms-green); }
#main-service .img-box img { filter: brightness(0) invert(94%) sepia(6%) saturate(320%) hue-rotate(82deg); transition: filter .6s ease; }
#main-service a:hover .img-box img { filter: brightness(0) invert(72%) sepia(43%) saturate(746%) hue-rotate(42deg) brightness(96%); }
.flex-wrapper .service-item .text-wrap { padding: 25px 20px 30px; }
.flex-wrapper .service-item h3 { color: var(--ms-green); font-size: 28px; line-height: 34px; margin-bottom: 7px; }
.flex-wrapper .service-item p { font-size: 16px; line-height: 18px; margin: 0; }

/* Slider */
.my-home-slider-wrap { background: #000; line-height: 0; }
.my-home-slider { background-color: #000; }
.my-home-slider:not(.slick-initialized) { display: flex; overflow: hidden; }
.my-home-slider:not(.slick-initialized) .my-slide-item { flex: 0 0 33.333%; }
.my-slide-item img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.my-home-slider .slick-prev, .my-home-slider .slick-next {
	position: absolute; top: 50%; z-index: 3;
	width: 44px; height: 44px; margin-top: -22px;
	border: 0; border-radius: 50%;
	background: rgba(0, 0, 0, .35); color: #fff;
	font-size: 0; cursor: pointer; transition: background .3s;
}
.my-home-slider .slick-prev { left: 15px; }
.my-home-slider .slick-next { right: 15px; }
.my-home-slider .slick-prev::before, .my-home-slider .slick-next::before {
	font: normal 26px/44px FontAwesome; content: "\f104";
}
.my-home-slider .slick-next::before { content: "\f105"; }
.my-home-slider .slick-prev:hover, .my-home-slider .slick-next:hover { background: var(--ms-green); }

/* Griglia Servizi */
.other-service-full .services-wrapper { padding: 0; }
.services-wrapper-inner.grid-wrapper { display: flex; flex-wrap: wrap; }
.service-item.grid-item { flex: 1 1 25%; max-width: 25%; }
.grid-wrapper .service-item.grid-item a { padding: 15px 25px; }
.grid-item.service-item .img-box { height: auto; width: 100%; border-radius: 0; }
.grid-item.service-item img { margin-top: 20px; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .9s ease; }
.other-service-full .grid-item .text-wrap { padding-top: 0; }
.other-service-full .grid-item.service-item h3 { font-size: 18px; line-height: 20px; margin: 0 0 7px; color: var(--ms-navy); transition: color .3s; }
.other-service-full .grid-item p { margin: 0; font-size: 16px; line-height: 18px; }
.other-service-full .grid-wrapper .grid-item a,
.other-service-full .grid-wrapper .grid-item a:hover,
.other-service-full .grid-wrapper .grid-item a:hover h3 { color: var(--ms-navy); text-decoration: none; }

/* Valori */
.values-section { padding: 100px 0; }
.values-col { padding-left: calc(3% + 15px); padding-right: calc(3% + 15px); }
.values-section .entry-text p { margin-bottom: 24px; }

/* Punti di forza a riquadri */
.values-cards { padding: 80px 0; }
.values-cards .values-col { padding-left: 0; padding-right: 0; }
.value-card {
	height: 100%;
	padding: 34px 24px 30px;
	text-align: center;
	background: #fff;
	border: 1px solid rgba(1, 22, 39, .08);
	border-radius: 12px;
	transition: transform .4s ease, box-shadow .4s ease, border-color .4s ease;
}
.value-card:hover { transform: translateY(-4px); border-color: rgba(141, 198, 63, .5); box-shadow: 0 20px 40px -22px rgba(1, 22, 39, .35); }
.value-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 68px; height: 68px; margin-bottom: 20px;
	border-radius: 50%;
	background: var(--ms-navy);
	color: var(--ms-green);
	font-size: 28px;
	transition: background-color .4s ease, color .4s ease;
}
.value-card:hover .value-icon { background: var(--ms-green); color: #fff; }
.value-card h3 { font-family: var(--ms-head); font-size: 19px; line-height: 25px; font-weight: 400; text-transform: uppercase; color: var(--ms-navy); margin: 0 0 12px; }
.value-card p { margin: 0; font-size: 15px; line-height: 23px; color: #555; }
@media (max-width: 767px) { .values-cards { padding: 50px 0; } }

/* Clienti */
.clients-section { padding: 50px 0; }
.clients-carousel { margin: 50px 0; }
.clients-carousel:not(.slick-initialized) { display: flex; overflow: hidden; }
.clients-carousel:not(.slick-initialized) .carousel-item-logo { flex: 0 0 16.666%; }
.carousel-item-logo { padding: 0; text-align: center; }
.carousel-item-logo img { width: 100%; height: auto; display: block; margin: 0 auto; }

/* Blog home */
.blog-section { padding: 50px 0 50px; }
.blog-recent { margin: 0 -15px 0; }
.blog-recent-item { padding: 0 15px; text-align: center; margin-bottom: 30px; }
.blog-recent-item .thumb { display: block; overflow: hidden; margin-bottom: 15px; }
.blog-recent-item .thumb img { width: 100%; height: auto; aspect-ratio: 600 / 403; object-fit: cover; display: block; transition: transform .6s var(--ms-ease); }
.blog-recent-item .thumb:hover img { transform: scale(1.04); }
.thumb-placeholder { display: block; aspect-ratio: 600 / 403; background: var(--ms-mint); }
.blog-recent-item .title { font-family: var(--ms-head); font-size: 16px; line-height: 23px; font-weight: 300; text-transform: uppercase; margin: 0 0 6px; }
.blog-recent-item .title a { color: var(--ms-green); }
.blog-recent-item .title a:hover { color: var(--ms-navy); }
.blog-recent-item .meta-category { display: block; font-size: 12px; line-height: 18px; color: var(--ms-gray); margin-bottom: 12px; }
.blog-recent-item .meta-category a { color: var(--ms-gray); }
.blog-recent-item .meta-category a:hover { color: var(--ms-green); }
.blog-recent-item .excerpt { font-size: 16px; line-height: 18px; }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero {
	position: relative;
	height: 600px;
	background-size: cover;
	background-position: center;
}
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, .45) 0, rgba(0, 0, 0, 0) 40%); }

.container-wrap { padding-bottom: 60px; }
.main-content { padding-top: 30px; }
.breadcrumbs { font-size: 12px; line-height: 18px; color: var(--ms-navy); margin: 0 0 25px; }
.breadcrumbs a { color: var(--ms-green); }
.breadcrumbs .sep { color: var(--ms-navy); }
.page-title { margin-bottom: 30px; }

.entry-content { font-size: 16px; line-height: 26px; }
.entry-content h2 { margin: 30px 0 15px; }
.entry-content h3 { margin: 25px 0 12px; }
.entry-content ul, .entry-content ol { margin-bottom: 30px; }
.entry-content img { height: auto; }
.entry-content a { text-decoration: underline; text-decoration-color: rgba(141, 198, 63, .4); text-underline-offset: 3px; }
.entry-content blockquote { border-left: 3px solid var(--ms-green); padding: 10px 0 10px 25px; font-size: 20px; line-height: 30px; margin: 30px 0; }
.entry-content .alignwide { margin-left: -60px; margin-right: -60px; max-width: calc(100% + 120px); }
.entry-content .alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.entry-content .wp-block-button__link { background: var(--ms-green); border-radius: 5px; text-transform: uppercase; text-decoration: none; }
.entry-content input:not([type=checkbox]):not([type=radio]):not([type=submit]), .entry-content textarea { width: 100%; }

/* Single post */
.single-heading { padding: 60px 0 40px; }
.meta-tags { margin-bottom: 18px; }
.meta-tags a {
	display: inline-block;
	border: 2px solid var(--ms-navy);
	color: var(--ms-navy);
	font-size: 12px;
	line-height: 14px;
	text-transform: uppercase;
	padding: 4px 8px;
	margin: 0 3px 6px;
	border-radius: 3px;
	transition: all .3s;
}
.meta-tags a:hover { background: var(--ms-green); border-color: var(--ms-green); color: #fff; }
.single-heading .entry-title { font-size: 42px; line-height: 50px; max-width: 900px; margin: 0 auto 12px; }
.meta-date { font-size: 12px; color: var(--ms-gray); }
.single-body { max-width: 900px; margin: 0 auto; }
.single-thumb { margin: 0 0 40px; }
.single-thumb img { width: 100%; height: auto; display: block; }
.post-tags { font-size: 14px; margin: 30px 0; }
.post-nav { border-top: 1px solid rgba(0, 0, 0, .08); padding-top: 30px; margin-top: 40px; font-family: var(--ms-head); text-transform: uppercase; font-weight: 300; font-size: 18px; gap: 30px; }

/* Blog cards (archive) */
.archive-header { margin-bottom: 30px; }
.ms-cards { margin-bottom: 30px; }
.ms-card {
	position: relative;
	height: 100%;
	min-height: 360px;
	border-radius: 0;
	overflow: hidden;
	background: var(--ms-navy);
}
.ms-card.is-big { min-height: 500px; }
.ms-card-link { position: absolute; inset: 0; z-index: 3; }
.ms-card-img, .ms-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ms-card-img img { transition: transform .8s var(--ms-ease); }
.ms-card:hover .ms-card-img img { transform: scale(1.06); }
.ms-card-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, .15) 60%, rgba(0, 0, 0, .25) 100%); }
.ms-card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 30px; color: #fff; }
.ms-card .meta-category { display: block; font-size: 12px; line-height: 18px; text-transform: uppercase; margin-bottom: 10px; }
.ms-card .meta-category a { color: #fff; position: relative; z-index: 4; }
.ms-card .meta-category a:hover { color: var(--ms-green); }
.ms-card .title { color: #fff; font-size: 22px; line-height: 28px; margin: 0; }
.ms-card.is-big .title { font-size: 34px; line-height: 40px; }
.ms-card .excerpt { color: rgba(255, 255, 255, .85); margin: 12px 0 0; font-size: 15px; line-height: 22px; }

.ms-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.ms-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 5px; background: var(--ms-mint); color: var(--ms-navy); font-weight: 600; }
.ms-pagination .page-numbers.current, .ms-pagination a.page-numbers:hover { background: var(--ms-green); color: #fff; }

/* Servizi: pagina singola / archivio */
.solution-page { padding-bottom: 0; }
.solution-page .title-wrap { background: var(--ms-mint); padding-top: 50px; padding-bottom: 50px; margin-bottom: 50px; }
body.no-hero .solution-page .title-wrap { padding-top: 40px; }
.post-type-archive-servizio .solution-page .title-wrap { margin-bottom: 0; padding-bottom: 20px; }
.solution-page .title-wrap .page-title { margin-bottom: 10px; }
.solution-page .main-content { padding-bottom: 60px; }
.related-service, .other-service { padding: 30px 20px; }
.related-service { background: var(--ms-navy); }
.other-service { background: var(--ms-mint); }
.service-my-title { font-size: 27px; line-height: 32px; }
.related-service .service-my-title { color: var(--ms-white); }
.list-wrapper { padding: 0; margin: 0; }
.list-wrapper .list-item { list-style: none; margin-bottom: 5px; }
.service-item.list-item a { display: flex; align-items: center; text-align: left; padding: 5px; font-size: 13px; line-height: 18px; }
.service-item.list-item .img-box { flex: 0 0 50px; height: 50px; width: 50px; padding: 8px; background: var(--ms-navy); border-radius: 50%; margin: 0; }
.list-wrapper .list-item .text-wrap { margin-left: 10px; }
.list-wrapper .list-item h3 { font-size: 16px; line-height: 19px; margin: 0; transition: color .3s; }
.related-service .list-item h3 { color: var(--ms-green); }
.related-service .list-item a:hover h3 { color: var(--ms-mint); }
.other-service .list-item h3 { color: var(--ms-navy); }
.other-service .list-item a:hover h3 { color: var(--ms-green); }
.list-wrapper .list-item a img { transition: transform .9s ease; }
.list-wrapper .list-item a:hover img { transform: rotate(360deg); }
.related-service .list-item p { color: rgba(253, 255, 252, .75); margin: 4px 0 0; font-size: 13px; line-height: 18px; }
.related-service .list-item .text-wrap { margin-left: 0; }

/* Menu soluzioni (Project plan / Video production / Live streaming / Connettività) */
.solutions-menu { background: var(--ms-navy); }
.solutions-menu ul { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 0; list-style: none; }
.solutions-menu a { display: block; padding: 18px 30px; color: var(--ms-white); font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 1px; border-bottom: 3px solid transparent; transition: color .3s, border-color .3s; }
.solutions-menu a:hover, .solutions-menu a.active { color: var(--ms-green); border-bottom-color: var(--ms-green); }
.solution-page.layout-sub .title-wrap { text-align: center; }

/* Altri servizi (griglia sotto i servizi) */
/* Schede uniformi: area immagine 16:10 uguale per foto e icone, titolo sotto */
.other-service-full.service-row-wrapper .services-wrapper-inner.grid-wrapper { gap: 24px; max-width: 1200px; margin: 0 auto; }
.other-service-full.service-row-wrapper .grid-item.service-item { flex: 0 0 calc((100% - 96px) / 5); max-width: calc((100% - 96px) / 5); }
.other-service-full.service-row-wrapper .grid-wrapper .grid-item a {
	display: flex; flex-direction: column; height: 100%; padding: 0; text-decoration: none;
	background: #fff; border-radius: 10px; overflow: hidden; color: var(--ms-navy);
	box-shadow: 0 2px 10px rgba(1, 22, 39, .06);
	transition: transform .4s ease, box-shadow .4s ease;
}
.other-service-full.service-row-wrapper .grid-wrapper .grid-item a:hover { transform: translateY(-4px); box-shadow: 0 16px 32px -14px rgba(1, 22, 39, .35); color: var(--ms-navy); }
.other-service-full.service-row-wrapper .grid-item .img-box {
	width: 100%; height: auto; margin: 0; padding: 0; aspect-ratio: 16 / 10;
	border-radius: 0; box-shadow: none; overflow: hidden; background: var(--ms-navy);
}
.other-service-full.service-row-wrapper .grid-item .img-box::after { content: none; }
.other-service-full.service-row-wrapper .grid-item.service-item img { width: 100%; height: 100%; margin: 0; aspect-ratio: auto; object-fit: cover; transition: transform .8s ease; }
.other-service-full.service-row-wrapper .grid-item a:hover img { transform: scale(1.05); }
.other-service-full.service-row-wrapper .grid-item.has-icon .img-box { display: flex; align-items: center; justify-content: center; }
.other-service-full.service-row-wrapper .grid-item.has-icon img { width: 34%; height: auto; max-height: 60%; object-fit: contain; filter: brightness(0) invert(1); opacity: .9; }
.other-service-full.service-row-wrapper .grid-item.has-icon a:hover img { transform: scale(1.08); opacity: 1; }
.other-service-full.service-row-wrapper .grid-item .text-wrap { flex: 1; display: flex; align-items: center; justify-content: center; padding: 14px 12px 16px; text-align: center; }
.other-service-full.service-row-wrapper .grid-item.service-item h3 { display: block; margin: 0; font-size: 15px; line-height: 20px; color: var(--ms-navy); }
.other-service-full.service-row-wrapper .grid-item h3::after { content: none; }
.other-service-full.service-row-wrapper .grid-wrapper .grid-item a:hover h3 { color: var(--ms-navy); }

/* Contenuti importati (ex WPBakery) */
.entry-content .ms-row { margin-top: 10px; margin-bottom: 30px; }
.entry-content .subtitle { font-size: 22px; line-height: 32px; font-weight: 300; color: var(--ms-navy); }
.entry-content .maintext { font-size: 18px; line-height: 30px; }
.ms-milestone { text-align: center; padding: 20px 10px; }
.ms-milestone .number { display: block; font-family: 'Oswald', sans-serif; font-size: 62px; line-height: 1.1; color: var(--ms-green); }
.ms-milestone .subject { display: block; margin-top: 8px; font-size: 16px; text-transform: uppercase; letter-spacing: 1px; color: var(--ms-navy); }
.ms-iconbox { display: flex; gap: 20px; align-items: flex-start; margin: 0 0 25px; }
.ms-iconbox-icon { flex: 0 0 60px; text-align: center; }
.ms-iconbox-icon img { width: 60px; height: 60px; object-fit: contain; }
.ms-iconbox-icon .fa { font-size: 34px; color: var(--ms-green); line-height: 60px; }
.ms-iconbox-icon:empty { display: none; }
.ms-iconbox-text > :first-child { margin-top: 0; }
.ms-iconbox-text h3, .ms-iconbox-text h4 { margin: 0 0 6px; }
.ms-gallery { margin-bottom: 25px; }
.ms-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.ms-check-list { list-style: none; padding-left: 0; }
.ms-check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ms-check-list li::before { content: "\f00c"; font-family: FontAwesome; position: absolute; left: 0; top: 0; color: var(--ms-green); }
.ms-map { margin: 40px 0 0; }
.ms-map iframe { border: 0; }
.entry-content .ms-btn { text-decoration: none; }
@media (max-width: 991px) {
	.other-service-full.service-row-wrapper .grid-item.service-item { flex: 0 0 calc((100% - 48px) / 3); max-width: calc((100% - 48px) / 3); }
	.solutions-menu a { padding: 12px 15px; font-size: 14px; }
}
@media (max-width: 575px) {
	.other-service-full.service-row-wrapper .grid-item.service-item { flex: 0 0 calc((100% - 24px) / 2); max-width: calc((100% - 24px) / 2); }
	.other-service-full.service-row-wrapper .services-wrapper-inner.grid-wrapper { gap: 16px 24px; }
	.ms-map.ratio-21x9 { --bs-aspect-ratio: 75%; }
}

/* 404 */
.error-404 { padding: 80px 0; }
.error-404 h1 { font-size: 140px; line-height: 140px; color: var(--ms-green); }

/* Comments */
.comments-area { margin-top: 50px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .comment { padding: 20px 0; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.comment-list .children { list-style: none; padding-left: 40px; }
.comment-form input:not([type=checkbox]):not([type=submit]), .comment-form textarea { width: 100%; border: 2px solid rgba(0, 0, 0, .1); border-radius: 4px; padding: 10px 14px; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--ms-green); outline: none; }

/* Forms */
.form-control { border: 2px solid rgba(0, 0, 0, .1); border-radius: 4px; padding: 10px 14px; font-size: 15px; color: var(--ms-navy); }
.form-control:focus { border-color: var(--ms-green); box-shadow: none; }
.form-label { display: block; width: 100%; font-size: 14px; }
.form-label .form-control { margin-top: 6px; }
.form-check-input:checked { background-color: var(--ms-green); border-color: var(--ms-green); }
.ms-hp { position: absolute !important; left: -9999px !important; }
.ms-form-response { margin-top: 15px; font-size: 14px; line-height: 20px; }
.ms-form-response.is-ok { color: #46b450; border: 2px solid #46b450; padding: 10px 14px; }
.ms-form-response.is-error { color: #dc3232; border: 2px solid #ffb900; padding: 10px 14px; }
.ms-search-form .ms-btn { border-radius: 0 4px 4px 0; padding: 10px 18px; }
.ms-search-form .ms-btn:hover { transform: none; }

/* Modal contatti */
.ms-modal .modal-content { border: 0; border-radius: 0; box-shadow: 0 0 30px rgba(2, 2, 3, .3); }
.ms-modal .modal-dialog { max-width: 640px; }
.ms-modal .modal-header { border: 0; padding: 25px 30px 0; }
.ms-modal .modal-title { font-family: var(--ms-head); font-size: 32px; line-height: 36px; font-weight: 300; text-transform: uppercase; color: var(--ms-navy); }
.ms-modal .modal-body { padding: 20px 30px 30px; }
.ms-modal-close { margin-left: auto; background: none; border: 0; font-size: 34px; line-height: 1; color: var(--ms-navy); }
.ms-modal.modal { z-index: 100050; }
.modal-backdrop { z-index: 100040; }
.ms-offcanvas.offcanvas { z-index: 100030; }
.offcanvas-backdrop { z-index: 100020; }
.ms-modal-close:hover { color: var(--ms-green); }
.modal-backdrop.show { opacity: .7; }

/* ==========================================================================
   Footer
   ========================================================================== */
#footer-outer { background: var(--ms-navy); color: var(--ms-white); }
.cta-wrapper {
	background-color: var(--ms-mint);
	color: var(--ms-navy);
	text-align: center;
	padding: 0 30px;
	font-size: 20px;
	line-height: 25px;
}
.cta-wrapper .go-contact { display: block; color: var(--ms-navy); }
.cta-wrapper .cta-inner { max-width: 805px; margin: 0 auto; padding: 100px 0; }
.cta-wrapper h2 { transition: color .3s; margin-bottom: 7px; }
.cta-wrapper p { margin: 0; }
.cta-wrapper .go-contact:hover, .cta-wrapper .go-contact:hover h2 { color: var(--ms-green); }

#footer-widgets { padding: 70px 0 40px; }
#footer-widgets .widget { margin-bottom: 30px; }
#footer-widgets, #footer-widgets p, #footer-widgets a, #footer-widgets li { font-size: 14px; line-height: 18px; color: var(--ms-white); }
#footer-widgets .widget-title { font-family: var(--ms-font); font-size: 20px; line-height: 32px; font-weight: 400; text-transform: uppercase; color: var(--ms-green); margin-bottom: 15px; }
#footer-widgets p { margin-bottom: 18px; }
#footer-widgets i.fa { font-size: 16px; margin-right: 2px; }
#footer-widgets ul { list-style: none; padding: 0; margin: 0; }
#footer-widgets ul li { margin-bottom: 9px; }
#footer-widgets .widget_recent_entries a, #footer-widgets .widget_nav_menu a { font-weight: 600; }
#footer-outer a:hover { color: var(--ms-green) !important; }

#copyright { background: var(--ms-black); padding: 45px 0; color: var(--ms-gray); font-size: 14px; }
#copyright p { color: var(--ms-white); line-height: 22px; margin: 0 0 15px; }
#copyright .social { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 14px; }
#copyright .social a { display: inline-block; width: 30px; line-height: 30px; text-align: center; font-size: 18px; color: var(--ms-white); }

/* To top */
#to-top {
	position: fixed;
	right: 30px;
	bottom: 100px;
	z-index: 9994;
	width: 29px; height: 29px;
	line-height: 29px;
	text-align: center;
	border-radius: 2px;
	background: rgba(0, 0, 0, .25);
	color: #fff;
	font-size: 16px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: all .3s ease;
}
#to-top.show { opacity: 1; visibility: visible; transform: none; }
#to-top:hover { background: var(--ms-green); color: #fff; }

/* WhatsApp */
.wa-widget { position: fixed; right: 30px; bottom: 30px; z-index: 9995; font-family: var(--ms-font); }
.wa-btn { display: flex; align-items: center; background: none; border: 0; padding: 0; cursor: pointer; }
.wa-btn-txt {
	background: #fff;
	color: #4f4f4f;
	font-size: 12px;
	line-height: 17px;
	padding: 8px 12px;
	margin-right: 10px;
	border-radius: 2px;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .12);
	max-width: 160px;
	text-align: left;
}
.wa-btn-txt strong { font-weight: 400; }
.wa-btn-icon {
	width: 56px; height: 56px;
	border-radius: 50%;
	background: #2db742;
	color: #fff;
	font-size: 30px;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 6px 20px rgba(45, 183, 66, .35);
	transition: transform .3s;
}
.wa-btn:hover .wa-btn-icon { transform: scale(1.06); }
.wa-box {
	position: absolute;
	right: 0; bottom: 75px;
	width: 350px; max-width: calc(100vw - 40px);
	background: #fff;
	border-radius: 5px;
	overflow: hidden;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
	animation: ms-pop .3s ease;
}
@keyframes ms-pop { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: none; } }
.wa-heading { background: #2db742; color: #fff; padding: 20px 50px 20px 20px; position: relative; }
.wa-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.wa-intro { font-size: 12px; line-height: 17px; }
.wa-close { position: absolute; right: 14px; top: 10px; background: none; border: 0; color: #fff; font-size: 26px; }
.wa-content { padding: 15px 20px 20px; }
.wa-notice { font-size: 11px; color: #a5abb7; margin-bottom: 10px; }
.wa-gdpr { display: flex; gap: 8px; align-items: flex-start; background: #f5f7f9; border-radius: 3px; padding: 10px; font-size: 12px; line-height: 17px; color: #4f4f4f; margin-bottom: 12px; }
.wa-member { display: flex; align-items: center; gap: 12px; padding: 12px; border-left: 2px solid #2db742; background: #f5f7f9; border-radius: 3px; color: #4f4f4f; transition: opacity .3s; }
.wa-member.is-disabled { opacity: .5; pointer-events: none; }
.wa-member:hover { color: #4f4f4f; background: #eef2f5; }
.wa-avatar { width: 48px; height: 48px; border-radius: 50%; background: #2db742; color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; flex: 0 0 48px; }
.wa-name { display: block; font-size: 14px; font-weight: 600; }
.wa-role { display: block; font-size: 11px; color: #a5abb7; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1299px) {
	.ms-container { padding: 0 60px; }
	.search-close { right: 60px; }
}

@media (max-width: 999px) {
	:root { --ms-header-h: 75px; }
	.ms-container { padding: 0 40px; }
	.search-close { right: 40px; }
	header#top { padding: 20px 0; }
	#header-outer.scrolled header#top { padding: 12px 0; }
	.site-logo img, #header-outer.scrolled .site-logo img { height: 35px; }
	h1 { font-size: 36px; line-height: 41px; }
	h2 { font-size: 29.75px; line-height: 40.8px; }
	.home-hero .subheader { font-size: 22.5px; line-height: 27px; }
	.page-hero { height: 400px; }
	.services-wrapper-inner.flex-wrapper { flex-wrap: wrap; }
	.flex-wrapper .service-item { flex-basis: 50%; }
	.service-item.grid-item { flex-basis: 50%; max-width: 50%; }
	.cta-wrapper .cta-inner { padding: 60px 0; }
	#search-outer input[type=text] { font-size: 32px; line-height: 44px; }
	.single-heading .entry-title { font-size: 32px; line-height: 40px; }
	.entry-content .alignwide { margin-left: 0; margin-right: 0; max-width: 100%; }
}

@media (max-width: 767px) {
	#pre-top-bar .right_col { display: none; }
	#pre-top-bar .hidden-small { display: none; }
	#header-outer.is-transparent:not(.scrolled) #pre-top-bar a { color: var(--ms-green); }
	.wa-btn-txt { display: none; }
	.wa-widget { right: 20px; bottom: 20px; }
	#to-top { right: 33px; bottom: 90px; }
}

@media (max-width: 690px) {
	.ms-container { padding: 0 20px; }
	.search-close { right: 20px; }
	h1 { font-size: 31.2px; line-height: 35.75px; }
	h2 { font-size: 26.25px; line-height: 36px; }
	.entry-text, .maintext { font-size: 18px; line-height: 23px; }
	.intro-col, .values-col { padding-left: 15px; padding-right: 15px; }
	.intro-col .entry-text { font-size: 16px; line-height: 25px; }
	.values-section { padding: 60px 0; }
	.page-hero { height: 300px; }
	.ms-card, .ms-card.is-big { min-height: 320px; }
	.ms-card.is-big .title { font-size: 26px; line-height: 32px; }
}

@media (max-width: 575px) {
	.flex-wrapper .service-item { flex-basis: 100%; }
	.service-item.grid-item { flex-basis: 100%; max-width: 100%; }
	.hero-content { bottom: 110px; }
}
