html, body, h1, h2, h3, h4, h5, h6, p, a, button, input, select, textarea {
    font-family: 'Outfit', sans-serif !important;
}
/* Wrapper che occupa tutto il viewport */
/* Menu Top */
.menu-top-wrapper {
	background-color: #3357a5;
}

.menu-top {
	height: 25px; /* più basso */
	min-height: 25px;
	padding-top: 0;
	padding-bottom: 0;
}

.menu-top .nav-link {
	color: #fff !important; /* link bianchi */
	font-size: 0.85rem;
	padding: 0 10px;
	line-height: 25px; /* centrati verticalmente */
}

.menu-main-wrapper {
	background-color: #fff;
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
}
.hero-wrapper {
	position: relative;
	width: 100%;
}
.blue-section-wrapper {
	background-color: #3357a5;
	width: 100%;
}

/* Logo Section */
.logo-section {
	background-color: #fff;
	height: 150px; /* ridotto del 30% */
}
.logo-section .logo-img {
	max-height: 100px; /* proporzionato */
}
/* LOGO HEADER */
.header-logo {
  max-width: 100%;
  height: auto;
}

/* Sistemazione logo centrale su mobile */
@media (max-width: 991px) {
  .navbar .navbar-brand {
    margin: 0 auto;
    padding: 0;
    position: relative;
    left: 0;
    transform: none;
  }

  .navbar .navbar-brand img {
    max-width: 180px;   /* regola qui se lo vuoi più grande/piccolo */
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}


/* Menu Main */
.menu-main {
	background-color: #fff;
	height: 50px;
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
}
.menu-main .nav-link {
	color: #3357a5 !important;
	font-weight: 500;
	padding: 0 30px;
	height: 50px;
	display: flex;
	align-items: center;
	border-left: 1px solid #ddd;
	border-right: 1px solid #ddd;
}
.menu-main .nav-link:hover,
.menu-main .dropdown-item:hover {
	color: #fff !important;
	background-color: #3357a5;
}

/* Rimuove la freccia automatica di Bootstrap */
.menu-main .dropdown-toggle::after {
	display: none !important;
}

/* Icona freccetta ▼ nostra */
.menu-main .nav-link .fa-caret-down {
	margin-left: 5px;
	font-size: 0.8em;
}

/* Overlay testo e icone sopra immagine */
.main-image {
	position: relative;
}
.main-image img {
	margin-top: 20px;
	border-radius: 8px;
}
/* Overlay testo nell’hero */
.overlay-text {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0,0,0,0.3); /* sfondo semitrasparente */
}
.main-title {
	font-size: 3rem; /* più grande */
	font-weight: bold;
	max-width: 75%;
}

/* Esagoni */
.hexagon {
	width: 250px; /* più grande */
	aspect-ratio: 1 / 1;
	background: #fff;
	clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
	transition: transform 0.3s;
}
.hexagon:hover {
	transform: scale(1.08);
}
.hex-content {
	text-align: center;
	color: #3357a5;
}
.hex-content i {
	display: block;
	margin-bottom: 15px;
	font-size: 2.5rem;
}
.hex-content h4 {
	font-size: 1.3rem;
	font-weight: 700;
	margin: 0;
}
/* Wrapper esagoni */
.esagoni-wrapper {
	gap: 80px !important; /* spazio tra gli esagoni */
}

/* Più spazio su desktop ampio */
@media (min-width: 1200px) {
	.esagoni-wrapper {
		gap: 120px !important;
	}
}

/* Mobile: esagoni in colonna e più piccoli */
@media (max-width: 767px) {
	.esagoni-wrapper {
		flex-direction: column !important;
		align-items: center;
		gap: 40px !important; /* meno spazio verticale */
	}

	.hexagon {
		width: 180px;   /* ridotto da 250px */
	}

	.hex-content i {
		font-size: 2rem; /* riduco un po' l'icona */
		margin-bottom: 10px;
	}

	.hex-content h4 {
		font-size: 1.1rem; /* testo leggermente più piccolo */
	}
}
/* Riga blu sotto immagine */
.blue-line {
	width: 200px;
	height: 4px;
	background-color: #3357a5;
	margin-top: 40px;
	margin-bottom: 20px;
	border-radius: 2px;
}

/* Titolo sezione */
.section-title {
	color: #3357a5;
	font-size: 2.5rem;
	font-weight: 700;
}

/* Testo descrittivo */
.section-text {
	max-width: 90%;
	line-height: 1.7;
	font-size: 1.1rem;
	color: #333;
}
/* Sezione blu */
.blue-section {
	background-color: #3357a5;
}

/* Testo */
.blue-section p {
	font-size: 1.1rem;
	line-height: 1.7;
}

/* Esagono immagine */
.hexagon-img {
	width: 280px;
	aspect-ratio: 1 / 1;
	clip-path: polygon(50% 0%, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%);
	overflow: hidden;
}
.hexagon-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* SVG decorativi */
.hex-outline {
	position: absolute;
}
.small-hex {
	width: 60px;
	height: 60px;
}
.medium-hex {
	width: 100px;
	height: 100px;
}

/* Posizionamento */
.top-left {
	top: -20px;
	left: 10%;
}
.top-right {
	top: -30px;
	right: 15%;
}
.bottom-right {
	bottom: -20px;
	right: 10%;
}
/* Sezione clinico-scientifica */
.clinical-section {
	background-color: #fff;
}

.clinical-title {
	color: #3357a5;
	font-size: 2rem;
	font-weight: 700;
}

.clinical-subtitle {
	color: #222;
	font-size: 1.2rem;
	font-weight: 500;
}

.clinical-text {
	font-size: 0.95rem;
	color: #333;
	margin-top: 10px;
	line-height: 1.4;
}

/* Barretta decorativa sotto le immagini */
.bar {
	width: 60px;
	height: 6px;
	background-color: #333;
	margin: 0 auto 10px;
	border-radius: 3px;
}
/* Contenitore immagini uniformi */
.img-box {
	width: 100%;
	height: 200px; /* altezza fissa */
	overflow: hidden;
	border-radius: 8px;
}
.img-box img {
	width: 100%;
	height: 100%;
	object-fit: cover; /* riempie senza deformarsi */
}


/* Footer */
.site-footer {
	background-color: #1c2a52; /* blu scuro uniforme */
	color: #fff;
}

.footer-logo {
	height: 40px;
}
.footer-title {
	font-size: 1.2rem;
	font-weight: 700;
	color: #fff;
}
.footer-text {
	color: #ccc;
	font-size: 0.9rem;
	line-height: 1.5;
}

.footer-menu li {
	margin-bottom: 8px;
}
.footer-menu a {
	color: #fff;
	text-decoration: none;
	transition: color 0.3s;
}
.footer-menu a:hover {
	color: #ddd;
}

.footer-partner {
	height: 60px;
}
/* NAVBAR CHIARA */
.main-navbar {
  background-color: #ffffff; /* sfondo chiaro */
  border-bottom: 1px solid #ddd;
}

.main-navbar .nav-link {
  color: #004080; /* blu titoli */
  font-weight: 500;
  padding: 0px 30px !important; /* padding maggiorato */
  transition: color 0.2s ease;
}

.main-navbar .nav-link:hover,
.main-navbar .nav-link:focus,
.main-navbar .nav-link.active {
  color: #b61a1c; /* rosso accento come homepage */
}

/* dropdown menu */
.dropdown-menu {
  border-radius: 0;
  border: 1px solid #ddd;
  margin-top: 0;
}

.dropdown-menu .dropdown-item {
  padding: 10px 20px;
  color: #004080;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #f0f0f0;
  color: #b61a1c;
}

/* submenu laterale */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
}
/* Submenu su hover SOLO per viewport >= lg (desktop) */
@media (min-width: 992px) {
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }
}
.dropdown-submenu > .dropdown-menu.show { display: block; }
/* === HERO WRAPPER === */
.hero-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero-wrapper img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center;
}

/* overlay testo sopra l'immagine */
.overlay-text {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  flex-direction: column;
}

.main-title {
  font-size: 2.5rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  max-width: 900px;
  margin: 0 auto 3rem auto;
}

/* === ESAGONI === */
.esagoni-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.hexagon {
  position: relative;
  width: 160px;
  aspect-ratio: 1 / 1;
  background: #fff; /* fondo bianco pieno */
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #222; /* testo scuro */
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.15);
}

.hex-content {
  text-align: center;
}

.hex-content i {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #222;
  transition: color 0.3s ease;
}

.hex-content h4 {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 500;
}

/* Hover */
.hexagon:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.6);
}

/* === RESPONSIVE === */

/* Tablet */
@media (max-width: 992px) {
  .hero-wrapper img {
    height: 80vh;
  }

  .main-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .hexagon {
    width: 120px;
  }

  .hex-content i {
    font-size: 1.6rem;
  }

  .hex-content h4 {
    font-size: 1rem;
  }
}

/* Mobile */
@media (max-width: 576px) {
  .hero-wrapper img {
    height: 70vh;
  }

  .main-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .esagoni-wrapper {
    gap: 1rem !important;
  }

  .hexagon {
    width: 85px;
  }

  .hex-content i {
    font-size: 1.2rem;
  }

  .hex-content h4 {
    font-size: 0.8rem;
  }
}
