:root{
	--bg: #0b0f14;
	--surface: #ffffff;
	--muted: rgba(0,0,0,.65);
	--ink: #121826;
	--brand: #9E1E61;
	--border: rgba(0,0,0,.12);

	--radius: 16px;
	--shadow: 0 14px 34px rgba(0,0,0,.12);

	--container: 1100px;
}

@media (prefers-color-scheme: dark){
	:root{
		--surface: #0f1620;
		--ink: #e8eef8;
		--muted: rgba(232,238,248,.7);
		--border: rgba(232,238,248,.14);
		--shadow: 0 18px 44px rgba(0,0,0,.45);
	}
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
	margin:0;
	font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
	color: var(--ink);
	background: var(--bg);
}

img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; }
.container{
	width: min(var(--container), calc(100% - 32px));
	margin-inline:auto;
}

.header{
	background: linear-gradient(
			180deg,
			var(--surface),
			rgba(0,0,0,0)
	);
	padding: 16px 0 8px;
}
.header__row{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap:16px;
}
.brand{
	display:flex;
	align-items:center;
	gap:12px;
	min-width: 0;
}
.brand__logo{
	width: 54px;
	height: 54px;
	object-fit: contain;
}
.brand__title{ font-weight:800; letter-spacing:.3px; }
.brand__subtitle{ font-size:.9rem; opacity:.7; }

.header__partners{
	display:flex;
	gap:12px;
	align-items:center;
}
.header__partners img{
	height: 34px;
	width:auto;
	object-fit:contain;
	opacity:.95;
}

/* Sticky nav */
.nav{
	position: sticky;
	bottom: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--surface) 92%, transparent);
	backdrop-filter: blur(10px);
	border-top: 1px solid var(--border);
	display:flex;
	justify-content:space-around;
	padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
}
.nav__item{
	text-decoration:none;
	font-weight: 700;
	font-size: .95rem;
	padding: 10px 12px;
	border-radius: 999px;
}
.nav__item:active{ transform: translateY(1px); }
.nav__item:hover{ background: rgba(158,30,97,.08); color: var(--brand); }

@media (min-width: 900px){
	.nav{
		top: 0;
		bottom: auto;
		border-top: none;
		border-bottom: 1px solid var(--border);
		justify-content:center;
		gap:10px;
	}
}

.videoCard{
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow:hidden;
}
.videoCard__player{
	background: #000;
	aspect-ratio: 16/9;
}
.videoCard__player iframe{
	width:100%;
	height:100%;
	border:0;
	display:block;
}
.videoCard__hint{
	padding: 10px 14px;
	font-size:.95rem;
	color: var(--muted);
	border-top: 1px solid var(--border);
}
.videoCard__thumbs{
	display:flex;
	gap:10px;
	padding: 12px 14px 14px;
	overflow:auto;
	-webkit-overflow-scrolling: touch;
}
.thumb{
	border:1px solid var(--border);
	border-radius: 12px;
	padding:0;
	background: transparent;
	overflow:hidden;
	min-width: 110px;
	cursor:pointer;
}
.thumb img{ width:110px; height:82px; object-fit:cover; }
.thumb:focus-visible{ outline: 3px solid rgba(158,30,97,.35); outline-offset: 2px; }

.h1{
	margin:0 0 10px;
	font-size: 1.55rem;
	line-height: 1.15;
}
.h2{
	margin:0;
	font-size: 1.35rem;
}
.h2__sub{ font-size:.95rem; color: var(--muted); font-weight:600; }
.h2--invert{ color: #fff; }

.hero__cta{ display:flex; gap:10px; margin-top: 14px; flex-wrap:wrap; }

.btn{
	display:inline-flex;
	align-items:center;
	justify-content:center;
	gap:8px;
	padding: 10px 14px;
	border-radius: 999px;
	border: 1px solid rgba(158,30,97,.25);
	background: var(--brand);
	color: #fff;
	text-decoration:none;
	font-weight: 800;
	cursor:pointer;
}
.btn--ghost{
	background: transparent;
	color: var(--brand);
}

.section{ padding: 26px 0; }
.section--tinted{
	background: color-mix(in srgb, var(--surface) 90%, var(--bg));
}
.section__head{ margin-bottom: 14px; }
.section__head .muted{ margin: 8px 0 0; color: var(--muted); }
.section__foot{
	display:flex;
	justify-content:space-between;
	margin-top: 16px;
}
.link{ color: var(--brand); text-decoration:none; font-weight:800; }

.cards{
	display:grid;
	gap:12px;
}
@media (min-width: 900px){
	.cards{ grid-template-columns: repeat(2, 1fr); }
}
.card{
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 14px;
}
.h3{ margin: 0 0 8px; font-size: 1.05rem; color: var(--brand); }
.card p{ margin: 0 0 10px; color: var(--muted); line-height: 1.6; }

.list{ margin:0; padding-left: 18px; color: var(--muted); }
.list li{ margin: 6px 0; }

.cols{
	display:grid;
	gap: 10px;
}
@media (min-width: 900px){
	.cols{ grid-template-columns: 1fr 1fr; }
}

.media{
	display:flex;
	justify-content:center;
	margin: 12px 0 10px;
}
.media img{
	width: min(520px, 100%);
	border-radius: 14px;
	border: 1px solid var(--border);
	background: var(--surface);
}

.note{
	margin-top: 12px;
	padding: 12px 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--muted);
	line-height: 1.6;
}
.note__strong{
	margin-top: 10px;
	font-weight: 900;
	color: var(--ink);
}

.hr{
	border: 0;
	height: 1px;
	background: var(--border);
	margin: 18px 0;
}

.gallery{
	display:grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}
@media (min-width: 700px){
	.gallery{ grid-template-columns: repeat(6, 1fr); }
}

.gthumb{
	border: 1px solid var(--border);
	background: var(--surface);
	border-radius: 14px;
	overflow:hidden;
	padding: 0;
	cursor:pointer;
}
.gthumb img{
	width:100%;
	aspect-ratio: 1/1;
	object-fit: cover;
	display:block;
}

.footer{
	background: var(--footer-bg);
	color: var(--footer-ink);
	padding: 26px 0 calc(26px + 62px);
	border-top: 1px solid var(--footer-border);
}

.footer__grid{
	display:grid;
	gap: 18px;
}
@media (min-width: 900px){
	.footer__grid{ grid-template-columns: 1.2fr .8fr; align-items:center; }
}
.contact{
	display:grid;
	gap: 12px;
	margin-top: 12px;
}
.contact__box{
	background: color-mix(in srgb, var(--footer-bg) 92%, var(--footer-ink));
	border: 1px solid var(--footer-border);
	border-radius: 16px;
	padding: 12px 14px;
}
.contact__title{ font-weight: 900; margin-bottom: 6px; }
.footer a{
	color: var(--footer-ink);
	text-decoration: underline;
}


.privacyLink{
	margin-top: 14px;
	border: 0;
	background: transparent;
	color: var(--footer-ink);
	text-decoration: underline;
	font-weight: 800;
	cursor: pointer;
}

.footer__logo{
	display:flex;
	justify-content:flex-start;
}
.footer__logo img{
	max-width: 260px;
	height:auto;
}

/* Dialogs */
.lightbox{
	border: 0;
	border-radius: 18px;
	padding: 0;
	width: min(920px, calc(100% - 24px));
	background: #000;
}
.lightbox::backdrop{ background: rgba(0,0,0,.6); }
.lightbox img{
	width:100%;
	height:auto;
	display:block;
}
.lightbox__close{
	position: absolute;
	top: 8px;
	right: 8px;
	width: 42px;
	height: 42px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,.25);
	background: rgba(0,0,0,.35);
	color: #fff;
	font-size: 28px;
	cursor: pointer;
}

/* Privacy modal */
.modal{
	border: 0;
	padding: 0;
	border-radius: 18px;
	width: min(720px, calc(100% - 24px));
	background: transparent;
}
.modal::backdrop{ background: rgba(0,0,0,.45); }
.modal__card{
	background: var(--surface);
	color: var(--ink);
	border-radius: 18px;
	padding: 16px;
	box-shadow: var(--shadow);
}
.modal__head{
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap: 12px;
}
.modal__head h3{ margin:0; }
.modal__card p{ margin: 10px 0; color: var(--muted); line-height: 1.6; }
.modal__actions{ display:flex; justify-content:flex-end; margin-top: 10px; }
.iconBtn{
	width: 42px;
	height: 42px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: transparent;
	cursor:pointer;
	font-size: 26px;
	line-height: 1;
}

/* === CONFIG CARDS – MOBILE PREMIUM === */

.card--config{
	padding: 16px;
}

.card__head{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 6px;
}

.card__desc{
	font-size: .95rem;
	line-height: 1.6;
	color: var(--muted);
	margin-bottom: 14px;
}

/* pill / badge */
.pill{
	background: rgba(158,30,97,.12);
	color: var(--brand);
	font-weight: 700;
	font-size: .75rem;
	padding: 6px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

/* specs grid */
.specs{
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.spec{
	background: color-mix(in srgb, var(--surface) 92%, var(--ink));
	border-radius: 12px;
	padding: 10px 12px;
}

.spec__label{
	display: block;
	font-size: .75rem;
	color: var(--muted);
}

.spec__value{
	display: block;
	font-weight: 800;
	font-size: .95rem;
	margin-top: 2px;
}

/* === ICONIC HIGHLIGHTS === */

.highlights{
	list-style: none;
	padding: 0;
	margin: 10px 0 12px;
	display: grid;
	gap: 6px;
}

.highlights li{
	font-size: .9rem;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 8px;
}

.small{
	font-size: .85rem;
}

/* === TECH SECTION PREMIUM === */

.highlights--tech{
	margin-bottom: 14px;
}

.specGrid{
	display: grid;
	gap: 12px;
	margin-top: 14px;
}

@media (min-width: 900px){
	.specGrid{
		grid-template-columns: repeat(2, 1fr);
	}
}

.specCard{
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 14px;
	box-shadow: var(--shadow);
}

.specCard__title{
	margin: 0 0 8px;
	font-size: .95rem;
	font-weight: 900;
	color: var(--brand);
}

.specCard ul{
	margin: 0;
	padding-left: 18px;
	color: var(--muted);
}

.specCard li{
	margin: 6px 0;
}
/* === TECH PILLS === */

.techPills{
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 18px;
}

.techPill{
	display: inline-flex;
	align-items: center;
	gap: 6px;

	padding: 6px 12px;
	border-radius: 999px;

	background: rgba(158,30,97,.1);
	color: var(--brand);

	font-size: .8rem;
	font-weight: 700;
	white-space: nowrap;
}

/* ===== HERO (UNICA DEFINIZIONE) ===== */
.hero{ padding: 18px 0 10px; }

.hero__grid > * { min-width: 0; } /* evita overflow */
.hero__grid{
	display:grid;
	gap:16px;
}

@media (min-width: 900px){
	.hero__grid{
		grid-template-columns: 1.2fr .8fr;
		align-items:start;
	}
}
@media (min-width: 900px){
	.hero__copy{
		position: sticky;
		top: 72px; /* sotto la nav sticky */
	}
}

/* Copy breve: no muro */
.hero__copy{
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 16px;
}

.hero__copy p{
	margin: 10px 0;
	color: var(--muted);
	line-height: 1.6;
}

.hero__more{
	display:inline-block;
	margin-top: 12px;
}

/* long copy full width */
.hero__longcopy{ margin-top: 14px; }

.longcopyCard{
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 16px;
}

.longcopyCard p{
	color: var(--muted);
	line-height: 1.7;
	margin: 10px 0;
}
.muted{ color: var(--muted); }
/* ===== Anchor offset (sticky nav desktop) ===== */
:root{
	--anchor-offset: 0px; /* verrà settato via JS */
	--bg: #f4f4f9;
	--surface: #ffffff;
	--ink: #121826;
	--muted: rgba(0,0,0,.65);
	--border: rgba(0,0,0,.12);
	/* Footer */
	--footer-bg: #6D8496;
	--footer-ink: #ffffff;
	--footer-border: rgba(255,255,255,.18);
}

@media (prefers-color-scheme: dark){
	:root{
		--bg: #0b0f14;
		--surface: #0f1620;
		--ink: #e8eef8;
		--muted: rgba(232,238,248,.7);
		--border: rgba(232,238,248,.14);
		--footer-bg: #0a121b;      /* più scuro del bg */
		--footer-ink: #e8eef8;
		--footer-border: rgba(232,238,248,.14);
	}
}


/* Qualsiasi target con id (section, div, ecc.) */
[id]{
	scroll-margin-top: calc(var(--anchor-offset) + 12px);
}

/* ===== Focus visible (accessibilità tastiera) ===== */
.nav__item:focus-visible,
.btn:focus-visible,
.gthumb:focus-visible,
.iconBtn:focus-visible,
.privacyLink:focus-visible,
a:focus-visible{
	outline: 3px solid rgba(158,30,97,.35);
	outline-offset: 2px;
}

/* (opzionale) evidenzia thumb video attiva */
.thumb.isActive{
	border-color: rgba(158,30,97,.55);
	box-shadow: 0 0 0 3px rgba(158,30,97,.12);
}
/* ===== Contact form (footer) ===== */
.footer__grid--contact{
	gap: 18px;
}

@media (min-width: 900px){
	.footer__grid--contact{
		grid-template-columns: 1.1fr .9fr;
		align-items: start;
	}
}

.contactForm{
	background: color-mix(in srgb, var(--footer-bg) 92%, transparent);
	border: 1px solid var(--footer-border);
	border-radius: 18px;
	padding: 14px;
}

.contactForm__title{
	margin: 0;
	font-size: 1.05rem;
	font-weight: 900;
	color: var(--footer-ink);
}

.contactForm__subtitle{
	margin: 8px 0 0;
	color: color-mix(in srgb, var(--footer-ink) 82%, transparent);
	font-size: .92rem;
	line-height: 1.5;
}

.cform{
	margin-top: 12px;
	display: grid;
	gap: 10px;
}

.cform__row{
	display: grid;
	gap: 10px;
}

@media (min-width: 700px){
	.cform__row{
		grid-template-columns: 1fr 1fr;
	}
}

.cform__field{
	display: grid;
	gap: 6px;
}

.cform__label{
	font-size: .78rem;
	font-weight: 800;
	color: color-mix(in srgb, var(--footer-ink) 86%, transparent);
}

.cform input,
.cform select,
.cform textarea{
	width: 100%;
	border-radius: 14px;
	border: 1px solid var(--footer-border);
	background: color-mix(in srgb, var(--footer-bg) 88%, var(--footer-ink));
	color: var(--footer-ink);
	padding: 10px 12px;
	font: inherit;
}

.cform textarea{ resize: vertical; }

.cform input::placeholder,
.cform textarea::placeholder{
	color: color-mix(in srgb, var(--footer-ink) 65%, transparent);
}

.cform input:focus,
.cform select:focus,
.cform textarea:focus{
	outline: 3px solid rgba(158,30,97,.35);
	outline-offset: 2px;
}

.cform__submit{
	justify-content: center;
	width: 100%;
}

.cform__fineprint{
	margin: 0;
	font-size: .78rem;
	color: color-mix(in srgb, var(--footer-ink) 75%, transparent);
	line-height: 1.4;
}
/* ===== WhatsApp CTA ===== */
.whatsappBtn{
	margin-top: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;

	width: 100%;
	padding: 12px 16px;
	border-radius: 999px;

	background: #25D366;
	color: #fff;
	text-decoration: none;
	font-weight: 900;

	box-shadow: 0 10px 26px rgba(0,0,0,.25);
}

.whatsappBtn:hover{
	filter: brightness(1.05);
}

.whatsappBtn__icon{
	font-size: 1.2rem;
	line-height: 1;
}
