﻿body {
	background-color: #f8f9fa;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	padding-top: 80px!important;
}


/* Stili generali TODO: rivedere */
h1, h2, h3 {
	font-weight: 400;
	margin-bottom: 15px;
}

h1 {
	font-size: 2.5rem;
	font-style: italic;
}

h2 {
	font-size: 3.2rem;
	font-weight: 350;
	/* font-style: italic; */
}

h3 {
	font-size: 2.8rem;
	font-weight: 300;
	/* font-style: italic; */
	margin-bottom: 5px;
}

h4 {
	font-weight: 500;
	font-size: 1.55rem;
}

h5 {
	font-weight: 300;
	font-size: 1.3rem;
}

p {
	margin-bottom: 15px;
	font-size: 1.3rem;
}

small {
  color: #0078D9 !important;
  font-weight: 400;
  font-style: italic;
}

.navbar-brand {
	font-weight: bold;
}

main {
	flex: 1;
}


/* Modern Footer Styles */
.modern-footer {
	margin-top: auto;
	position: relative;
	overflow: hidden;
	/* opacity: 0.9; */
	background-color: #0078D9;
	padding-top: 100px;
}

.modern-footer::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	
	background: linear-gradient(180deg, #ffffff, #0078D9);
}

.footer-brand img {
	filter: brightness(0) invert(1);
}

.text-light-gray {
	color: rgba(255, 255, 255, 0.8) !important;
}

.footer-links li {
	margin-bottom: 0.5rem;
}

.footer-link {
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	transition: all 0.3s ease;
	font-size: 0.9rem;
}

.footer-link:hover {
	color: #ffffff;
	transform: translateX(5px);
}

.footer-link.active {
	color: #ffffff;
	font-weight: 600;
}

.social-links {
	margin-top: 1rem;
}

.social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	border-radius: 50%;
	text-decoration: none;
	transition: all 0.3s ease;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
	background: #ffffff;
	color: #0078D9;
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.contact-item {
	display: flex;
	align-items: center;
	font-size: 0.9rem;
}

.contact-item i {
	width: 16px;
	text-align: center;
}

.footer-divider {
	border-color: #fff;
	margin: 2rem 0 1.5rem 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.modern-footer .col-md-6.text-md-end {
		text-align: center !important;
		margin-top: 1rem;
	}
	
	.footer-link.me-3 {
		margin-right: 1rem !important;
		margin-bottom: 0.5rem;
		display: inline-block;
	}
}



.nav_logo {
	margin-right: 10px;
}

.navbar-brand {
	transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand:hover {
	transform: scale(1.08);
}

.navbar-nav .nav-link.active {
	color: #0077D8 !important;
	font-weight: 600;
	position: relative;
	padding-bottom: 0.25rem !important;
}

.nav-link {
	position: relative;
}
.nav-link:not(.login-btn):hover::after {
	content: '';
	position: absolute;
	bottom: 2px; /* Posiziona la linea all'interno del padding */
	left: 50%;
	transform: translateX(-50%);
	width: 20px;
	height: 2px;
	background-color: #0077D8;
	border-radius: 1px;
	display: block;
}

.navbar-nav .nav-link.active::after {
	content: '';
	position: absolute;
	bottom: 2px; /* Posiziona la linea all'interno del padding */
	left: 50%;
	transform: translateX(-50%);
	width: 20px;
	height: 2px;
	background-color: #0077D8;
	border-radius: 1px;
}



/* Fix dropdown menu width to match button */
.nav-item .dropdown-menu {
  min-width: 100%; /* Ensure the dropdown menu is at least as wide as the button */
}


.login-btn {
	border: 3px solid #0077D8;
	color: #0077D8;
	border-radius: 0.75rem;
	transition: background-color 0.3s;
}

.login-btn:hover {
	border: 3px solid #0077D8;
	background-color: #0077D8;
	color: #fff;
	border-radius: 0.75rem;
	transition: background-color 0.3s;
}

.login-btn:active {
 	border: 3px solid #0077D8 !important;
	background-color: #0077D8 !important;
	color: #fff;
	border-radius: 0.75rem;
	transition: background-color 0.3s;
}

.login-btn.nav-link.show {
	border: 3px solid #0077D8 !important;
	background-color: #0077D8 !important;
	color: #fff !important;
	border-radius: 0.75rem;
	transition: background-color 0.3s;
}

.logout-btn:active {
	background-color: inherit !important;
	color: #fff !important;
}

.logout-btn {
	border: 2px solid #dc3545 ; /* bootstrap red */
	color: #dc3545;
	border-radius: 0.75rem;
	transition: background-color 0.3s;
}

.logout-btn:hover {
	background-color: #dc3545;
	color: #fff;
}

.logout-btn:active {
  color: #dc3545;
}

