/* ===== FAQ Styles ===== */

.faq-list {
	width: 100%;
}

.faq-item {
	border-bottom: 1px solid rgba(44, 44, 44, 0.2);
}

.faq-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.3rem 0;
	min-height: 44px;
	cursor: pointer;
	transition: background-color 0.15s ease;
	border-radius: 2px;
}

.faq-header:hover {
	background-color: rgba(44, 44, 44, 0.04);
}

.faq-header:focus-visible {
	outline: 2px solid rgba(44, 44, 44, 0.4);
	outline-offset: 3px;
	border-radius: 2px;
}

.faq-question {
	font-family: 'Josefin Sans', sans-serif;
	font-size: 0.95rem;
	font-weight: 400;
	color: #2c2c2c;
	line-height: 1.5;
}

.faq-toggle {
	font-family: 'Josefin Sans', sans-serif;
	font-size: 1.4rem;
	font-weight: 300;
	color: #2c2c2c;
	transition: transform 0.3s ease;
	flex-shrink: 0;
	margin-left: 1rem;
}

.faq-item.open .faq-toggle {
	transform: rotate(45deg);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease;
}

.faq-item.open .faq-answer {
	max-height: 200px;
}

.faq-answer p {
	font-family: 'Josefin Sans', sans-serif;
	font-size: 0.85rem;
	font-weight: 300;
	color: #3a3a3a;
	line-height: 1.8;
	padding-bottom: 1.2rem;
	margin: 0;
}

/* ===== Rifugio Accordion Styles ===== */

.rifugio-sections {
	width: 100%;
	margin-top: 1.5rem;
}

.rifugio-section {
	border-bottom: 1px solid rgba(44, 44, 44, 0.2);
}

.rifugio-section-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.3rem 0;
	min-height: 44px;
	cursor: pointer;
	transition: background-color 0.15s ease;
	border-radius: 2px;
}

.rifugio-section-header:hover {
	background-color: rgba(44, 44, 44, 0.04);
}

.rifugio-section-header:focus-visible {
	outline: 2px solid rgba(44, 44, 44, 0.4);
	outline-offset: 3px;
	border-radius: 2px;
}

.rifugio-section-title {
	font-family: 'Josefin Sans', sans-serif;
	font-size: 0.95rem;
	font-weight: 400;
	color: #2c2c2c;
	line-height: 1.5;
	text-transform: uppercase;
	letter-spacing: 0.15rem;
}

.rifugio-section-toggle {
	font-family: 'Josefin Sans', sans-serif;
	font-size: 1.4rem;
	font-weight: 300;
	color: #2c2c2c;
	transition: transform 0.3s ease;
	flex-shrink: 0;
	margin-left: 1rem;
}

.rifugio-section.open .rifugio-section-toggle {
	transform: rotate(45deg);
}

.rifugio-section-content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.45s ease-out;
}

/* open state max-height is set via JS using scrollHeight */

.rifugio-section-content p {
	font-family: 'Josefin Sans', sans-serif;
	font-size: 0.85rem;
	font-weight: 300;
	color: #3a3a3a;
	line-height: 1.8;
	padding-bottom: 1rem;
	margin: 0;
}

.rifugio-section-content iframe {
	margin-top: 1rem;
}

/* ===== Bank Card ===== */

.bank-card {
	perspective: 800px;
	margin-top: 2rem;
	cursor: pointer;
	border-radius: 10px;
}

.bank-card:focus-visible {
	outline: 2px solid rgba(44, 44, 44, 0.4);
	outline-offset: 4px;
	border-radius: 10px;
}

.bank-card-inner {
	position: relative;
	width: 100%;
	aspect-ratio: 1.6 / 1.15;
	transition: transform 0.8s cubic-bezier(0.4, 0.0, 0.2, 1);
	transform-style: preserve-3d;
}

.bank-card.flipped .bank-card-inner {
	transform: rotateY(180deg);
}

.bank-card-front,
.bank-card-back {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	backface-visibility: hidden;
	border-radius: 10px;
	box-shadow: 0 2px 12px rgba(44, 44, 44, 0.08);
	border: 1px solid rgba(44, 44, 44, 0.08);
}

.bank-card-front {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: linear-gradient(145deg, #fdfaf5 0%, #f0ebe3 100%);
}

.bank-card-front-text {
	font-family: 'Sacramento', cursive;
	font-size: 1.6rem;
	color: #2c2c2c;
}

.bank-card-front-hint {
	font-family: 'Josefin Sans', sans-serif;
	font-size: 0.7rem;
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: 0.2rem;
	color: #3a3a3a;
	opacity: 0.8;
	margin-top: 0.8rem;
}

.bank-card-back {
	transform: rotateY(180deg);
	background: linear-gradient(145deg, #fdfaf5 0%, #f0ebe3 100%);
	padding: 1.4rem 1.5rem 1.2rem;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.bank-field {
	padding: 0.2rem 0;
}

.bank-label {
	font-family: 'Josefin Sans', sans-serif;
	font-size: 0.65rem;
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: 0.2rem;
	color: #3a3a3a;
	display: block;
	margin-bottom: 0.1rem;
}

.bank-value {
	font-family: 'Josefin Sans', sans-serif;
	font-size: 0.75rem;
	font-weight: 400;
	color: #2c2c2c;
	display: inline-block;
	padding: 0.15rem 0.3rem;
	border-radius: 3px;
	transition: background-color 0.2s ease, color 0.2s ease;
	cursor: pointer;
}

.bank-value:hover {
	background-color: rgba(44, 44, 44, 0.06);
}

.bank-value:focus-visible {
	outline: 2px solid rgba(44, 44, 44, 0.4);
	outline-offset: 2px;
	border-radius: 3px;
}

.bank-value.copied {
	background-color: rgba(120, 80, 30, 0.1);
	color: rgba(100, 60, 10, 0.85);
}

.bank-card-back-hint {
	font-family: 'Josefin Sans', sans-serif;
	font-size: 0.7rem;
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: 0.15rem;
	color: #3a3a3a;
	opacity: 0.75;
	text-align: center;
}

/* ===== Viaggio Message Form ===== */

.trip-message-container {
	margin-top: 2rem;
	padding: 1.4rem;
	background: linear-gradient(145deg, #fdfaf5 0%, #f0ebe3 100%);
	border: 1px solid rgba(44, 44, 44, 0.08);
	border-radius: 10px;
	box-shadow: 0 2px 12px rgba(44, 44, 44, 0.08);
}

.trip-message-title {
	font-family: 'Josefin Sans', sans-serif;
	font-size: 0.95rem;
	font-weight: 400;
	letter-spacing: 0.15rem;
	line-height: 1.5;
	text-transform: uppercase;
	color: #2c2c2c;
	margin: 0 0 1rem;
	text-align: center;
}

.trip-message-form {
	display: grid;
	gap: 0.8rem;
}

.trip-form-group {
	margin: 0;
}

.trip-form-control {
	width: 100%;
	font-family: 'Josefin Sans', sans-serif;
	font-size: 0.85rem;
	font-weight: 300;
	letter-spacing: 0.02rem;
	color: #2c2c2c;
	background-color: rgba(255, 255, 255, 0.65);
	border: 1px solid rgba(44, 44, 44, 0.2);
	border-radius: 6px;
	padding: 0.75rem 0.9rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.trip-form-control::placeholder {
	color: rgba(58, 58, 58, 0.75);
	text-transform: lowercase;
}

.trip-form-textarea::placeholder {
	color: rgba(58, 58, 58, 0.75);
	text-transform: lowercase;
}

.trip-form-control:focus {
	outline: none;
	border-color: rgba(120, 80, 30, 0.45);
	background-color: rgba(255, 255, 255, 0.85);
	box-shadow: 0 0 0 3px rgba(120, 80, 30, 0.12);
}

.trip-form-textarea {
	resize: vertical;
	min-height: 130px;
	line-height: 1.6;
}

.trip-submit-btn {
	justify-self: center;
	min-width: 180px;
	font-family: 'Josefin Sans', sans-serif;
	font-size: 0.72rem;
	font-weight: 400;
	letter-spacing: 0.2rem;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #ffffff !important;
	background-color: #2c2c2c;
	border: 1px solid #2c2c2c;
	border-radius: 6px;
	padding: 0.8rem 1.3rem;
	transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
	cursor: pointer;
}

.trip-submit-btn:hover {
	background-color: rgba(44, 44, 44, 0.9);
	transform: translateY(-1px);
}

.trip-submit-btn:focus-visible {
	outline: 2px solid rgba(120, 80, 30, 0.45);
	outline-offset: 3px;
}

@media screen and (max-width: 736px) {
	.trip-message-container {
		padding: 1rem;
	}

	.trip-submit-btn {
		width: 100%;
		min-width: 0;
	}
}
