html, body {
  overflow-x: hidden;
  width: 100%;
}

/* === BASE === */
body {
	scroll-behavior: smooth;
	color: #132147;
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	background: #fdfdfd;
}
header, section, footer {
	padding: 10px 15px;
}
.page-wrapper {
	max-width: 1140px;
	margin: 0 auto;
	box-sizing: border-box;
}
h2, p, ul {
	animation: fadeInUp 1.2s ease;
}
h2 {
	font-size: 24px;
	margin-top: 20px;
	font-weight: 700;
}
ul li {
	margin-bottom: 8px;
}

/* === HEADER === */
header {
	background: linear-gradient(135deg, #86bbe9, #8dbfeb);
	color: white;
	text-align: center;
	animation: fadeInDown 1s ease;
}
header img.logo {
  border-radius: 100%;
  height: 220px;
  width: 220px;
  object-fit: cover;
}


/* === NAVBAR STICKY === */

.navbar-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  background: linear-gradient(135deg, #336ab7, #23527c) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.3s ease-out;
}

.navbar-sticky .scroll-link {
  color: white !important;
}

.navbar-sticky .scroll-link::after {
  background-color: white !important;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

#navbar-placeholder {
  height: 60px;
  transition: height 0.3s ease;
}

.nav-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 28px;
}

.scroll-link {
  color: white;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  position: relative;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.scroll-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -4px;
  background-color: #336ab7;
  transition: width 0.3s ease;
}

.scroll-link:hover::after,
.scroll-link:focus::after {
  width: 100%;
}

.scroll-link:hover,
.scroll-link:focus {
  color: #23527c;
}

@media (max-width: 576px) {
  .scroll-link {
    font-size: 14px;
  }

}

.sticky-top {
	position: sticky;
	top: 0;
	width: 100%;
	background: linear-gradient(135deg, #336ab7, #23527c);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	z-index: 1030;
	text-align: center;
	padding: 10px 0;
}
.sticky-top a {
	color: white;
	margin: 0 12px;
	padding: 3px 7px;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	position: relative;
	transition: color 0.3s ease;
}
.sticky-top a::after {
	content: "";
	position: absolute;
	width: 0;
	height: 2px;
	left: 0;
	bottom: -4px;
	background-color: #e1eaff;
	transition: width 0.3s ease;
}
.sticky-top a:hover::after,
.sticky-top a:focus::after {
	width: 100%;
}
.sticky-top a:hover,
.sticky-top a:focus {
	color: #e1eaff;
	cursor: pointer;
}

@media (max-width: 767px) {
  nav.sticky-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* === CHI SONO === */
.bg-lightblue {
	background-color: #d9eaf7;
	padding: 40px 0;
	color: #23527c;
}

.bg-blue {
	background: linear-gradient(135deg, #336ab7, #23527c)
}

.section-title {
	font-size: 1.8em;
	font-weight: 700;
	margin-bottom: 30px;
	color: #0f3b61;
	text-align: center;
}
.chi-sono-content {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
.rounded-photo {
	max-width: 60%;
	border-radius: 50%;
  	box-shadow: 0 8px 10px rgba(0, 0, 0, 0.12);
	margin: auto;
	display: block;
}
@media (max-width: 767px) {
	.rounded-photo {
		max-width: 50%;
	}
}

/* === ESPERIENZE === */
.experience-list {
	list-style: none;
	padding-left: 0;
	margin-bottom: 20px;
}
.experience-list li {
	position: relative;
	padding-left: 25px;
	margin-bottom: 8px;
	font-weight: 600;
	color: #23527c;
}
.experience-list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	color: #4a90e2;
	font-weight: bold;
}

/* === METODO === */
.metodo-box h3 {
	font-weight: bold;
	margin-top: 30px;
	margin-bottom: 10px;
}
.metodo-box p {
	font-size: 16px;
	line-height: 1.6;
}

/* === CTA === */
.call-to-action-section {
	background: linear-gradient(135deg, #23527c, #336ab7);
	color: #fff;
	padding: 80px 20px;
	position: relative;
}
.cta-title {
	font-size: 32px;
	font-weight: bold;
	margin-bottom: 20px;
}
.cta-subtitle {
	font-size: 18px;
	margin-bottom: 40px;
	color: #e1eaff;
}

/* === RECENSIONI === */
.review-img {
	width: 100%;
	max-width: 320px;
	margin: 10px auto;
	display: block;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.review-img.rounded-extra {
	border-radius: 12px;
}

#recensioniCarousel .carousel-indicators {
  bottom: 10px !important;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#recensioniCarousel:hover .carousel-indicators {
  opacity: 1;
}

.carousel-indicators [data-bs-target] {
  width: 16px;
  height: 6px;
  border-radius: 4px;
  background-color: #336ab7;
  opacity: 0.6;
  transition: all 0.3s ease;
  margin: 0 5px;
}

.carousel-indicators .active {
  background-color: #23527c;
  opacity: 1;
  width: 24px;
}

#recensioniCarousel .carousel-indicators {
  bottom: -30px !important;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #23527c;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background-size: 60% 60%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.carousel-control-prev {
  left: -15px;
}

.carousel-control-next {
  right: -15px;
}

/* === CONTATTI === */
.contatti-section a {
  color: #23527c;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}
.contatti-section a:hover {
  color: #336ab7;
  text-decoration: underline;
}
.contatti-section .card {
  background-color: #e8f2fc;
  border-radius: 12px;
}
.contatti-section i {
  font-size: 1.2em;
  vertical-align: middle;
}


/* === BOTTONI === */
.btn-yellow {
  background-color: #FFC107;
  color: #212529;
  border-color: #FFC107;
}

.btn-yellow:hover,
.btn-yellow:focus {
  background-color: #e6ac00;
  border-color: #e6ac00;
  color: #212529;
}

#scrollToTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background-color: #002b5c;
  color: white;
  opacity: 0.5;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 50px;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#scrollToTopBtn:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

/* === CONTATTI === */
.testo-contatti {
	font-size: 16px;
}

.modal-body {
	font-size: 18px;
}

/* === FOOTER === */
footer {
	background: #f9f9f9;
	text-align: center;
	font-size: 12px;
	color: #555;
	animation: fadeIn 1s ease;
}

/* === ANIMAZIONI === */
@keyframes fadeInDown {
	from { opacity: 0; transform: translateY(-20px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}
