/* ============================================
   Base styles, typography, container, buttons
   ============================================ */

* {
	box-sizing: border-box;
}

html {
	font-size: var(--ra-fs-base);
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--ra-font-body);
	font-size: 16px;
	line-height: var(--ra-lh-base);
	color: var(--ra-text);
	background: var(--ra-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img, svg {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--ra-red-bright);
	text-decoration: none;
	transition: color var(--ra-transition);
}
a:hover { color: var(--ra-red); }

/* === Container === */
.container {
	max-width: var(--ra-container);
	margin-inline: auto;
	padding-inline: var(--ra-gutter);
	width: 100%;
}

/* === Typography === */
h1, h2, h3, h4 {
	margin: 0 0 var(--ra-space-4);
	line-height: 1.15;
	color: var(--ra-text);
	font-family: var(--ra-font-ui);
	font-weight: 600;
}

.ra-section-title {
	font-size: clamp(28px, 4.5vw, 48px);
	color: var(--ra-red);
	font-weight: 700;
	margin: 0 0 var(--ra-space-5);
}

.ra-section-title--script {
	font-family: var(--ra-font-script);
	font-weight: 400;
	font-size: clamp(36px, 5.5vw, 64px);
	line-height: 1.05;
}

.ra-section-title--center {
	text-align: center;
}

.ra-eyebrow {
	font-family: var(--ra-font-ui);
	color: var(--ra-red);
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	margin: 0 0 var(--ra-space-3);
}
.ra-eyebrow--center { text-align: center; }

/* === Buttons === */
.ra-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 28px;
	font-family: var(--ra-font-ui);
	font-weight: 600;
	font-size: 16px;
	line-height: 1;
	border-radius: var(--ra-radius-pill);
	border: 2px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: all var(--ra-transition);
	white-space: nowrap;
}
.ra-btn--red {
	background: var(--ra-red-bright);
	color: #fff;
	border-color: var(--ra-red-bright);
}
.ra-btn--red:hover {
	background: var(--ra-red);
	border-color: var(--ra-red);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: var(--ra-shadow-md);
}
.ra-btn--coral {
	background: var(--ra-coral);
	color: #fff;
	border-color: var(--ra-coral);
}
.ra-btn--coral:hover {
	background: var(--ra-red-bright);
	border-color: var(--ra-red-bright);
	color: #fff;
}
.ra-btn--outline {
	background: transparent;
	color: #fff;
	border-color: rgba(255,255,255,0.7);
}
.ra-btn--outline:hover {
	background: #fff;
	color: var(--ra-red);
	border-color: #fff;
}
.ra-btn--whatsapp {
	background: #25D366;
	color: #fff;
	border-color: #25D366;
}
.ra-btn--whatsapp:hover {
	background: #1eb557;
	border-color: #1eb557;
	color: #fff;
}
.ra-btn--lg {
	padding: 18px 36px;
	font-size: 17px;
}
.ra-btn--small {
	padding: 10px 18px;
	font-size: 14px;
}
.ra-btn--block {
	display: flex;
	width: 100%;
}

/* === Icons === */
.ra-icon {
	width: 20px;
	height: 20px;
	display: inline-block;
	vertical-align: middle;
	fill: currentColor;
}
.ra-icon--sm { width: 16px; height: 16px; }
.ra-icon--lg { width: 32px; height: 32px; }
.ra-icon--coral { color: var(--ra-coral); }

.ra-icon--missing {
	display: inline-block;
	width: 16px;
	height: 16px;
	background: var(--ra-line);
	border-radius: 2px;
}

/* === Star rating === */
.ra-stars { display: inline-flex; gap: 2px; font-size: 20px; line-height: 1; }
.ra-star--full,
.ra-star--half  { color: var(--ra-coral); }
.ra-star--empty { color: var(--ra-coral-light); }

/* === Skip link === */
.skip-link {
	position: absolute;
	left: -9999px;
}
.skip-link:focus {
	left: 8px;
	top: 8px;
	padding: 8px 16px;
	background: var(--ra-navy);
	color: #fff;
	z-index: 9999;
	border-radius: var(--ra-radius-sm);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px,1px,1px,1px);
	white-space: nowrap;
}

/* === Section spacing === */
.ra-block {
	padding-block: var(--ra-space-9);
	position: relative;
}
@media (max-width: 768px) {
	.ra-block { padding-block: var(--ra-space-8); }
}

/* === Wave decorations === */
.ra-wave-down,
.ra-wave-up {
	position: absolute;
	left: 0; right: 0;
	width: 100%;
	height: 80px;
	display: block;
}
.ra-wave-down { bottom: -1px; }
.ra-wave-up   { top: -1px; transform: scaleY(-1); }

/* === Accessibility: focus visibili ovunque === */
*:focus { outline: none; }
*:focus-visible {
	outline: 3px solid var(--ra-red-bright);
	outline-offset: 2px;
	border-radius: 4px;
}
button:focus-visible,
.ra-btn:focus-visible {
	outline-offset: 4px;
}

/* === Reduced motion: rispetta preferenza utente === */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* === Print styles minimi === */
@media print {
	.ra-topbar, .ra-header, .ra-footer, .ra-form, .ra-btn { display: none !important; }
	body { color: #000; background: #fff; font-size: 12pt; }
	a::after { content: ' (' attr(href) ')'; font-size: 0.85em; }
}
