/**
 * Ottimizzazioni laptop compatto — MacBook 13" e simili (~1280×800).
 * Fascia: 992px–1280px (desktop stretto, sopra il breakpoint mobile 991px).
 * Caricato dopo ploomia-style; non sostituisce le regole componente sotto 992px.
 */

:root {
	--ploomia-laptop-section-x: clamp(1.25rem, 2.5vw, 2rem);
	--ploomia-laptop-h2-size: clamp(1.75rem, 3.2vw, 2.25rem);
	--ploomia-laptop-h2-line-height: 1.1;
	--ploomia-laptop-h3-size: clamp(1.375rem, 2.5vw, 1.75rem);
	--ploomia-laptop-h3-line-height: 1.15;
	--ploomia-laptop-h4-size: clamp(1.125rem, 2vw, 1.25rem);
	--ploomia-laptop-h4-line-height: 1.2;
}

/* ── Desktop compatto (MacBook 13 @ 1280px) ── */
@media (min-width: 992px) and (max-width: 1281px) {
	/* Tipografia sezioni Elementor (kit desktop ~52–70px troppo grande su 1280px) */
	body:not(.elementor-editor-active):not(.elementor-editor-preview) h2.elementor-heading-title,
	body:not(.elementor-editor-active):not(.elementor-editor-preview) .elementor-widget-text-editor h2 {
		font-size: var(--ploomia-laptop-h2-size) !important;
		line-height: var(--ploomia-laptop-h2-line-height) !important;
	}

	body:not(.elementor-editor-active):not(.elementor-editor-preview) h3.elementor-heading-title,
	body:not(.elementor-editor-active):not(.elementor-editor-preview) .elementor-widget-text-editor h3 {
		font-size: var(--ploomia-laptop-h3-size) !important;
		line-height: var(--ploomia-laptop-h3-line-height) !important;
	}

	body:not(.elementor-editor-active):not(.elementor-editor-preview) h4.elementor-heading-title,
	body:not(.elementor-editor-active):not(.elementor-editor-preview) .elementor-widget-text-editor h4 {
		font-size: var(--ploomia-laptop-h4-size) !important;
		line-height: var(--ploomia-laptop-h4-line-height) !important;
	}

	#about-section .about-story-panel .elementor-widget-text-editor {		
		background-color: transparent!important;
	}
	.ploomia-img-mask--h-br:not(.elementor-widget-image):not(.elementor-widget-container):has(> img)::after{
		width: calc(var(--ploomia-mask-w) + 5px);
    	height: calc(var(--ploomia-mask-h) + 15px);
	}
	.ploomia-img-mask--h-br:not(.elementor-widget-image):not(.elementor-widget-container):has(> img)::before {
		width: calc(var(--ploomia-mask-w) + var(--ploomia-mask-corner) - 0px);
		bottom: 0px;
		height: 93px;
	}
	.ploomia-img-mask--h-bl:not(.elementor-widget-image):not(.elementor-widget-container):has(> img)::before{
		bottom: -1px!important;
	}
	/* Hero scroll */
	.ploomia-hero-scroll {
		--ploomia-hero-pin: 1200px;
		--ploomia-hero-radius: 2rem;
		--ploomia-hero-corner-size: 32px;
		--ploomia-hero-card-width: 72%;
		--ploomia-hero-card-height: clamp(3.5rem, 6vw, 5.5rem);
		min-height: calc(100vh + var(--ploomia-hero-pin));
	}

	.ploomia-hero-scroll__title {
		font-size: clamp(2rem, 7vw, 4rem) !important;
		line-height: 0.95;
	}

	.ploomia-hero-scroll__text {
		font-size: clamp(0.9375rem, 1.25vw, 1.125rem);
		max-width: 28rem;
	}

	.ploomia-hero-scroll__content {
		padding: clamp(1.25rem, 3vw, 2.5rem);
	}

	.ploomia-hero-scroll__badge .ploomia-rotating-badge {
		--ploomia-badge-size: clamp(5.5rem, 10vw, 7rem);
	}

	/* About */
	#about-section {
		--about-image-min-h: clamp(240px, 28vw, 380px);
	}

	#about-section .elementor-heading-title {
		font-size: clamp(1.75rem, 3.5vw, 2.5rem) !important;
	}

	#about-section .about-stat-number,
	#about-section .about-stat-number .elementor-heading-title {
		font-size: clamp(2rem, 4vw, 2.75rem) !important;
	}

	/* Carousel progetti */
	.ploomia-projects-carousel {
		--ploomia-projects-sticky-top: clamp(1rem, 2.5vw, 1.75rem);
		--ploomia-projects-card-height: clamp(14rem, 36vw, 22rem);
		--ploomia-projects-card-max-width: 44rem;
	}

	.ploomia-projects-carousel__title {
		margin-top: clamp(1.5rem, 4vw, 3rem);
		font-size: clamp(1.75rem, 4vw, 2.75rem) !important;
	}

	/* Servizi FAQ full — evita 80px fissi da min-width:1200 in ploomia-faq-full.css */
	.ploomia-faq-full-title {
		font-size: clamp(1.75rem, 3.2vw, 2.5rem) !important;
		line-height: 0.9;
	}

	.ploomia-faq-full-subtitle {
		font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
	}

	.ploomia-faq-full-header {
		gap: clamp(1rem, 2.5vw, 2rem);
		padding: clamp(1rem, 2vw, 1.5rem) 0;
	}

	/* Metodo sticky & scroll */
	.ploomia-sticky-scroll__title {
		font-size: clamp(1.75rem, 3.5vw, 2.5rem) !important;
	}

	.ploomia-sticky-scroll__step-title {
		font-size: clamp(1.125rem, 2vw, 1.5rem) !important;
	}

	/* Team — 3 colonne strette su 1280px: gap ridotto, testo overlay */
	.ploomia-team {
		--ploomia-team-gap: clamp(0.875rem, 1.5vw, 1.25rem);
		--ploomia-team-radius: clamp(1rem, 2vw, 1.75rem);
	}

	.ploomia-team h3.ploomia-team__name {
		font-size: clamp(0.8125rem, 1.1vw, 1rem) !important;
		font-weight: 700;
		line-height: 1.2;
	}

	.ploomia-team__role {
		font-size: clamp(0.75rem, 1vw, 0.875rem);
	}

	/* Contatti */
	.ploomia-contact__title {
		font-size: clamp(1.75rem, 3.2vw, 2.25rem) !important;
	}

	.ploomia-logos-wrapper {
		--ploomia-logos-gap: 2rem;
	}

	.ploomia-logo-image {
		max-height: 1.75rem;
	}

	/* Menu laterale: pannello leggermente più stretto */
	:root {
		--ploomia-menu-panel-width: 340px;
	}

	p.ploomia-team__role {
		font-size: 15px !important;
		clear: both;
		width: 100%;
	}
	.ploomia-hero-scroll__badge {
		bottom: calc(var(--ploomia-hero-rail-height) + var(--ploomia-hero-card-height) + clamp(0.75rem, 2vw, 1.5rem) + 50px);		
	}
	#content-wrapper, .site-content {		
		padding: 0 2vw 4rem!important;
	}
}

/* ── Altezza ridotta (1280×800 e simili) ── */
@media (min-width: 992px) and (max-width: 1280px) and (max-height: 800px) {
	.ploomia-hero-scroll {
		--ploomia-hero-pin: 900px;
		min-height: calc(100vh + var(--ploomia-hero-pin));
	}

	.ploomia-hero-scroll__title {
		font-size: clamp(1.75rem, 6.5vw, 3.25rem) !important;
	}

	.ploomia-projects-carousel {
		--ploomia-projects-sticky-top: 1rem;
		--ploomia-projects-card-height: clamp(12rem, 32vh, 17rem);
	}

	.ploomia-projects-carousel__title {
		margin-top: clamp(1rem, 3vh, 2rem);
		font-size: clamp(1.5rem, 3.5vw, 2.25rem) !important;
	}

	.ploomia-sticky-scroll__inner {
		padding-top: clamp(1.5rem, 4vh, 2.5rem);
		padding-bottom: clamp(1.5rem, 4vh, 2.5rem);
	}

	#about-section {
		--about-image-min-h: clamp(200px, 32vh, 280px);
	}

	p.ploomia-team__role {
		font-size: 15px !important;
		clear: both;
		width: 100%;
	}
}
