/*!
Theme Name:     Spaciaz Child
Theme URI:      https://suonica.it/
Description:    A child theme for Spaciaz - Professional Real Estate & Construction Theme
Author:         Your Agency Name
Author URI:     https://suonica.it/
Template:       spaciaz
Version:        1.0.0
License:        GNU General Public License v2 or later
License URI:    https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    spaciaz-child
Domain Path:    /languages
Requires PHP:   7.4
*/

/* ========================================
   Custom Styles for Spaciaz Child Theme
   ======================================== */

/* Aggiungi i tuoi stili personalizzati qui sotto */

/* ========================================
   G-MAR - rifiniture tipografiche e di layout
   (aggiunte da Suonica, settembre 2026)
   ======================================== */

/* Titoli: righe bilanciate, niente parole orfane */
.elementor-heading-title,
.hfe-page-title .elementor-heading-title { text-wrap: balance; }

/* Testi: a capo piu' naturale e interlinea comoda */
.elementor-widget-text-editor p { text-wrap: pretty; }
.elementor-widget-text-editor { line-height: 1.7; }

/* Card dei punti chiave: leggero sollevamento al passaggio */
.e-con.gmar-card {
	transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.e-con.gmar-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 32px 70px -18px rgba(15, 30, 26, .22) !important;
}
.e-con.gmar-card .elementor-divider-separator { border-color: rgba(92, 211, 184, .45) !important; }

/* Link nel testo: sottolineatura menta */
.elementor-widget-text-editor a {
	text-decoration: underline;
	text-decoration-color: rgba(41, 171, 142, .55);
	text-underline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.e-con.gmar-card, .e-con.gmar-card:hover { transition: none; transform: none; }
}

/* ========================================
   G-MAR - linguaggio visivo della Home
   ======================================== */
:root {
	--gmar-ink: #000000;
	--gmar-muted: #6B6B6B;
	--gmar-mint: #5CD3B8;
	--gmar-mint-dark: #1F9C80;
	--gmar-soft: #F5F5F3;
}

/* Titoli: tracking leggero, peso semibold */
h1.elementor-heading-title, h2.elementor-heading-title, h3.elementor-heading-title {
	letter-spacing: -0.02em !important;
	font-weight: 600 !important;
}
.elementor-widget-text-editor strong { color: inherit; font-weight: 600; }

/* Sottotitolo chiaro sotto i titoli di sezione */
.gmar-sub .elementor-heading-title { color: var(--gmar-muted) !important; font-weight: 400 !important; letter-spacing: -0.01em !important; }

/* Card con foto (Home) */
.e-con.gmar-photo-card { overflow: hidden; transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.e-con.gmar-photo-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .18); }
.e-con.gmar-photo-card img { width: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.e-con.gmar-photo-card:hover img { transform: scale(1.04); }
.gmar-link a, a.gmar-link { color: #000 !important; font-weight: 600; text-decoration: none !important; }

/* Tacca d'angolo del tema sulle card: pulsante freccia che reagisce al passaggio */
.e-con.gmar-photo-card:hover .elementor-button-icon { background: var(--accent); transition: all .4s ease; }
.e-con.gmar-photo-card:hover .btn-icon, .e-con.gmar-photo-card:hover .btn-icon-hover { color: #fff; }

/* Blocchi con margini laterali (hero, fascia servizi): niente sforamento */
.e-con.gmar-band { --width: auto !important; width: auto !important; }

/* Barra di fiducia con spunte */
.gmar-trust .elementor-icon-list-items { justify-content: center; gap: 10px 36px; }
.gmar-trust .elementor-icon-list-text { font-weight: 500; }

@media (prefers-reduced-motion: reduce) {
	.e-con.gmar-photo-card, .e-con.gmar-photo-card:hover, .e-con.gmar-photo-card img { transition: none; transform: none; }
}
/* Logo nel menu mobile: piu' piccolo */
.spaciaz-mobile-nav .menu-scroll-mobile .site-branding img.custom-logo { max-width: 150px; height: auto; margin:0 }

/* gmar-sticky: header sempre visibile */
#masthead { position: fixed !important; top: 0; left: 0; right: 0; z-index: 999; }
#masthead .elementor-8432 > .elementor-element-7517e35 { background: #fff !important; margin-top: 0 !important; padding-top: 14px !important; padding-bottom: 14px !important; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.admin-bar #masthead { top: 32px; }
@media (max-width: 782px) { .admin-bar #masthead { top: 46px; } }
@media (max-width: 600px) { .admin-bar #masthead { top: 0; } }
.gmar-hdr-cta .elementor-button { padding: 11px 16px; font-size: 14px; white-space: nowrap; }
.gmar-hdr-phone .elementor-icon { display: flex; }

/* Fascia CTA nelle pagine servizio */
.e-con.gmar-cta-band { overflow: hidden; }
.gmar-cta-band .elementor-widget-text-editor a { color: #000; text-decoration: none; }

/* Card con tacca: angolo davvero trasparente (niente riquadro bianco sotto l'ombra) */
.e-con.gmar-notched { isolation: isolate; background: transparent !important; box-shadow: none !important; }
.e-con.gmar-notched::before {
	content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 30px;
	background: #fff;
	-webkit-mask:
		linear-gradient(#000 0 0) left top / 100% calc(100% - 89px) no-repeat,
		linear-gradient(#000 0 0) left bottom / calc(100% - 89px) 91px no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cpath d='M0 0H90A30 30 0 0 1 60 30A30 30 0 0 0 30 60A30 30 0 0 1 0 90Z'/%3E%3C/svg%3E") right bottom / 90px 90px no-repeat;
	mask:
		linear-gradient(#000 0 0) left top / 100% calc(100% - 89px) no-repeat,
		linear-gradient(#000 0 0) left bottom / calc(100% - 89px) 91px no-repeat,
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='90' height='90'%3E%3Cpath d='M0 0H90A30 30 0 0 1 60 30A30 30 0 0 0 30 60A30 30 0 0 1 0 90Z'/%3E%3C/svg%3E") right bottom / 90px 90px no-repeat;
}
.e-con.gmar-notched.gmar-bg-soft::before { background: #F5F5F3; }
.e-con.gmar-notched > .elementor-widget-spacer { visibility: hidden; }
.e-con.gmar-notched > .elementor-element > img, .e-con.gmar-notched .elementor-widget-image { border-radius: 30px 30px 0 0; overflow: hidden; }
.e-con.gmar-notched { transition: transform .35s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.e-con.gmar-notched:hover { box-shadow: none !important; filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .13)); }
/* Home: timeline "Come lavoriamo" */
.gmar-steps .gmar-step { position: relative; }
.gmar-steps .gmar-step-n .elementor-heading-title { display: block; text-align: center; }
@media (min-width: 1025px) {
	.gmar-steps .gmar-step:not(:last-child)::after {
		content: ''; position: absolute; top: 28px; left: 76px; right: -28px;
		border-top: 1px dashed rgba(92, 211, 184, .55);
	}
}
.gmar-dark .spaciaz-button .elementor-button, .gmar-dark .elementor-button { box-shadow: none; }
/* Home: vantaggi e badge esperienza */
.e-con.gmar-adv { flex-direction: row !important; flex-wrap: nowrap !important; }
.e-con.gmar-adv > .elementor-widget-icon { flex: 0 0 auto; }
.e-con.gmar-badge { max-width: calc(100% - 24px); }

/* Home: sfondo hero con zoom lento e dissolvenza in entrata */
.gmar-hero-zoom > .elementor-background-slideshow { overflow: hidden; animation: gmarHeroFade 1.8s ease-out both; }
.gmar-hero-zoom .elementor-ken-burns { transform: scale(1); }
.gmar-hero-zoom .elementor-ken-burns--active { transition-duration: 16s !important; transition-timing-function: cubic-bezier(.25,.1,.25,1) !important; }
.gmar-hero-zoom .elementor-ken-burns--active.elementor-ken-burns--in { transform: scale(1.12); }
.gmar-hero-zoom > .elementor-element:not(.elementor-absolute) { position: relative; z-index: 3; }
.gmar-hero-zoom > .elementor-absolute { z-index: 4; }
@keyframes gmarHeroFade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
	.gmar-hero-zoom > .elementor-background-slideshow { animation: none; }
	.gmar-hero-zoom .elementor-ken-burns { transform: none !important; transition: none !important; }
}