/*
Theme Name: Swimo
Theme URI: https://swimo.deside.it
Author: DEside
Author URI: https://deside.it
Description: Tema custom per Swimo
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: swimo
*/

/* ---- @font-face ---- */

@font-face {
	font-family: "LT Wave";
	src: url("fonts/LTWave-3/LTWave-Bold.otf") format("opentype");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Haskoy";
	src: url("fonts/Haskoy/Haskoy-Regular.otf") format("opentype");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Haskoy";
	src: url("fonts/Haskoy/Haskoy-Bold.otf") format("opentype");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

/* ---- Base ---- */

body {
	margin: 0;
	font-family: "Haskoy", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	line-height: 1.5;
	color: #140000;
	background-color: #FEF7F0;
}

.site-main {
	padding: 2rem 1.25rem;
}

.site-title {
	font-family: "LT Wave", serif;
	font-weight: 700;
}

.site-title a {
	text-decoration: none;
	color: inherit;
}

.site-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid rgba(20, 0, 0, 0.2);
}

.site-header__actions {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.main-navigation ul {
	display: flex;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-navigation a {
	text-decoration: none;
	color: inherit;
}

.language-switcher__list {
	display: flex;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.language-switcher__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	padding: 0.35rem 0.55rem;
	border: 1px solid rgba(20, 0, 0, 0.2);
	border-radius: 999px;
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	color: #140000;
	transition: all 0.2s ease;
}

.language-switcher__link:hover,
.language-switcher__link:focus-visible {
	border-color: #140000;
	outline: none;
}

.language-switcher__item.is-current .language-switcher__link {
	background: #003D23;
	border-color: #003D23;
	color: #FFFCFC;
}

.hero {
	max-width: 64rem;
	margin: 0 auto 2rem;
	padding: 2rem;
	border: 1px solid rgba(20, 0, 0, 0.2);
	border-radius: 0.75rem;
	background: #FFFCFC;
}

.hero__title {
	margin: 0 0 0.5rem;
	font-family: "LT Wave", serif;
	font-weight: 700;
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	line-height: 1.3;
}

.hero__subtitle {
	margin: 0 0 1.25rem;
	font-size: 1.05rem;
	color: #140000;
	line-height: 1.5;
}

.hero__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1rem;
	border-radius: 0.5rem;
	background: #B3181B;
	color: #FFFCFC;
	text-decoration: none;
	font-weight: 700;
	transition: background-color 0.2s ease;
}

.hero__cta:hover,
.hero__cta:focus-visible {
	background: #003D23;
	outline: none;
}
