.accordion-button::after {
  filter: none !important;
  background-image: none !important;
  color: #fff !important;
  /* For Bootstrap 5 che usa SVG come background-image */
  content: "";
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="white" class="bi bi-chevron-down" viewBox="0 0 16 16"><path fill="white" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/></svg>') center/1.25em no-repeat !important;
}

/* Allineamento orizzontale e posizione fissa per tempi di consegna nelle card prezzi */
.delivery-row {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.delivery-text {
  font-size: 1rem;
  font-style: italic;
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}

/* Variables */
/* Fonts */
/* Spacing */
/* Mixins */
/* Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Supporto per movimento ridotto per accessibilità */
@media (prefers-reduced-motion: reduce) {

  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: #212529;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* ── Focus: visibile solo con tastiera (non al click) ── */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Input e textarea: bordo colorato al focus (anche da mouse, UX form) */
input:focus,
textarea:focus,
select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.25) !important;
  border-color: #667eea !important;
}

/* Miglioramento della leggibilità per screen reader */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link per accessibilità da tastiera */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 9999;
  font-weight: 600;
}

.skip-link:focus {
  top: 6px;
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Miglioramento del contrasto per i testi muted */
.text-muted {
  color: #495057 !important;
}

/* Focus migliorato per tutte le progress bar */
.progress:focus-within {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

/* Navbar Styles */
.navbar {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid rgba(102, 126, 234, 0.12);
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 10px 30px rgba(31, 41, 55, 0.12);
}

.navbar-brand {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-brand i {
  font-size: 1.8rem;
}

.bi-code-slash::before {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}

.nav-link {
  color: #334155 !important;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 5px;
  padding: 0.5rem 1rem !important;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #5b6ee1 !important;
  background-color: rgba(102, 126, 234, 0.1);
  outline: 3px solid #5b6ee1;
}

.nav-link.active {
  color: #5b6ee1 !important;
  background-color: rgba(102, 126, 234, 0.12);
}

.navbar-toggler {
  border-color: rgba(102, 126, 234, 0.2);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.2);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  margin-top: 90px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
    margin-top: 25px;
  }

  .hero-section {
    min-height: 65svh !important;
  }

  .hero-badge {
    margin-top: 50px;
  }

  #pricing-plans {
    padding-bottom: 0 !important;
  }

  #skills {
    padding-bottom: 0;
  }
}

.hero-title .typed-text {
  position: relative;
  text-shadow:
    -1px -1px 0 #ffffff,
    1px -1px 0 #ffffff,
    -1px 1px 0 #ffffff,
    1px 1px 0 #ffffff;
}

.hero-title .typed-text::after {
  content: "|";
  animation: blink 1s infinite;
}

.hero-description {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.hero-buttons {
  margin-bottom: 3rem;
}

.hero-buttons .btn {
  padding: 0.75rem 2rem;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

.social-links .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-decoration: none;
  border-radius: 50%;
  margin-right: 1rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-links .social-link:hover,
.social-links .social-link:focus {
  background-color: #0d6efd;
  transform: translateY(-3px);
  border-color: #ffffff;
  outline: none;
}

.social-links .social-link i {
  font-size: 1.25rem;
}

.hero-image {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-image {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 30px rgba(13, 110, 253, 0.3);
  transition: all 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(13, 110, 253, 0.5);
  border-color: rgba(255, 255, 255, 0.4);
}

.coding-image {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  object-fit: cover;
  border: 8px solid transparent;
  background: linear-gradient(white, white) padding-box,
    linear-gradient(135deg, #0d6efd, #667eea, #764ba2) border-box;
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3),
    0 0 30px rgba(13, 110, 253, 0.3);
  transition: all 0.3s ease;
}

.coding-image:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.4),
    0 0 40px rgba(13, 110, 253, 0.5);
  border-width: 12px;
}

@media (max-width: 991px) {
  .hero-image--top {
    margin-top: 6rem;
    margin-bottom: 0.5rem;
  }

  .hero-image--top .coding-image {
    width: 220px;
    height: 220px;
    animation: floatHero 3s ease-in-out infinite, mobileGlow 3s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0), 0 1rem 2rem rgba(0, 0, 0, 0.25);
  }

  .hero-content .hero-badge {
    justify-content: center;
  }

  .hero-content .hero-tech-stack {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-content .hero-metrics {
    justify-content: center;
  }

  .hero-content .hero-buttons {
    justify-content: center;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .hero-content .hero-buttons .me-3 {
    margin-right: 0 !important;
  }
}

@keyframes mobileGlow {

  0%,
  100% {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.35), 0 1rem 2rem rgba(0, 0, 0, 0.25);
  }

  50% {
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.65), 0 1rem 2rem rgba(0, 0, 0, 0.3);
  }
}

@media (max-width: 768px) {
  .profile-image {
    width: 280px;
    height: 280px;
  }

  .coding-image {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 576px) {
  .profile-image {
    width: 250px;
    height: 250px;
  }

  .coding-image {
    width: 250px;
    height: 250px;
  }
}

/* Section Styles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  margin: 0 auto 3rem;
  border-radius: 2px;
}

/* About Section */
.about-image {
  text-align: center;
}

.about-image .placeholder-image {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #0d6efd, #6c757d);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.about-image .placeholder-image i {
  font-size: 8rem;
  color: #ffffff;
}

.about-profile-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  display: block;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.about-profile-image:hover {
  transform: scale(1.05);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

.about-content {
  padding-left: 2rem;
}

@media (max-width: 992px) {
  .about-content {
    padding-left: 0;
    margin-top: 2rem;
  }
}

.about-content h3 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
}

.about-item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.about-item i {
  font-size: 2rem;
  margin-right: 1rem;
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(13, 110, 253, 0.1);
  border-radius: 50%;
  color: #0d6efd;
  flex-shrink: 0;
}

.about-item h6 {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #212529;
}

.about-item p {
  margin-bottom: 0;
  color: #495057;
}

.bi-calendar-check::before {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}

.bi-award::before {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}

/* Skills Section */
.skill-card {
  text-align: center;
  padding: 2rem;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  height: 100%;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1);
}

.skill-card .skill-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.skill-card .skill-icon i {
  font-size: 2.5rem;
  color: #ffffff;
}

.skill-card h5 {
  font-weight: 600;
  margin-bottom: 1rem;
  color: #212529;
}

.skill-card .progress {
  height: 10px;
  background-color: #dee2e6;
  border-radius: 5px;
  border: 1px solid #ced4da;
}

.skill-card .progress .progress-bar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 4px;
  transition: width 1s ease-out;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
  line-height: 8px;
}

/* Portfolio Section */
.portfolio-item {
  transition: all 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-10px);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  margin-bottom: 1rem;
}

.portfolio-image .placeholder-project {
  width: 100%;
  height: 250px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.portfolio-image .placeholder-project i {
  font-size: 4rem;
  color: #ffffff;
  opacity: 0.8;
}

.portfolio-image .placeholder-project .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.portfolio-image .placeholder-project .overlay .btn {
  border-radius: 25px;
  font-weight: 600;
  border: 2px solid #ffffff;
}

.portfolio-image .placeholder-project .overlay .btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.5);
}

.portfolio-image:hover .overlay,
.portfolio-image .placeholder-project:focus-within .overlay {
  opacity: 1;
}

.portfolio-info h5 {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #212529;
}

.portfolio-info .text-muted {
  color: #495057 !important;
  font-weight: 500;
}

/* Contact Section */
#contact {
  background: linear-gradient(135deg, #243b6b 0%, #2f234d 100%) !important;
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(102, 126, 234, 0.18), transparent 35%),
    radial-gradient(circle at bottom left, rgba(118, 75, 162, 0.2), transparent 40%);
  pointer-events: none;
}

#contact .container {
  position: relative;
  z-index: 1;
}

/* Fai sì che contact-info e contact-form abbiano sempre la stessa altezza */
#contact .row.contact-equal {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: stretch;
}

#contact .row.contact-equal>[class^="col-"],
#contact .row.contact-equal>[class*=" col-"] {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  margin-bottom: 0 !important;
}

#contact .contact-info,
#contact .contact-form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

@media (min-width: 992px) {

  #contact .contact-info,
  #contact .contact-form {
    min-height: 400px;
  }
}

#contact .contact-info,
#contact .contact-form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  height: 100%;
  display: flex;
  flex-direction: column;
}

#contact .contact-info p,
#contact .contact-info h4,
#contact .contact-info h6 {
  color: #ffffff;
}

.contact-info .contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
}

.contact-info .contact-item i {
  font-size: 2rem;
  margin-right: 1rem;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
}

.bi-envelope::before {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}

.bi-phone::before {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}

.placeholder-project .bi-phone::before {
  background: #fff;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}

.contact-item .bi-phone::before {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}

.contact-info .contact-item h6 {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-info .contact-item p {
  margin-bottom: 0;
  color: #e9ecef;
}

.contact-link {
  color: #e9ecef;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-link:hover,
.contact-link:focus {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.contact-form .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.contact-form .form-control::placeholder {
  color: #ced4da;
}

.contact-form .form-control:focus {
  background-color: rgba(255, 255, 255, 0.16);
  border-color: #667eea;
  color: #ffffff;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.35);
  outline: 3px solid #5b6ee1;
}

.contact-form .btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 25px;
  padding: 0.75rem 2rem;
  font-weight: 500;
}

.back-to-top:focus {
  outline: 3px solid #fff !important;
}

.contact-form .btn:hover,
.contact-form .btn:focus {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* CTA Section (prezzi.html) */
#cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #fff !important;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.10);
  padding-top: 3rem;
  padding-bottom: 3rem;
}

#cta h2,
#cta p,
#cta .lead {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(31, 41, 55, 0.10);
}

#cta .btn-outline-light {
  border-color: #fff;
  color: #fff;
  background: transparent;
  font-weight: 600;
  border-radius: 25px;
  transition: background 0.2s, color 0.2s;
}

#cta .btn-outline-light:hover,
#cta .btn-outline-light:focus {
  background: #fff;
  color: #667eea;
  border-color: #fff;
}

#cta .btn-light {
  background: transparent;
  color: #fff;
  border-radius: 25px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

#cta .btn-light:hover,
#cta .btn-light:focus {
  background: #f3f4f6;
  color: #667eea;
  transform: translateY(-2px);
}

#cta .btn-outline-light .bi-envelope::before {
  color: #fff !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
}

#cta .btn-outline-light:hover .bi-envelope::before,
#cta .btn-outline-light:focus .bi-envelope::before {
  color: #667eea !important;
}

footer {
  background: linear-gradient(135deg, #243b6b 0%, #2f234d 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
}

footer p {
  color: rgba(255, 255, 255, 0.88);
}

footer .social-links {
  justify-content: center;
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

footer .social-links .social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: #ffffff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  transition: all 0.3s ease;
}

footer .social-links .social-link:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.25);
}

footer .social-links .social-link i {
  font-size: 1.25rem;
  color: #ffffff;
}

footer .social-links .social-link:focus {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.3);
}

footer .social-links .social-link:hover i {
  color: #ffffff;
}

/* Animations */
@keyframes blink {

  0%,
  50% {
    opacity: 1;
  }

  51%,
  100% {
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-buttons .btn {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .skill-card {
    margin-bottom: 2rem;
  }

  .code-animation {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 576px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .social-links {
    text-align: center;
  }

  .social-links .social-link {
    width: 45px;
    height: 45px;
    margin-right: 0.5rem;
  }

  .social-links .social-link i {
    font-size: 1rem;
  }
}

.price-text {
  font-size: 1.250rem;
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent !important;
}

/* Utility Classes */
.text-primary {
  color: #0d6efd !important;
}

.bg-primary {
  background-color: #0d6efd !important;
}

.btn-primary {
  background-color: #0d6efd;
  border-color: #0d6efd;
  font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #0b5ed7;
  border-color: #fff;
  box-shadow: 0 0 0 0.25rem #5b6ee1;
  transform: translateY(-2px);
}

.btn-primary:focus {
  outline: none;
}

.btn-outline-light {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  background-color: transparent;
  font-weight: 600;
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  color: #0d6efd;
  background-color: #ffffff;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

.btn-outline-light:focus {
  outline: none;
}

.portfolio-image .placeholder-project .overlay .btn:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.5);
  outline: 3px solid rgba(255, 255, 255, 0.5);
}

/* Pricing Page Styles */
.card-header-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #ffffff !important;
  height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0;
}

/* (Rimosso): bordo gradiente per le card nella sezione prezzi */

/* Bottoni "Richiedi Preventivo" nella sezione prezzi - gradiente coerente */
#pricing-plans .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none !important;
  color: #ffffff !important;
  border-radius: 25px;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(102, 126, 234, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

#pricing-plans .btn-primary:hover,
#pricing-plans .btn-primary:focus {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px #fff;
  outline: 3px solid #5b6ee1;
}

#pricing-plans .btn-primary:active {
  transform: translateY(0);
}

/* Badge styling specifico per la pagina prezzi: coerente con il gradiente del sito */
#pricing-plans .badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #ffffff !important;
  border: 1px solid #ffffff !important;
  border-radius: 12px;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  box-shadow: 0 8px 18px rgba(102, 126, 234, 0.18);
  font-weight: 600;
}

#pricing-plans .badge i {
  color: #ffffff !important;
  opacity: 0.95;
}

#pricing-plans .badge {
  z-index: 6;
}

#pricing-plans .badge:focus {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.25);
}

.card-body .list-unstyled li {
  display: flex;
  align-items: flex-start;
}

.card-body .list-unstyled li i {
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon i {
  font-size: 2rem;
  color: #ffffff;
}

.price-display {
  margin-bottom: 1rem;
}

.price-display .text-primary-light {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.9rem;
}

.card {
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}


/* Accordion FAQ prezzi: coerente con il resto della pagina */
.accordion-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.08);
  transition: background 0.2s, color 0.2s;
}

.accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  box-shadow: 0 8px 24px #fff;
  outline: 3px solid #fff !important;
}

.accordion-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.4);
}

.accordion-button:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  color: #fff;
}

.accordion-item {
  border: 1.5px solid #667eea;
  overflow: hidden;
  background: #fff;
}

.accordion-body {
  background: #f8f9fa;
  color: #212529;
  border-radius: 0 0 12px 12px;
}

.accordion-item+.accordion-item {
  border-top: 1px solid #fff !important;
}

/* Custom gradient button */
.btn-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none !important;
  color: #ffffff !important;
}

.btn-gradient:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%) !important;
  color: #ffffff !important;
}

/* Pricing responsive design */
@media (max-width: 768px) {
  .price-display .h2 {
    font-size: 1.5rem;
  }

  .feature-icon {
    width: 60px;
    height: 60px;
  }

  .feature-icon i {
    font-size: 1.5rem;
  }
}

/* ───────── Pricing Hero Chips ───────── */
.pricing-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 0.5rem;
}

@media (max-width: 991px) {
  .pricing-hero-chips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-items: center;
  }
}

/* ───────── Pricing Cards ───────── */
.pricing-card {
  border-radius: 22px !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1) !important;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  overflow: visible;
  /* Garantisce altezza uniforme con h-100 Bootstrap */
  display: flex !important;
  flex-direction: column !important;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14) !important;
}

.pricing-card .card-header.card-header-gradient {
  border-radius: 20px 20px 0 0 !important;
  height: auto;
  padding: 1.75rem 1.5rem 1.5rem !important;
}

.pricing-card--featured .card-header.card-header-gradient {
  padding-top: 2.5rem !important;
}

.pricing-card .card-body {
  padding: 1.5rem !important;
}

/* Featured card (Più Richiesto) */
.pricing-card--featured {
  box-shadow: 0 20px 56px rgba(102, 126, 234, 0.28) !important;
  border: 2px solid #667eea !important;
}

.pricing-card--featured:hover {
  transform: translateY(-10px);
  box-shadow: 0 32px 64px rgba(102, 126, 234, 0.34) !important;
}

.pricing-card--featured .badge {
  font-size: 0.78rem;
  padding: 0.5rem 0.9rem !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 18px rgba(102, 126, 234, 0.38) !important;
}

/* Premium card */
.pricing-card--premium {
  background: linear-gradient(160deg, #fdfcff 0%, #f5f0ff 100%) !important;
  box-shadow: 0 16px 40px rgba(118, 75, 162, 0.16) !important;
}

.pricing-card--premium:hover {
  box-shadow: 0 28px 56px rgba(118, 75, 162, 0.22) !important;
}

/* ───────── Addon Cards ───────── */
.addon-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.12);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.addon-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
}

.addon-card__icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.addon-card__icon i {
  font-size: 1.9rem;
  color: #ffffff;
}

.addon-card h5 {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.addon-card p {
  font-size: 0.9rem;
  flex-grow: 1;
}

.addon-card__price {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0.5rem 0 1rem !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-addon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 0.45rem 1.4rem !important;
  font-weight: 600;
  font-size: 0.85rem;
}

.btn-addon:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  color: #ffffff !important;
}

.btn-addon:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px #fff;
}

/* ───────── CTA Section ───────── */
.cta-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

.cta-inner {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  backdrop-filter: blur(10px);
}

.cta-inner a:hover {
  border: 1px solid #fff !important;
}

.cta-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a5b4fc;
  margin-bottom: 0.5rem;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
}

.cta-desc {
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
}

.btn-cta-primary {
  border-radius: 14px !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 10px 28px rgba(102, 126, 234, 0.38);
  transition: all 0.25s ease;
}

.btn-cta-primary:hover {
  background: #ffffff !important;
  color: #667eea !important;
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(102, 126, 234, 0.48);
}

.btn-cta-primary:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.5);
}

.btn-cta-primary i,
.btn-cta-primary i::before {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;
}

.btn-cta-primary:hover i,
.btn-cta-primary:focus-visible i,
.btn-cta-primary:hover i::before,
.btn-cta-primary:focus-visible i::before {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.btn-cta-ghost {
  border-radius: 14px !important;
  background: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  transition: all 0.25s ease;
}

.btn-cta-ghost:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-3px);
}

.btn-cta-ghost:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.8);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .cta-inner {
    padding: 2rem 1.25rem;
    text-align: center;
  }

  .cta-title {
    font-size: 1.6rem;
  }
}

/* ───────── Form field validation ───────── */
.contact-form .form-control.is-invalid {
  border-color: #f87171 !important;
  background-color: rgba(248, 113, 113, 0.08) !important;
  box-shadow: 0 0 0 0.2rem rgba(248, 113, 113, 0.2) !important;
}

.form-field-error {
  color: #f87171;
  font-size: 0.8rem;
  margin-top: 0.35rem;
  font-weight: 500;
}

#submit-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ───────── Modali Conferma & Recap ───────── */
.confirm-modal-content,
.qrm-summary {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.qrm-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.qrm-label {
  color: rgba(255,255,255,0.55);
}
.qrm-label i::before {
  background: none !important;
  -webkit-text-fill-color: rgba(255,255,255,0.55) !important;
}
.qrm-value {
  font-weight: 700;
  color: #a78bfa;
}

/* ───────── Project Request Modal ───────── */
.project-request-modal {
  background: linear-gradient(145deg, #0f0c29 0%, #1a1050 50%, #24243e 100%);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 24px;
  color: #ffffff;
  overflow: hidden;
  position: relative;
}
.project-request-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
  opacity: 0.7;
}
.project-request-close:hover { opacity: 1; }
.prm-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(102,126,234,0.25) 0%, rgba(118,75,162,0.25) 100%);
  overflow: hidden;
}
.prm-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.prm-particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(102, 126, 234, 0.6);
  animation: prmFloat 4s ease-in-out infinite;
}
.prm-particles span:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.prm-particles span:nth-child(2) { top: 60%; left: 85%; width: 8px; height: 8px; animation-delay: 0.8s; background: rgba(118,75,162,0.7); }
.prm-particles span:nth-child(3) { top: 30%; left: 75%; animation-delay: 1.5s; }
.prm-particles span:nth-child(4) { top: 75%; left: 20%; width: 5px; height: 5px; animation-delay: 2.2s; background: rgba(255,255,255,0.4); }
.prm-particles span:nth-child(5) { top: 50%; left: 50%; animation-delay: 3s; background: rgba(102,126,234,0.4); }
@keyframes prmFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.6; }
  50% { transform: translateY(-12px) scale(1.3); opacity: 1; }
}
.prm-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
  animation: prmPulse 2.5s ease-in-out infinite;
  margin-bottom: 0.75rem;
}
.prm-icon-wrap .bi {
  font-size: 2rem;
  color: #fff;
  background: none !important;
  -webkit-text-fill-color: #fff !important;
}

/* Tutte le icone nelle modali: bianche */
.project-request-modal i::before,
.confirm-modal-content i::before,
.recap-modal-content i::before {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: #ffffff !important;
}
@keyframes prmPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(102,126,234,0.4); }
  50% { box-shadow: 0 0 40px rgba(102,126,234,0.8), 0 0 60px rgba(118,75,162,0.3); }
}
.prm-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a78bfa;
  background: rgba(167,139,250,0.15);
  border: 1px solid rgba(167,139,250,0.3);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
}
.prm-body {
  padding: 1.5rem 1.75rem;
}
.prm-title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.6rem;
  color: #fff;
}
.prm-project-name {
  background: linear-gradient(135deg, #667eea, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.prm-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.25rem;
}
.prm-stack-wrap { margin-bottom: 1.5rem; }
.prm-stack-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  display: block;
  margin-bottom: 0.5rem;
}
.prm-stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.prm-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(102,126,234,0.2);
  border: 1px solid rgba(102,126,234,0.4);
  color: #a5b4fc;
}
.prm-steps {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.prm-step {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
}
.prm-step-num {
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}
.prm-footer {
  display: flex;
  gap: 0.75rem;
  padding: 0 1.75rem 1.75rem;
  justify-content: flex-end;
}
.prm-btn-cancel {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.6rem 1.2rem;
  transition: all 0.2s ease;
}
.prm-btn-cancel:hover {
  background: rgba(255,255,255,0.14);
  color: #fff;
}
.prm-btn-cancel:focus-visible {
  outline: 2px solid rgba(255,255,255,0.7);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.15);
}
.prm-btn-confirm {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  color: #fff;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.6rem 1.4rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(102,126,234,0.4);
}
.prm-btn-confirm:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102,126,234,0.6);
  color: #fff;
}
.prm-btn-confirm:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(102,126,234,0.5);
}

.recap-modal-content {
  background: linear-gradient(145deg, #1e1b4b 0%, #2d2260 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  color: #ffffff;
  overflow: hidden;
}

.confirm-modal-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: auto;
}

.confirm-modal-icon i {
  font-size: 1.6rem;
  color: #ffffff;
}

.modal-subtitle,
.recap-subtitle {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

/* Lista recap nella modale di conferma */
.confirm-recap-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.confirm-recap-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  gap: 0.75rem;
}

.confirm-recap-list li.recap-message-item {
  flex-direction: column;
  gap: 0.35rem;
}

.recap-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #a5b4fc;
  white-space: nowrap;
}

.recap-value {
  font-size: 0.88rem;
  color: #e2e8f0;
  text-align: right;
  word-break: break-word;
}

.recap-message-value {
  text-align: left;
  max-height: 90px;
  overflow-y: auto;
  display: block;
  line-height: 1.5;
}

/* Bottoni modali */
.btn-modal-confirm {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  padding: 0.65rem 1.4rem !important;
  transition: all 0.22s ease;
}

.btn-modal-confirm:hover,
.btn-modal-confirm:focus {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(102, 126, 234, 0.4);
}

.btn-modal-cancel {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-weight: 500 !important;
  padding: 0.65rem 1.4rem !important;
  transition: all 0.22s ease;
}

.btn-modal-cancel:hover,
.btn-modal-cancel:focus {
  background: rgba(255, 255, 255, 0.14) !important;
}

/* Icona successo recap */
.recap-success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.4);
}

.recap-success-icon i {
  font-size: 2.2rem;
  color: #ffffff;
}

/* Card riepilogo recap */
.recap-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.recap-field {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.recap-field:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recap-field--message,
.recap-field--timestamp {
  flex-direction: column;
  gap: 0.3rem;
}

.recap-field__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #a5b4fc;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.recap-field__value {
  font-size: 0.92rem;
  color: #e2e8f0;
  text-align: right;
  word-break: break-word;
  line-height: 1.5;
}

.recap-field--message .recap-field__value,
.recap-field--timestamp .recap-field__value {
  text-align: left;
  max-height: 120px;
  overflow-y: auto;
}

.recap-note {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ───────── Modern UI Enhancements - Home ───────── */
/* Modern UI Enhancements - Home */
body {
  background: linear-gradient(180deg, #f8f9ff 0%, #ffffff 40%, #f8faff 100%);
}

#about,
#portfolio,
#skills {
  position: relative;
}

.hero-section {
  min-height: 100svh;
}

.hero-section::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -140px;
  bottom: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  filter: blur(1px);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(6px);
  margin-bottom: 2rem;
}

.hero-tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
}

@media (max-width: 991px) {
  .hero-tech-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .hero-tech-stack {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hero-chip {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 500;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 991px) {
  .hero-chip {
    display: flex;
    width: 100%;
  }
}

.btn-hero-primary,
.btn-hero-ghost {
  border-radius: 14px !important;
  padding: 0.85rem 1.7rem !important;
  font-weight: 600 !important;
}

.btn-hero-primary {
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.18);
}

.btn-hero-primary:hover,
.btn-hero-primary:focus {
  background: #ffffff !important;
  color: #5b6ee1 !important;
  outline: 3px solid #fff !important;
}

.btn-hero-ghost {
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  color: #ffffff !important;
  background: transparent !important;
}

.btn-hero-ghost:hover,
.btn-hero-ghost:focus {
  background: rgba(255, 255, 255, 0.12) !important;
  outline: 3px solid #fff !important;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-metric {
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(5px);
}

.hero-metric strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.hero-metric span {
  font-size: 0.75rem;
  opacity: 0.92;
}

.coding-image {
  animation: floatHero 5s ease-in-out infinite;
}

@keyframes floatHero {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.skill-card {
  border: 1px solid rgba(99, 102, 241, 0.12);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.skill-card:hover {
  transform: translateY(-12px) scale(1.01);
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.12);
}

.portfolio-item {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  padding: 0.75rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.portfolio-info {
  padding: 0.5rem 0.45rem 0.2rem;
}

.portfolio-image .placeholder-project .overlay {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.32));
}

.portfolio-image .placeholder-project .overlay .btn {
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  font-size: 0.88rem;
}

@media (max-width: 991px) {
  /* Overlay sempre visibile su mobile, solo gradiente sottile in basso */
  .portfolio-image .placeholder-project .overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(10, 8, 40, 0.55) 0%, transparent 60%);
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0.85rem;
  }

  .portfolio-image .placeholder-project .overlay .btn {
    font-size: 0.8rem;
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.75);
    background: transparent;
    font-weight: 500;
    letter-spacing: 0.01em;
  }

  /* Pillola minimal sotto il titolo */
  .portfolio-mobile-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #667eea;
    margin-top: 0.2rem;
  }

  .portfolio-mobile-pill i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
    background: none !important;
    -webkit-text-fill-color: #667eea !important;
  }
}

@media (min-width: 992px) {
  .portfolio-mobile-pill { display: none; }
  .portfolio-mobile-cta { display: none; }
}

@media (max-width: 992px) {
  .hero-metrics {
    grid-template-columns: 1fr;
  }
}