/* ==========================================================================
   Cross-In — nuovo sito vetrina
   Palette brand: turchese #00c9db · dark #242633 · viola #413d52
   ========================================================================== */

@font-face {
	font-family: 'Bebas Neue';
	src: url('../fonts/BebasNeue-Regular.ttf') format('truetype');
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: 'Bebas Neue';
	src: url('../fonts/BebasNeue-Bold.ttf') format('truetype');
	font-weight: 700;
	font-display: swap;
}

:root {
	--accent: #00c9db;
	--accent-dark: #00a5b4;
	--dark: #242633;
	--dark-2: #1b1d27;
	--dark-3: #2e3040;
	--purple: #413d52;
	--text: #e8eaf2;
	--text-muted: #a7abbd;
	--text-on-light: #242633;
	--text-muted-on-light: #5e6272;
	--light: #f5f6fa;
	--radius: 20px;
	--shadow: 0 12px 30px rgba(0, 0, 0, .25);
	--font-display: 'Bebas Neue', 'Arial Narrow', sans-serif;
	--font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: 5rem;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--text);
	background: var(--dark-2);
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: 400;
	letter-spacing: .03em;
	line-height: 1.1;
	margin: 0 0 .5em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.2rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

sup { font-size: .55em; }

.container {
	width: min(1140px, 92%);
	margin-inline: auto;
}

section { padding: 5.5rem 0; }

.section-head {
	text-align: center;
	max-width: 46rem;
	margin: 0 auto 3rem;
}

.section-head .kicker {
	display: inline-block;
	font-family: var(--font-display);
	font-size: 1.05rem;
	letter-spacing: .25em;
	color: var(--accent);
	text-transform: uppercase;
	margin-bottom: .4rem;
}

.section-head p { color: var(--text-muted); margin: 0; }

.accent { color: var(--accent); }

/* ------------------------------------------------------------------ bottoni */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: .7rem 1.6rem;
	border-radius: 999px;
	font-weight: 700;
	font-size: .95rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
	white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); }

.btn-solid {
	background: var(--accent);
	color: #fff;
	box-shadow: 0 6px 18px rgba(0, 201, 219, .35);
}
.btn-solid:hover { background: var(--accent-dark); color: #fff; }

.btn-outline {
	border-color: var(--accent);
	color: var(--accent);
	background: transparent;
}
.btn-outline:hover { background: rgba(0, 201, 219, .12); color: var(--accent); }

.btn-dark {
	background: var(--dark);
	color: #fff;
}
.btn-dark:hover { background: #000; color: #fff; }

.btn svg { width: 1.1em; height: 1.1em; fill: currentColor; flex: none; }

/* ------------------------------------------------------------------ navbar */

.navbar {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	background: rgba(27, 29, 39, .85);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.navbar-inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: 4.25rem;
}

.navbar .logo img { height: 2.1rem; display: block; }

.nav-links {
	display: flex;
	align-items: center;
	gap: 1.4rem;
	margin-left: auto;
	list-style: none;
	padding: 0;
}

.nav-links a:not(.btn) {
	color: var(--text);
	font-weight: 600;
	font-size: .92rem;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.nav-links a:not(.btn):hover { color: var(--accent); }

.nav-links .btn { padding: .45rem 1.2rem; font-size: .85rem; }

.nav-toggle {
	display: none;
	margin-left: auto;
	background: none;
	border: 0;
	color: var(--text);
	cursor: pointer;
	padding: .5rem;
}

.nav-toggle svg { width: 1.6rem; height: 1.6rem; fill: currentColor; }

@media (max-width: 900px) {
	.nav-toggle { display: block; }

	.nav-links {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: .2rem;
		margin: 0;
		padding: 1rem 4%;
		background: var(--dark-2);
		border-bottom: 1px solid rgba(255, 255, 255, .08);
		display: none;
	}

	.nav-links.open { display: flex; }

	.nav-links a:not(.btn) { padding: .6rem 0; }

	.nav-links .btn { justify-content: center; margin-top: .4rem; }
}

/* ------------------------------------------------------------------ hero */

.hero {
	position: relative;
	padding: 9.5rem 0 5rem;
	background:
		radial-gradient(60rem 30rem at 85% -10%, rgba(0, 201, 219, .18), transparent 60%),
		radial-gradient(50rem 28rem at 0% 110%, rgba(65, 61, 82, .55), transparent 60%),
		var(--dark);
	overflow: hidden;
}

.hero-head {
	text-align: center;
	max-width: 52rem;
	margin: 0 auto 3rem;
}

.hero-head p {
	font-size: 1.2rem;
	color: var(--text-muted);
	margin: 0;
}

.hero-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
	gap: 1.5rem;
	max-width: 56rem;
	margin: 0 auto;
}

.door-card {
	background: #fff;
	color: var(--text-on-light);
	border-radius: var(--radius);
	padding: 2.2rem 1.8rem;
	text-align: center;
	box-shadow: var(--shadow);
	display: flex;
	flex-direction: column;
	gap: .4rem;
}

.door-card .door-icon {
	width: 3.4rem;
	height: 3.4rem;
	margin: 0 auto .4rem;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: rgba(0, 201, 219, .12);
}

.door-card .door-icon svg { width: 1.8rem; height: 1.8rem; fill: var(--accent); }

.door-card h3 { color: var(--dark); }

.door-card p { color: var(--text-muted-on-light); flex: 1; margin: 0 0 1.2rem; }

.door-card .door-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .6rem;
}

/* ------------------------------------------------------------------ contatori */

.stats { padding: 3.5rem 0; background: var(--dark-2); }

.stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	gap: 2rem;
	text-align: center;
}

.stat-value {
	font-family: var(--font-display);
	font-size: clamp(2.4rem, 5vw, 3.4rem);
	color: var(--accent);
	line-height: 1;
	white-space: nowrap;
}

.stat-label {
	color: var(--text-muted);
	font-size: .95rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	margin-top: .4rem;
}

/* ------------------------------------------------------------------ features */

.features { background: var(--dark-2); }

.tabs-nav {
	display: flex;
	justify-content: center;
	gap: .6rem;
	flex-wrap: wrap;
	margin-bottom: 3rem;
}

.tab-btn {
	font-family: var(--font-display);
	font-size: 1.15rem;
	letter-spacing: .12em;
	padding: .55rem 1.8rem;
	border-radius: 999px;
	border: 2px solid rgba(255, 255, 255, .15);
	background: transparent;
	color: var(--text-muted);
	cursor: pointer;
	transition: all .15s ease;
}

.tab-btn:hover { border-color: var(--accent); color: var(--accent); }

.tab-btn.active {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.feature-layout {
	display: grid;
	grid-template-columns: 1fr minmax(14rem, 18rem) 1fr;
	gap: 2rem;
	align-items: center;
}

.feature-layout .phone { text-align: center; }

.feature-layout .phone img { max-height: 34rem; }

.feature-col { display: flex; flex-direction: column; gap: 1.2rem; }

.feature-card {
	background: var(--dark-3);
	border: 1px solid rgba(255, 255, 255, .06);
	border-radius: var(--radius);
	padding: 1.4rem 1.5rem;
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	transition: transform .15s ease, border-color .15s ease;
}

.feature-card:hover {
	transform: translateY(-3px);
	border-color: rgba(0, 201, 219, .45);
}

.feature-card .fc-icon {
	flex: none;
	width: 2.6rem;
	height: 2.6rem;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: rgba(0, 201, 219, .12);
}

.feature-card .fc-icon svg {
	width: 1.35rem;
	height: 1.35rem;
	fill: none;
	stroke: var(--accent);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.feature-card h4 {
	margin: 0 0 .25rem;
	font-size: 1.05rem;
	color: var(--text);
}

.feature-card p { margin: 0; font-size: .92rem; color: var(--text-muted); }

.feature-intro {
	max-width: 40rem;
	margin: 0 auto 2rem;
	text-align: center;
	color: var(--text-muted);
}

.feature-grid-2 {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
	gap: 1.2rem;
}

@media (max-width: 900px) {
	.feature-layout { grid-template-columns: 1fr; }
	.feature-layout .phone { order: -1; }
	.feature-layout .phone img { max-height: 24rem; }
}

/* ------------------------------------------------------------------ pricing */

.pricing { background: var(--dark); }

.pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
	gap: 1.5rem;
	align-items: stretch;
}

.price-card {
	background: var(--dark-3);
	border: 2px solid rgba(255, 255, 255, .08);
	border-radius: var(--radius);
	padding: 2rem 1.7rem;
	display: flex;
	flex-direction: column;
	text-align: center;
	transition: border-color .15s ease, transform .15s ease;
}

.price-card:hover { border-color: var(--accent); transform: translateY(-4px); }

.price-card h3 { color: var(--text); }

.price-card .price-sub {
	color: var(--text-muted);
	font-size: .92rem;
	min-height: 3em;
	margin: 0 0 1rem;
}

.price-card hr {
	border: 0;
	border-top: 3px solid var(--accent);
	width: 100%;
	margin: 0 0 1.2rem;
}

.price-card ul {
	list-style: none;
	padding: 0;
	margin: 0 0 1.5rem;
	text-align: left;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: .55rem;
}

.price-card ul li {
	display: flex;
	gap: .6rem;
	align-items: baseline;
	font-size: .93rem;
	color: var(--text-muted);
}

.price-card ul li svg {
	flex: none;
	width: .85rem;
	height: .85rem;
	fill: var(--accent);
	transform: translateY(.1em);
}

.price-card .price {
	font-family: var(--font-display);
	font-size: 2.8rem;
	color: var(--accent);
	line-height: 1;
}

.price-card .frequency {
	color: var(--text-muted);
	font-size: .9rem;
	margin-bottom: 1.4rem;
}

/* ------------------------------------------------------------------ carousel (screenshots + testimonianze) */

.carousel { position: relative; }

.carousel-track {
	display: flex;
	gap: 1.2rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 1rem;
	scrollbar-width: thin;
	scrollbar-color: var(--accent) transparent;
}

.carousel-track > * { scroll-snap-align: center; flex: none; }

.carousel-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 2.8rem;
	height: 2.8rem;
	border-radius: 50%;
	border: 0;
	background: var(--accent);
	color: #fff;
	cursor: pointer;
	display: grid;
	place-items: center;
	box-shadow: 0 6px 16px rgba(0, 0, 0, .35);
	transition: background .15s ease;
}

.carousel-btn:hover { background: var(--accent-dark); }

.carousel-btn svg { width: 1.1rem; height: 1.1rem; fill: currentColor; }

.carousel-btn.prev { left: -1rem; }
.carousel-btn.next { right: -1rem; }

@media (max-width: 700px) {
	.carousel-btn { display: none; }
}

.screens .shot {
	width: min(15rem, 70vw);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: var(--shadow);
}

.screens .shot img { display: block; width: 100%; }

/* ------------------------------------------------------------------ testimonianze */

.testimonials { background: var(--dark); }

.testimonial-card {
	width: min(26rem, 85vw);
	background: var(--dark-3);
	border: 1px solid rgba(255, 255, 255, .06);
	border-radius: var(--radius);
	padding: 1.8rem 1.6rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.testimonial-card .t-logo {
	height: 4.5rem;
	display: flex;
	align-items: center;
}

.testimonial-card .t-logo img {
	max-height: 100%;
	max-width: 9rem;
	object-fit: contain;
}

.testimonial-card blockquote {
	margin: 0;
	font-size: .92rem;
	color: var(--text-muted);
	flex: 1;
}

.testimonial-card .t-author {
	font-weight: 700;
	color: var(--accent);
	font-size: .95rem;
}

/* ------------------------------------------------------------------ download app */

.download { background: var(--dark-2); }

.download-grid {
	display: grid;
	grid-template-columns: 1fr 1.1fr;
	gap: 2.5rem;
	align-items: center;
}

.download-grid p { color: var(--text-muted); font-size: 1.05rem; }

.store-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: .8rem;
	margin-top: 1.5rem;
}

@media (max-width: 800px) {
	.download-grid { grid-template-columns: 1fr; text-align: center; }
	.store-buttons { justify-content: center; }
}

/* ------------------------------------------------------------------ contatti */

.contact { background: var(--dark); }

.contact-info {
	list-style: none;
	padding: 0;
	margin: 0 0 2.5rem;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.2rem 2.5rem;
	color: var(--text-muted);
}

.contact-info li { display: flex; align-items: center; gap: .55rem; }

.contact-info svg {
	width: 1.05rem;
	height: 1.05rem;
	fill: none;
	stroke: var(--accent);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	flex: none;
}

.contact-form {
	max-width: 34rem;
	margin: 0 auto;
	background: var(--purple);
	border-radius: var(--radius);
	padding: 2rem 1.8rem;
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
}

.contact-form label {
	display: block;
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: var(--text-muted);
	margin-bottom: .35rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
	width: 100%;
	background: rgba(255, 255, 255, .07);
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 10px;
	padding: .7rem .9rem;
	color: var(--text);
	font: inherit;
	transition: border-color .15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
	outline: none;
	border-color: var(--accent);
}

.contact-form textarea { min-height: 8rem; resize: vertical; }

.contact-form .privacy-check {
	display: flex;
	gap: .6rem;
	align-items: flex-start;
	font-size: .85rem;
	color: var(--text-muted);
}

.contact-form .privacy-check input { margin-top: .25rem; }

.contact-form .form-note {
	font-size: .8rem;
	color: var(--text-muted);
	text-align: center;
	margin: 0;
}

/* ------------------------------------------------------------------ footer */

.footer {
	background: var(--dark-2);
	border-top: 1px solid rgba(255, 255, 255, .06);
	padding: 3.5rem 0 0;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
	gap: 2rem;
	padding-bottom: 2.5rem;
}

.footer h4 {
	font-family: var(--font-display);
	font-size: 1.3rem;
	letter-spacing: .08em;
	margin: 0 0 .8rem;
}

.footer p, .footer li { color: var(--text-muted); font-size: .93rem; }

.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }

.social-links { display: flex; gap: .7rem; }

.social-links a {
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	background: var(--dark-3);
	display: grid;
	place-items: center;
	transition: background .15s ease;
}

.social-links a:hover { background: var(--accent); }

.social-links svg { width: 1.1rem; height: 1.1rem; fill: var(--text); }

.social-links a:hover svg { fill: #fff; }

.copyright {
	border-top: 1px solid rgba(255, 255, 255, .06);
	padding: 1.4rem 0;
	text-align: center;
}

.copyright p { margin: .2rem 0; font-size: .82rem; color: var(--text-muted); }

/* ------------------------------------------------------------------ reveal on scroll */

.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; transform: none; transition: none; }
}
