/*
Theme Name: OceanWP Child Theme
Theme URI: https://oceanwp.org/
Description: OceanWP WordPress theme. Sample child theme.
Author: OceanWP
Author URI: https://oceanwp.org/
Template: oceanwp
Version: 1.0
*/


:root {
	--size: 390;
}
@media screen and (min-width: 1024px) {
	:root {
		--size: 1920;
	}
	
}


html {
  font-size: min(calc(10 * (100vw / var(--size))), 10.8px);

}

@media screen and (min-width: 1024px) {
	html {
		font-size: min(calc(10 * (1920px / var(--size))), calc(10 * (100vw / var(--size))));
	}
}

#transparent-header-wrap {
	z-index: 10000;
}

/* Parent stylesheet should be loaded from functions.php not using @import */

#commentform .comment-form-author > label,
#commentform .comment-form-email > label,
#commentform .comment-form-url > label,
#commentform .comment-textarea > label {
	display: block;
	margin: 0 0 6px;
	font-size: 13px;
	line-height: 1.35;
	font-weight: 600;
	color: #002C79;
}

#commentform .required {
	color: inherit;
}

#commentform .comment-form-author,
#commentform .comment-form-email,
#commentform .comment-form-url,
#commentform .comment-textarea {
	margin-bottom: 16px;
}

#commentform .comment-form-cookies-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

#commentform .comment-form-cookies-consent input[type="checkbox"] {
	margin: 3px 0 0;
	flex: 0 0 auto;
}

#commentform .comment-form-cookies-consent label {
	display: inline;
	margin: 0;
	font-size: 14px;
	line-height: 1.4;
	font-weight: 400;
}

/* === SVNTVNNV — Header trasparente -> blu scurissimo, senza barra bianca === */
/* :root { --sv-header-bg:#4393e4; 
--size: 390;} */

/* Stop ai placeholder sticky del tema */
/* .oceanwp-sticky-header-placeholder,
.owp-sticky-header-placeholder,
#site-header + .oceanwp-sticky-placeholder,
#site-header + .owp-sticky-placeholder { display:none !important; height:0 !important; } */

/* Header fisso e trasparente all’inizio */
#site-header, .site-header, header[role="banner"], .elementor-location-header{
  position:fixed !important;
  top:0; left:0; right:0;
  width:100%;
  background:transparent !important;
  z-index:9999 !important;
  transition:background-color .25s ease, box-shadow .25s ease;
  transform:translate3d(0,0,0);
  margin:0 !important;
}

/* blog */
.cat-list-wrapper {
	list-style: none;
    margin: 0;
    display: flex;
    gap: 1.5rem 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
    justify-content: flex-start;
    align-items: flex-start;
}
.cat-blog {
	padding: 1rem 2rem;
    border: 1px solid #4393e4;
    border-radius: 1.5rem;
    font-size: clamp(14px, 1.6rem, 16px);
}

.cat-blog--active {
	background: #4393e4;
}
.cat-blog--active a {
	color: #fff;
}
.blog-entry-title {
	font-size: clamp(25px,3.5rem,35px)!important;
}

@media screen and (max-width: 1023px) {
	.cat-list-wrapper {
		gap: 1rem 1rem;
	}
}
/* single post */
.ocean-single-post-header .single-post-title {
	font-size: clamp(60px, 8rem, 80px);
}

.single-post .single-post-header-wrap .sh-container {
	width: 100%;
}
.yoast-breadcrumbs-custom {
	margin: 1.5em 0;
	font-family: "Inter"!important;
	
   
    font-size: clamp(12px, 1.4rem, 14px);
	border-bottom: 1px solid #cecece;
    padding-bottom: 0.5rem;
	max-width: 138.6rem!important;
	margin-bottom: 4rem!important;
	background: rgba(0,0,0,0.05);
    display: inline-block!important;
	width: auto!important;
    border-radius: 1.5rem;
    padding: 1rem 2rem !important;
    border: 0;
}

.yoast-breadcrumbs-custom--light {
	background: rgba(255,255,255,1);
}

.single-post .yoast-breadcrumbs-custom {
	margin-left: 20px;
    margin-right: 20px;
	margin-bottom: 1rem!important;
}

.yoast-breadcrumbs-custom a {
	text-decoration: none!important;	
}


.ocean-single-post-header ul.meta-item li, .ocean-single-post-header ul.meta-item li a {
	font-size: clamp(14px, 1.8rem, 18px);
}

.single-post .entry-content h2 {
	font-size: clamp(55px, 6.5rem, 65px);
}

.single-post .entry-content h3 {
	font-size: clamp(35px, 4.5rem, 45px);
}
.single-post .entry-content h4 {
	font-size: clamp(25px, 2.5rem, 35px);
}

.single .related-post-title {
	font-size: clamp(25px, 2.5rem, 35px);
}

@media screen and (max-width: 480px) {
	.ocean-single-post-header .single-post-title {
		font-size: 50px;
	}
		.single-post .entry-content h2 {
		font-size: 40px;
	}

	.single-post .entry-content h3 {
		font-size: 30px;
	}
	.single-post .entry-content h4 {
		font-size: 20px;
	}
}


body {
	font-size: clamp(14px, 1.8rem, 18px);
	line-height: 1.4;
}
/* Sfondo blu quando si scrolla */
body.has-scrolled #site-header,
body.has-scrolled .site-header,
body.has-scrolled header[role="banner"],
body.has-scrolled .elementor-location-header{
  background-color: #4393e4 !important;
  box-shadow:0 8px 24px rgba(0,0,0,.25);
}

/* Riduci la spaziatura interna del menu (se serve) */
/* #site-header .container, #site-header .header-wrap,
.elementor-location-header .elementor-container, .elementor-location-header .elementor-section{
  padding-top:8px !important; padding-bottom:8px !important;
} */

/* Il primo blocco contenuto (hero) riceverà padding-top via JS con la variabile --sv-pad */
.sv-first-block-padding{ padding-top:var(--sv-pad, 80px) !important; }

/* Niente margini/padding extra in cima alla pagina (evita gap bianchi) */
html, body, #outer-wrap, #wrap, #content-wrap, #main{ margin-top:0 !important; padding-top:0 !important; }


/* Top hero */

@media (min-width: 450px) and (max-width: 767px) {
  .top-hero {
    min-height: 65rem;
  }
}

.sf-menu ul.sub-menu {
	left: 50%;
	transform: translateX(-50%);
}
.dropdown-menu .sub-menu {
	min-width: auto;
}
.dropdown-menu ul li a.menu-link {
	padding: 1.5rem 2rem;
}
#site-navigation-wrap .dropdown-menu>li>a { padding: 0 2.5rem}
#mobile-fullscreen #mobile-fullscreen-inner {
	padding: 0 2rem;
}
.dropdown-menu li .sub-menu li.menu-item {
	white-space: nowrap;
}

footer a {
	color: #ffffff;
}

footer a:hover {
	color: #002c79!important;
}

/* blog */
.page-header:not(.blog .page-header, .archive .page-header) {
  display: none;
}
.page-header-inner .page-header-title {
	font-size: 10rem!important;
	line-height: 1!important;
}
@media screen and (max-width: 1023px) {
	.page-header-inner .page-header-title {
		font-size: 6rem!important;
	}
}
.page-header-inner .page-subheading {
	color: #ffffff;
	font-size: clamp(16px, 2rem, 20px)!important;
}
.page-header {
	padding-top: 20rem!important;
	padding-bottom: 10rem!important;
	margin-bottom: 8rem;
}
.blog .container, .archive .container {
	width: 100%;
	max-width: 140rem;
}
.blog-grid {
	max-width: 140rem;
}
.oceanwp-pagination {
	margin-bottom: 8rem;
}

@media screen and (max-width: 1023px) {
	body {
		font-size: 1.4rem;
		line-height: 1.2;
	} 
	.blog .container, .category .container {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}

.page-header .page-header-title {
	font-size: 10rem;
	font-family: "Bebas Neue";
	font-weight: 400;
}
.blog-entry-inner img {
	object-fit: cover;
	aspect-ratio: 3/2;
}
.blog-post-author {
	display: none;
}
.blog-post-title {
	margin-top: 20rem;
}

.related-post-media img {
	object-fit: cover;
	aspect-ratio: 4/3;
}

/* START single post */
.single-post .entry-content {
	max-width: 1000px;
	margin-left: auto;
	margin-right: auto;
}
.single-post .entry-content h2, 
.single-post .entry-content h3,
.single-post .entry-content h4 {
	font-family: 'Bebas Neue';
	margin-top: clamp(30px, 4rem, 40px)!important;
	margin-bottom: clamp(20px, 3rem, 30px)!important;
	font-weight: 400;
}


.single-post h2 strong, .single-post h3 strong {
	font-weight: 400;
}
.single-post .entry-content .responsive-video-wrap iframe {
	padding: 0 20px;
}

.single-post .entry-content figure {
	padding: 0 20px;
}

.single-post .entry-content .wp-caption-text {
	display: none;
}

.single-header-ocean-3 {
	min-height: 70vh;
	display: flex;
	align-items: center;
	padding-top: 10rem;
}

/* Author Box */
.eeat-author-box-wrapper {
	padding: 0 20px;
	max-width: 1000px;
	margin: 40px auto;
	font-family: "Inter"!important;
}
.eeat-author-box {
	display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    background: rgba(0,0,0,0.05);
    padding: 5rem 4rem;
    border-radius: 1.5rem;
    /*border: 1px solid #eaeaea;*/
}

.eeat-author-avatar img {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
    display: block;
}

.eeat-author-info {
    flex: 1;
}

.eeat-author-name {
    margin: 0 0 10px 0;
    font-size: clamp(14px, 1.8rem, 18px);
    color: #333;
	
}

.eeat-author-name a {
    color: inherit;
    text-decoration: none;
    font-weight: bold;
}

.eeat-author-bio {
    font-size: clamp(12px, 1.4rem, 14px);
    line-height: 1.6;
    color: #555;
    margin-bottom: 1.5rem;
}

.eeat-author-socials {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.author-social-link {
    font-size: clamp(12px, 1.4rem, 14px);
    font-weight: 600;
    color: #4393e4;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.author-social-link:hover {
    color: #111;
    text-decoration: underline;
}

/* Versione Mobile */
@media (max-width: 768px) {
    .eeat-author-box {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 2rem;
    }
    
}
@media (max-width: 767px) {
    .single-post .sh-container {
        max-width: 360px;
    }
}


.single-post .entry-content .tiktok-embed {
	border: 1px solid #cecece;
	padding: 20px;
	margin-left: 20px!important;
	margin-right: 0!important;
}
@media screen and (max-width: 1023px) {
	.single-post .entry-content .tiktok-embed {
		margin-left: 0!important;
		border: 0!important;
	}
}

.single .entry-content .tiktok-embed iframe {
	
}
.single-post.content-max-width .entry-content blockquote {
	margin-left: 20px;
	margin-right: 0;
}
@media screen and (max-width: 1023px) {
	.single-header-ocean-3 {
		min-height: auto;
		padding-top: 20rem!important;
		padding-bottom: 10rem!important;
	}
}	
.single-header-ocean-3 .blog-post-title  {
	margin-top: 0;
}

.single .entry-content .button {
	font-size: clamp(12px, 1.6rem, 16px);
	line-height: 1.3;
	background: transparent;
}
.single .entry-content .button a {
	letter-spacing: 0;
}


.single-post.content-max-width #related-posts {
	max-width: 1000px;
	margin-top: 50px;
}

.single-post #comments {
	margin-top: 50px;
}
.single #related-posts .col {
	text-align: left;
}
.single .related-post-title {
	margin: 12px 12px 3px 0px;
}

#related-posts .related-posts-title .text::before {
	display: none!important;
}

/* END single post */
.elementor-post__title a {
	font-weight: 400!important;
}

/* Header WPML — versione a float (no flex) */
#site-header .oceanwp-child-header-wpml {
	float: right;
	position: relative;
	z-index: 11;
	height: 97px;
	display: flex;
	align-items: center;
	margin-inline-start: 0;
	margin-inline-end: 12px;
}

/* Desktop only: usa flex solo sull'header "default/transparent", mobile resta a float */
@media only screen and (min-width: 1025px) {
	#site-header:not(.top-header):not(.medium-header):not(.vertical-header):not(.center-header):not(.full_screen-header) #site-header-inner {
		display: flex;
		align-items: center;
	}

	#site-header:not(.top-header):not(.medium-header):not(.vertical-header):not(.center-header):not(.full_screen-header) #site-logo {
		float: none;
		order: 1;
		margin-right: auto;
	}

	#site-header:not(.top-header):not(.medium-header):not(.vertical-header):not(.center-header):not(.full_screen-header) #site-navigation-wrap,
	#site-header:not(.top-header):not(.medium-header):not(.vertical-header):not(.center-header):not(.full_screen-header) .oceanwp-social-menu,
	#site-header:not(.top-header):not(.medium-header):not(.vertical-header):not(.center-header):not(.full_screen-header) .oceanwp-child-header-wpml {
		float: none;
		right: auto;
	}

	#site-header:not(.top-header):not(.medium-header):not(.vertical-header):not(.center-header):not(.full_screen-header) #site-navigation-wrap {
		order: 2;
	}

	#site-header:not(.top-header):not(.medium-header):not(.vertical-header):not(.center-header):not(.full_screen-header) .oceanwp-social-menu {
		order: 3;
		margin-left: 12px;
	}

	#site-header:not(.top-header):not(.medium-header):not(.vertical-header):not(.center-header):not(.full_screen-header) .oceanwp-child-header-wpml {
		order: 4;
		height: auto;
		min-height: 74px;
		margin-inline-end: 0;
		margin-inline-start: 12px;
	}
}

#site-header .oceanwp-child-header-wpml .wpml-ls,
#site-header .oceanwp-child-header-wpml .wpml-ls-statics-shortcode_actions {
	padding: 0;
	margin: 0;
	border: none;
	background: transparent;
}

#site-header .oceanwp-child-header-wpml .wpml-ls-legacy-dropdown {
	width: auto;
}

#site-header .oceanwp-child-header-wpml .wpml-ls-legacy-dropdown a {
	background-color: transparent;
	border: 0;
	color: #fff;
	padding-top: 30px;
	padding-bottom: 30px;
}

#site-header .oceanwp-child-header-wpml .wpml-ls-link {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	padding: 6px 0 6px 10px;
	margin: 0;
	background-color: transparent !important;
	border: none !important;
	color: inherit;
	font-weight: 500;
	font-size: 13px;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	line-height: 1;
	box-shadow: none !important;
}

#site-header .oceanwp-child-header-wpml .wpml-ls-current-language > .wpml-ls-link,
#site-header .oceanwp-child-header-wpml .wpml-ls-link:hover,
#site-header .oceanwp-child-header-wpml .wpml-ls-link:focus {
	background-color: transparent !important;
	color: inherit !important;
}

#site-header .oceanwp-child-header-wpml .wpml-ls-slot-shortcode_actions {
	background: transparent;
	border: none;
}

/* Dropdown tipo secondo screenshot — testo chiaro su header, elenco più scuro */
#site-header .oceanwp-child-header-wpml .wpml-ls-sub-menu {
	border: none;
	border-radius: 2px;
	margin-top: 4px !important;
	padding: 6px 0;
	min-width: 3.25em;
	background: rgba(0, 42, 90, 0.96);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	top: 80%;
}

#site-header .oceanwp-child-header-wpml .wpml-ls-sub-menu .wpml-ls-link {
	padding: 8px 14px !important;
	color: rgba(255, 255, 255, 0.95) !important;
	justify-content: center;
	width: 100%;
}

#site-header .oceanwp-child-header-wpml .wpml-ls-sub-menu .wpml-ls-link:hover,
#site-header .oceanwp-child-header-wpml .wpml-ls-sub-menu .wpml-ls-link:focus {
	background: rgba(255, 255, 255, 0.1) !important;
	color: #fff !important;
}

#site-header.is-transparent .oceanwp-child-header-wpml .wpml-ls-link {
	color: #fff;
}

#site-header.is-transparent .oceanwp-child-header-wpml .wpml-ls-item-toggle::after {
	border-top-color: #fff;
}

/* 0-1024: stesso comportamento del range 1024-1280 (WPML a sinistra dell'hamburger) */
@media only screen and (max-width: 1024px) {
	body.default-breakpoint #site-header #site-header-inner {
		display: flex;
		align-items: center;
	}

	body.default-breakpoint #site-header .oceanwp-child-header-wpml {
		order: 98;
		float: none;
		margin-left: auto;
		margin-right: 0;
		height: auto;
		min-height: 74px;
	}

	body.default-breakpoint #site-header .oceanwp-mobile-menu-icon.mobile-left,
	body.default-breakpoint #site-header .oceanwp-mobile-menu-icon.mobile-right {
		order: 99;
		float: none !important;
		clear: none;
		margin-left: 8px;
	}

	body.default-breakpoint #site-header .oceanwp-mobile-menu-icon.mobile-left a,
	body.default-breakpoint #site-header .oceanwp-mobile-menu-icon.mobile-right a {
		padding-left: 8px;
	}
}

/* Range intermedio: forza allineamento a destra di WPML + hamburger */
@media only screen and (min-width: 1024px) and (max-width: 1280px) {
	#site-header #site-header-inner {
		display: flex;
		align-items: center;
	}

	#site-header #site-logo {
		order: 1;
	}

	#site-header #site-navigation-wrap {
		order: 2;
	}

	#site-header .oceanwp-social-menu {
		order: 3;
	}

	#site-header .oceanwp-child-header-wpml {
		order: 98;
		float: none;
		margin-left: auto;
		margin-right: 0;
		height: auto;
		min-height: 74px;
	}

	#site-header .oceanwp-mobile-menu-icon.mobile-left,
	#site-header .oceanwp-mobile-menu-icon.mobile-right {
		order: 99;
		float: none !important;
		clear: none;
		margin-left: 8px;
	}

	#site-header .oceanwp-mobile-menu-icon.mobile-left a,
	#site-header .oceanwp-mobile-menu-icon.mobile-right a {
		padding-left: 8px;
	}
}

/* FIX FINALE <=1280: WPML a sinistra dell'hamburger, con hamburger a destra */
@media only screen and (max-width: 1280px) {
	#site-header #site-header-inner {
		display: flex !important;
		align-items: center;
	}

	#site-header .oceanwp-child-header-wpml {
		order: 98 !important;
		float: none !important;
		margin-left: auto !important;
		margin-right: 0 !important;
		height: auto;
		min-height: 74px;
	}

	#site-header .oceanwp-mobile-menu-icon.mobile-left,
	#site-header .oceanwp-mobile-menu-icon.mobile-right {
		order: 99 !important;
		float: none !important;
		clear: none !important;
		margin-left: 8px !important;
	}

	#site-header .oceanwp-mobile-menu-icon.mobile-left a,
	#site-header .oceanwp-mobile-menu-icon.mobile-right a {
		padding-left: 8px !important;
	}
}


/* 404 page */
.error404 .container {
	width: 100%;
	max-width: 100%;
	padding-bottom: 0!important;
}
.error404 .content-area {
	margin-bottom: 0!important;
}