/*
Theme Name: Marotta Landing
Theme URI: https://example.com/marotta-landing
Author: Your Name
Author URI: https://example.com
Description: Tema custom minimal per Landing Page.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: marotta-landing
*/

/* Base reset and minimal styles for landing */
:root {
	--ml-font: var(--ml-font-base);
	--ml-text: #1f2937;
	--ml-muted: #6b7280;
	--ml-bg: var(--ml-background-light);
	--ml-primary: #0ea5e9;
}

html {
	box-sizing: border-box;
	scroll-behavior: smooth;
	width: 100%;
}
html, body { height: auto; min-height: 100%; }
*, *::before, *::after { box-sizing: inherit; }

body {
	margin: 0;
	font-family: var(--ml-font-base);
	color: var(--ml-text);
	background: var(--ml-bg);
	line-height: 1.6;
}

/* Front page hero - enforce no scroll and proper switching */
/* Allow scroll so sections after hero are reachable */
body.home { overflow-y: auto; overflow-x: hidden; }
.home #main { margin: 0; padding: 0; }

.home .hero {
	position: relative;
	width: 100%;
	height: 100svh; /* safe viewport */
	min-height: 100vh;
	overflow: hidden;
}

@supports (height: 100dvh) {
	.home .hero { height: 100dvh; min-height: 100dvh; }
}

.home .hero__media { position: absolute; inset: 0; }

.home .hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--ml-secondary);
	opacity: 0.45;
	z-index: 1;
}

.home .hero__video {
	position: absolute; inset: 0; width: 100%; height: 100%;
	object-fit: cover; object-position: center;
}
.home .hero__video--desktop { display: block; }
.home .hero__video--mobile { display: none; }
.home .hero__content { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; text-align: center; padding: 0 20px; }
.home .hero__title { color: #fff; font-family: var(--ml-font-title); font-size: clamp(28px, 5vw, 56px); margin: 0 0 12px; }
.home .hero__subtitle { color: #fff; font-family: var(--ml-font-base); font-size: clamp(16px, 2.2vw, 22px); max-width: 900px; margin: 0 auto; }

/* Hero brand logo under title */
.home .hero__brand { margin: 8px 0 12px; }
.home .hero__brand img { height: 42px; width: auto; display: inline-block; }

/* Hero badge (logo + kicker) with Natale-like readable backdrop */
.home .hero__badge {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 12px 16px;
	background: rgba(218, 161, 76, 0.60); /* --ml-secondary opacizzato */
	box-shadow: 0 10px 30px rgba(0,0,0,.15);
	border-radius: 0;
	margin: 0 0 10px;
}
.home .hero__badge .hero__logo img { height: 40px; width: auto; display: block; }
.home .hero__badge .hero__kicker { color: #fff; font-family: var(--ml-font-base); letter-spacing: 2px; font-size: 16px; text-align: center; }
@media (max-width: 480px) {
	.home .hero__badge { gap: 8px; padding: 10px 12px; }
	.home .hero__badge .hero__kicker { text-align: center; }
}

@media (max-width: 767px) {
	.home .hero { width: 100%; height: 100dvh; min-height: 100dvh; }
	.home .hero__video--desktop { display: none; }
	.home .hero__video--mobile { display: block; }
}

.container {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
}

.visually-hidden {
	position: absolute;
	clip: rect(1px, 1px, 1px, 1px);
	padding: 0;
	border: 0;
	height: 1px;
	width: 1px;
	overflow: hidden;
	white-space: nowrap;
}

/* Override hero phone CTA (default set transparent in main.css) */
.hero .hero__cta .btn--phone {
	background: rgba(255, 255, 255, 0.85);
	color: var(--ml-secondary);
	border: 2px solid var(--ml-secondary);
}
.hero .hero__cta .btn--phone:hover {
	background: rgba(255, 255, 255, 0.95);
}

/* Hero CTA Group - Two buttons side by side */
.hero .hero__cta--group {
	display: flex;
	gap: 16px;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 16px;
}

.hero .hero__cta--group .btn,
.hero .hero__cta--group a.btn {
	flex: 0 1 auto;
	min-width: 180px;
}

.hero .btn--info {
	text-decoration: none;
}

@media (max-width: 480px) {
	.hero .hero__cta--group {
		flex-direction: column;
		width: 100%;
	}
	
	.hero .hero__cta--group .btn,
	.hero .hero__cta--group a.btn {
		width: 100%;
		min-width: auto;
	}
}