﻿/* ========================================
   STYLE - Global Styles
   ======================================== */

/* Typography */

@font-face {
	font-family: Inter;
	src: local("Inter Light"), local("Inter-Light"), url(/includes/fonts/Inter-Light.woff2) format("woff2");
	font-weight: 300;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: Inter;
	src: local("Inter Regular"), local("Inter-Regular"), url(/includes/fonts/Inter-Regular.woff2) format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: Inter;
	src: local("Inter Medium"), local("Inter-Medium"), url(/includes/fonts/Inter-Medium.woff2) format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: Inter;
	src: local("Inter SemiBold"), local("Inter-SemiBold"), url(/includes/fonts/Inter-SemiBold.woff2) format("woff2");
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: Inter;
	src: local("Inter Bold"), local("Inter-Bold"), url(/includes/fonts/Inter-Bold.woff2) format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: Inter;
	src: local("Inter ExtraBold"), local("Inter-ExtraBold"), url(/includes/fonts/Inter-ExtraBold.woff2) format("woff2");
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: Inter;
	src: local("Inter Light Italic"), local("Inter-LightItalic"), url(/includes/fonts/Inter-LightItalic.woff2) format("woff2");
	font-weight: 300;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: Inter;
	src: local("Inter Italic"), local("Inter-Italic"), url(/includes/fonts/Inter-Italic.woff2) format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: Inter;
	src: local("Inter Medium Italic"), local("Inter-MediumItalic"), url(/includes/fonts/Inter-MediumItalic.woff2) format("woff2");
	font-weight: 500;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: Inter;
	src: local("Inter SemiBold Italic"), local("Inter-SemiBoldItalic"), url(/includes/fonts/Inter-SemiBoldItalic.woff2) format("woff2");
	font-weight: 600;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: Inter;
	src: local("Inter Bold Italic"), local("Inter-BoldItalic"), url(/includes/fonts/Inter-BoldItalic.woff2) format("woff2");
	font-weight: 700;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: Inter;
	src: local("Inter ExtraBold Italic"), local("Inter-ExtraBoldItalic"), url(/includes/fonts/Inter-ExtraBoldItalic.woff2) format("woff2");
	font-weight: 800;
	font-style: italic;
	font-display: swap;
}

html {
	scroll-behavior: smooth;
}

body {
	/*font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;*/
	font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	color: #1a1a1a;
	line-height: 1.6;
	font-weight: 400;
	overflow-x: hidden;
}

@media (min-width: 1199px) {
	body {
		font-size: 1.125rem;
		line-height: 1.44;
	}
}

h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
	/*font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;*/
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1rem;
}

h1,
.h1 {
	font-size: 2.5rem;
}

h2,
.h2 {
	font-size: 2rem;
}

h3,
.h3 {
	font-size: 1.5rem;
}

p {
	margin-bottom: 1rem;
}

a {
	color: var(--color-brand);
	transition: color 0.3s ease;
}

a:hover {
	color: var(--color-link-hover);
}

strong {
	color: var(--color-brand);
}

li::marker {
	color: var(--color-brand);
}

/* ========================================
   FORM ELEMENTS - Global Styles
   ======================================== */

select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="search"] {
	padding: 0.75rem 1.5rem;
	border: 2px solid var(--color-brand);
	border-radius: var(--radius-pill);
	font-size: 1rem;
	color: var(--color-brand);
	background-color: #fff;
	/*font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;*/
	transition: all 0.3s ease;
	font-weight: 500;
}

select:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="tel"]:hover,
input[type="date"]:hover,
input[type="search"]:hover {
	background-color: var(--color-brand-light);
}

select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
input[type="search"]:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 44, 95, 0.1);
}

select {
	cursor: pointer;
	padding-right: 2.5rem;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23002C5F' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 1rem center;
}

input::placeholder {
	color: var(--color-brand);
	opacity: 0.7;
}

textarea {
	padding: 0.75rem 1.5rem;
	border: 2px solid var(--color-brand);
	border-radius: 16px;
	font-size: 1rem;
	color: var(--color-brand);
	background-color: #fff;
	/*font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;*/
	transition: all 0.3s ease;
	font-weight: 500;
	resize: vertical;
	min-height: 120px;
}

textarea:hover {
	background-color: var(--color-brand-light);
}

textarea:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 44, 95, 0.1);
}

textarea::placeholder {
	color: var(--color-brand);
	opacity: 0.7;
}

/* ========================================
   COLORI - Design Tokens
   ======================================== */

:root {
	/* ========================================
	 COLORI PRIMARI (Brand)
	 ======================================== */

	/* Colore principale brand */
	--color-brand: #002C5F;
	--color-brand-dark: #02438e;
	--color-brand-light: #e4f1fd;

	/* Colore secondario/Accent */
	--color-accent: #3076B6;
	--color-accent-hover: #0072ce;

	/* ========================================
	 COLORI TESTO
	 ======================================== */

	--color-text-primary: #1a1a1a;
	--color-text-secondary: #666;
	--color-text-inverse: #fff;

	/* ========================================
	 COLORI BACKGROUND
	 ======================================== */

	--color-bg-primary: #fff;
	--color-bg-secondary: #f8f8f8;
	--color-bg-tertiary: #bdd6ed3e;
	/* Overlay/blur light blue */
	--color-bg-footer: #085392;

	/* ========================================
	 COLORI BORDER
	 ======================================== */

	--color-border-primary: #e0e0e0;

	/* ========================================
	 COLORI STATI (per interazioni)
	 ======================================== */

	--color-link-hover: #0072ce;
	--color-focus-ring: rgba(0, 44, 95, 0.5);
	--color-focus-ring-light: rgba(0, 44, 95, 0.3);

	/* ========================================
	 BORDER RADIUS
	 ======================================== */

	--radius-pill: 9999px;
}

/* Utilities */
.text-center {
	text-align: center;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: var(--color-brand);
	color: var(--color-text-inverse);
	padding: 0.75rem 1.5rem;
	text-decoration: none;
	z-index: 10000;
	border-radius: 0 0 4px 0;
	font-weight: 600;
}

.skip-link:focus {
	top: 0;
	outline: 3px solid var(--color-focus-ring);
	outline-offset: 2px;
}

/* ========================================
   FLEXBOX HELPERS
   ======================================== */

/* Display */
.d-flex {
	display: flex;
}

.d-inline-flex {
	display: inline-flex;
}

/* Flex Direction */
.flex-row {
	flex-direction: row;
}

.flex-row-reverse {
	flex-direction: row-reverse;
}

.flex-col {
	flex-direction: column;
}

.flex-col-reverse {
	flex-direction: column-reverse;
}

/* Flex Wrap */
.flex-wrap {
	flex-wrap: wrap;
}

.flex-nowrap {
	flex-wrap: nowrap;
}

.flex-wrap-reverse {
	flex-wrap: wrap-reverse;
}

/* Justify Content */
.justify-start {
	justify-content: flex-start;
}

.justify-end {
	justify-content: flex-end;
}

.justify-center {
	justify-content: center;
}

.justify-between {
	justify-content: space-between;
}

.justify-around {
	justify-content: space-around;
}

.justify-evenly {
	justify-content: space-evenly;
}

/* Align Items */
.align-start {
	align-items: flex-start;
}

.align-end {
	align-items: flex-end;
}

.align-center {
	align-items: center;
}

.align-baseline {
	align-items: baseline;
}

.align-stretch {
	align-items: stretch;
}

/* Align Self */
.align-self-start {
	align-self: flex-start;
}

.align-self-end {
	align-self: flex-end;
}

.align-self-center {
	align-self: center;
}

.align-self-baseline {
	align-self: baseline;
}

.align-self-stretch {
	align-self: stretch;
}

/* Gap */
.gap-0 {
	gap: 0;
}

.gap-1 {
	gap: 0.25rem;
}

.gap-2 {
	gap: 0.5rem;
}

.gap-3 {
	gap: 0.75rem;
}

.gap-4 {
	gap: 1rem;
}

.gap-5 {
	gap: 1.25rem;
}

.gap-6 {
	gap: 1.5rem;
}

.gap-8 {
	gap: 2rem;
}

.gap-10 {
	gap: 2.5rem;
}

.gap-12 {
	gap: 3rem;
}

/* Flex Grow/Shrink */
.flex-1 {
	flex: 1 1 0%;
}

.flex-auto {
	flex: 1 1 auto;
}

.flex-initial {
	flex: 0 1 auto;
}

.flex-none {
	flex: none;
}

.flex-grow-0 {
	flex-grow: 0;
}

.flex-grow-1 {
	flex-grow: 1;
}

.flex-shrink-0 {
	flex-shrink: 0;
}

.flex-shrink-1 {
	flex-shrink: 1;
}