/* Global box-sizing and overflow fix */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  margin: 0;
  padding: 0;
}

/* Container fixes */
.container-fluid {
  overflow-x: hidden;
  max-width: 100vw;
}

.row {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

/* --- SERVIZI PAGE MODERNA --- */
.service-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(61, 145, 59, 0.1), 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid rgba(61, 145, 59, 0.08);
  position: relative;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 30px 25px;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(61, 145, 59, 0.05), transparent);
  transition: left 0.5s ease;
}

.service-card:hover::before {
  left: 100%;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 40px rgba(61, 145, 59, 0.2), 0 4px 10px rgba(0, 0, 0, 0.1);
  border-color: rgba(61, 145, 59, 0.2);
}

.service-card h3 {
  color: #3d913b;
  font-weight: 700;
  margin-bottom: 0.8em;
  font-size: 1.4rem;
  letter-spacing: -0.3px;
}

.service-card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.7;
  text-align: center;
}

.service-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 1.2rem;
  padding: 18px;
  background: linear-gradient(135deg, #e9fbe5 0%, #f0f9ee 100%);
  border-radius: 16px;
  filter: drop-shadow(0 4px 12px rgba(61, 145, 59, 0.15));
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, #d4f5d1 0%, #e9fbe5 100%);
  filter: drop-shadow(0 6px 20px rgba(61, 145, 59, 0.25));
}

@media (max-width: 600px) {
  .service-card {
    min-height: 260px;
    padding: 1.5em 1em;
  }

  .service-icon {
    width: 56px;
    height: 56px;
    padding: 14px;
  }
}

/* Animazione scroll-to-top */
@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.7);
  }

  80% {
    opacity: 1;
    transform: scale(1.05);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

#scrollToTop {
  animation: popIn 0.7s cubic-bezier(.23, 1.01, .32, 1);
}

/* Animazione hover su bottoni e link */
.btn,
button,
.contact-btn {
  transition: transform 0.18s cubic-bezier(.23, 1.01, .32, 1), box-shadow 0.18s;
}

.btn:hover,
button:hover,
.contact-btn:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 4px 16px 0 #3d913b22;
  z-index: 2;
}

a:hover {
  text-decoration: underline wavy #3d913b;
}

/* Animazione fade-up per le sezioni */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 1s cubic-bezier(.23, 1.01, .32, 1) forwards;
}

/* Lazy loading immagini: fade-in */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.8s;
}

img[loading="lazy"].loaded {
  opacity: 1;
}

/* Focus visivo accessibile per bottoni e input */
button:focus,
textarea:focus,
input:focus {
  outline: 2px solid #3d913b !important;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #ffe06644;
}

/* Stili generali */
body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f9;
  margin: 0;
  padding: 0;
  color: #222;
  transition: background 0.4s, color 0.4s;
}

img,
.img-fluid {
  transition: filter 0.4s;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 1s ease-out forwards;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left,
.slide-in-right {
  opacity: 0;
}

.animate-left {
  animation: slideInLeft 1s ease-out forwards;
}

.animate-right {
  animation: slideInRight 1s ease-out forwards;
}



.animate-left {
  animation: slideInLeft 1s ease-out forwards;
}

.animate-right {
  animation: slideInRight 1s ease-out forwards;
}

/* Slide down */
.slide-down {
  opacity: 0;
  transform: translateY(-50px);
  /* Parte più in alto */
  transition: all 0.8s ease-out;
}

.slide-down.visible {
  opacity: 1;
  transform: translateY(0);
  /* Torna alla posizione naturale */
}

/* Homepage (hero section) */
/* Hero Section */
.welcome_container,
.homepage {
  max-width: 100%;
  height: 50vh;
  /* Imposta l'altezza dell'hero per coprire tutta la finestra */
  background-image: url('Img/Giardino.jpg');
  /* Cambia l'immagine di sfondo se necessario */
  background-size: cover;
  /* Assicurati che l'immagine di sfondo si adatti */
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  /* Centra orizzontalmente il contenuto */
  align-items: center;
  /* Centra verticalmente il contenuto */
  text-align: center;
  position: relative;
}

.welcome_container {
  .overlay {
    padding: 20px;
    max-width: 1000px;
    /* Limita la larghezza massima */
    max-width: 100%;
    position: relative;
    z-index: 1;
  }

  h1 {
    font-size: 40px;
    line-height: 1.2;
    padding-top: 90px;
    margin-bottom: 0px;
    font-weight: bold;
    color: #45a049;
    text-shadow:
      -1px -1px 0 #2f5d2a,
      1px -1px 0 #2f5d2a,
      -1px 1px 0 #2f5d2a,
      1px 1px 0 #2f5d2a;
  }

  p {
    font-style: italic;
    font-size: 30px;
    padding-top: 5px;
  }
}

/*BREADCRUMB*/
.breadcrumb {
  background-color: transparent;
  margin: 10px 60px;
}

.breadcrumb-item a {
  color: #3d913b;
  text-decoration: none;
  font-weight: bold;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
  color: #2f5d2a;
}

.breadcrumb-info {
  padding-top: 100px;
}

/* Additional styles for Servizi page */
.service-hero {
  padding: 3.5rem 0;
}

.proof-badge {
  background: rgba(33, 77, 43, 0.08);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  margin: 0.3rem;
  font-weight: 700;
  color: var(--green, #214d2b);
}

.work-thumb {
  border-radius: 12px;
  object-fit: cover;
  width: 100%;
  height: 140px;
  box-shadow: 0 6px 20px rgba(10, 20, 10, 0.06);
  transition: transform .28s;
}

.work-thumb:hover {
  transform: translateY(-6px) scale(1.02);
}

.testimonials .card {
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(10, 20, 10, 0.06);
}

.portfolio {
  background: transparent;
}

.cta-premium {
  background: linear-gradient(90deg, var(--green, #214d2b), #3d913b);
  color: #fff;
}

.cta-big-btn {
  background: var(--gold, #ffe066);
  color: var(--green, #214d2b);
  padding: 16px 36px;
  border-radius: 60px;
  text-decoration: none;
  display: inline-block;
}

/* Reveal on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .6s ease-out, transform .6s ease-out;
  will-change: opacity, transform;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.btn:focus {
  outline: 2px solid #2f5d2a;

  .ba-slider .ba-slide {
    display: none;
  }

  .ba-slider .ba-slide.active {
    display: block;
  }

  .work-card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 30px rgba(10, 20, 10, 0.06);
  }

  .work-card img {
    width: 100%;
    height: auto;
    display: block;
  }

  .work-label {
    position: absolute;
    left: 18px;
    top: 18px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 6px 10px;
    border-radius: 6px;
    font-weight: 700;
  }

  .work-card {
    position: relative;
  }

  .value-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(10, 20, 10, 0.06);
  }

  .value-emoji {
    font-size: 28px;
    margin-bottom: 8px;
  }

  .value-card h4 {
    margin-bottom: 6px;
  }

  .muted {
    color: var(--muted, #6b6b6b);
  }

  box-shadow: none;
}

a:focus-visible {
  outline: 2px solid #2f5d2a;
  border-radius: 2px;
}

/* Mobile Responsiveness */
@media (max-width: 767px) {
  .welcome_container h1 {
    font-size: 30px;
    /* Riduce la dimensione del testo su schermi più piccoli */
  }
}

.home-contacts-box {
  background: #fff;
  font-size: 20px;
  padding-bottom: 100px;
  padding-top: 50px;
}

/* CTA Home Box */
.cta-home-box {
  background: linear-gradient(135deg, #e9fbe5 0%, #f0f9ee 100%);
  padding: 60px 50px;
  border-radius: 25px;
  border-left: 6px solid #3d913b;
  box-shadow: 0 10px 40px rgba(61, 145, 59, 0.15);
  max-width: 100%;
  margin: 0 0;
}

.cta-home-box h3 {
  color: #3d913b;
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-home-box p {
  color: #2f5d2a;
  font-size: 1.15rem;
  margin-bottom: 2rem;
}

/* Quote Card */
.quote-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  padding: 80px 40px !important;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(61, 145, 59, 0.15);
  border-left: 6px solid #3d913b;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quote-icon {
  font-size: 4rem;
  color: #b8e6b3;
  font-family: Georgia, serif;
  line-height: 1;
  position: absolute;
  display: inline-block;
  width: 40px;
  text-align: center;
}

.quote-icon.open {
  top: 70px;
  left: 105px;
  font-size: 4rem;
  color: #b8e6b3;
}

.quote-icon.close-icon {
  bottom: 115px;
  right: 185px;
  font-size: 4rem !important;
  color: #b8e6b3 !important;
}

.quote-text {
  font-size: 1.8rem;
  font-style: italic;
  color: #3d913b;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-weight: 500;
  text-align: center;
  padding: 0 20px;
}

.quote-author {
  font-size: 1.1rem;
  color: #666;
  font-weight: 600;
  text-align: right;
}

/* Image Wrappers */
.image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  width: 100%;
  height: 100%;
  min-height: 350px;
}

.image-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.rounded-image {
  border-radius: 20px;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

/* Quality Item Modern */
.quality-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  grid-auto-rows: 1fr;
}

.quality-grid-item {
  display: flex;
}

.quality-grid-full {
  grid-column: 1 / -1;
  grid-auto-rows: auto;
}

.quality-item-modern {
  width: 100%;
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  padding: 25px 20px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(61, 145, 59, 0.08);
  border: 2px solid rgba(61, 145, 59, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.quality-item-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 195, 74, 0.1), transparent);
  transition: left 0.6s ease;
}

.quality-item-modern:hover::before {
  left: 100%;
}

.quality-item-modern:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 12px 35px rgba(61, 145, 59, 0.18);
  border-color: rgba(61, 145, 59, 0.15);
  background: linear-gradient(145deg, #ffffff 0%, #e9fbe5 100%);
}

.quality-item-highlight {
  background: linear-gradient(135deg, #e9fbe5 0%, #f0f9ee 100%);
  border: 2px solid rgba(61, 145, 59, 0.2);
}

.quality-item-highlight:hover {
  background: linear-gradient(135deg, #d4f5d1 0%, #e9fbe5 100%);
  border-color: rgba(61, 145, 59, 0.3);
}

.quality-icon-modern {
  font-size: 2.5rem;
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #e9fbe5 0%, #d4f5d1 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  box-shadow: 0 4px 15px rgba(61, 145, 59, 0.15);
  transition: all 0.4s ease;
}

.quality-item-modern:hover .quality-icon-modern {
  transform: scale(1.15) rotate(360deg);
  box-shadow: 0 6px 25px rgba(61, 145, 59, 0.25);
  background: linear-gradient(135deg, #4CAF50 0%, #8BC34A 100%);
}

.quality-item-modern h4 {
  color: #3d913b;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.quality-item-modern:hover h4 {
  color: #2f5d2a;
}

.quality-item-modern p {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.quality-item-modern:hover p {
  color: #3d913b;
}

/* Quality Card */
.quality-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(61, 145, 59, 0.1);
}

.quality-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  transition: all 0.3s ease;
}

.quality-item:hover {
  transform: translateX(10px);
  background: linear-gradient(135deg, #e9fbe5 0%, #f8f9fa 100%);
  box-shadow: 0 4px 15px rgba(61, 145, 59, 0.15);
}

.quality-icon {
  font-size: 2.5rem;
  min-width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #e9fbe5 0%, #d4f5d1 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.quality-item:hover .quality-icon {
  transform: scale(1.1) rotate(5deg);
}

.quality-content h4 {
  color: #3d913b;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.quality-content p {
  color: #666;
  font-size: 1rem;
  margin-bottom: 0;
}

/* Responsive Homepage */
@media (max-width: 992px) {
  .hero-section h1.display-2 {
    font-size: 3rem !important;
  }

  .hero-section .lead {
    font-size: 1.2rem !important;
  }

  .hero-section .btn-lg {
    font-size: 1.1rem !important;
    padding: 12px 35px !important;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 80vh !important;
    padding: 20px 15px !important;
  }

  .hero-section h1.display-2 {
    font-size: 3rem !important;
    margin-bottom: 1.5rem !important;
  }

  .hero-section .lead {
    font-size: 1.2rem !important;
    margin-bottom: 2rem !important;
  }

  .hero-section .btn-lg {
    font-size: 1.1rem !important;
    padding: 12px 30px !important;
  }

  .quote-text {
    font-size: 1.4rem;
  }

  .quote-icon {
    font-size: 4rem;
  }

  .quote-card {
    padding: 35px 25px;
  }

  .cta-home-box {
    padding: 40px 30px;
  }

  .cta-home-box h3 {
    font-size: 1.8rem;
  }

  .cta-home-box p {
    font-size: 1rem;
  }

  .contact-btn {
    margin: 0 auto;
    display: flex;
  }

  .quality-item {
    flex-direction: column;
    text-align: center;
    padding: 15px;
  }

  .quality-content {
    text-align: center;
    width: 100%;
  }

  .quality-content h4 {
    font-size: 1.2rem;
    text-align: center !important;
  }

  .quality-content p {
    font-size: 0.95rem;
    text-align: center !important;
  }

  .quality-icon {
    margin: 0 auto;
    font-size: 2rem;
    min-width: 50px;
    height: 50px;
  }

  .quality-card {
    padding: 20px;
  }

  .image-wrapper {
    margin-bottom: 20px;
  }

  .container-fluid.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .motiv-phrase-box .container {
    margin-top: 30px !important;
  }
}

@media (max-width: 576px) {
  .hero-section {
    min-height: 70vh !important;
  }

  .hero-section h1.display-2 {
    font-size: 2.3rem !important;
    margin-bottom: 1rem !important;
  }

  .hero-section .lead {
    font-size: 1.2rem !important;
    margin-bottom: 1.5rem !important;
  }

  .hero-section .btn-lg {
    font-size: 1rem !important;
    padding: 10px 25px !important;
    border-radius: 30px !important;
  }

  .quote-text {
    font-size: 1.2rem;
  }

  .quote-icon {
    font-size: 3.5rem;
  }

  .quote-card {
    padding: 25px 20px;
  }

  .quote-author {
    font-size: 0.95rem;
  }

  .cta-home-box {
    padding: 30px 20px;
    border-radius: 15px;
  }

  .cta-home-box h3 {
    font-size: 1.5rem;
  }

  .cta-home-box p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  .contact-btn {
    padding: 12px 20px;
    font-size: 0.9rem;
  }

  .quality-item {
    padding: 12px;
    margin-bottom: 10px;
  }

  .quality-content {
    text-align: center;
    width: 100%;
  }

  .quality-content h4 {
    font-size: 1rem;
    text-align: center !important;
  }

  .quality-content p {
    font-size: 0.9rem;
    text-align: center !important;
  }

  .quality-icon {
    font-size: 1.8rem;
    min-width: 45px;
    height: 45px;
  }

  .quality-card {
    padding: 15px;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .section-label {
    font-size: 0.75rem;
    padding: 6px 16px;
  }

  .container-fluid.py-5 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
  }

  .home-contacts-box {
    padding-top: 1rem !important;
    padding-bottom: 3rem !important;
  }

  .home-contacts-box .container {
    margin-top: 0 !important;
  }

  .contacts-container .container {
    margin-top: 20px;
  }
}

@media (min-width: 576px) {
  .container {
    margin-top: 100px !important;
    margin-bottom: 0 !important;
  }

  .home-contacts-box .container {
    margin-bottom: 30px !important;
    margin-top: 20px !important;
  }

  ol.breadcrumb.container {
    margin-top: 20px !important;
  }
}

.contacts-box {
  background-color: #fff;
  font-size: 20px;
}

.contact-btn {
  text-transform: uppercase;
  padding: 15px 30px;
  background-color: #4CAF50;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.contact-btn img {
  filter: brightness(0) invert(1);
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  object-fit: contain;
  vertical-align: middle;
}

.contact-btn:hover {
  color: #fff;
  background-color: #45a049;
}

h1 {
  text-align: center;
  color: #fff;
  margin-bottom: 30px;
}

h2 {
  font-weight: bold;
  font-size: 55px;
  color: #3d913b;
  margin-top: 30px;
  margin-left: 25px;
  margin-right: 25px;
}

.quality-box {
  padding-left: 50px;
  padding-top: 30px;

  h2 {
    font-weight: bold;
    font-size: 55px;
    color: #3d913b;
    margin-top: 20px;
  }

  ul {
    color: #3d913b;
    margin-left: 30px;
    margin-top: 50px;
    list-style-type: none;
    padding-left: 0;

    li {
      padding-left: 50px;
      margin-bottom: 15px;
      font-size: 25px;
      background-repeat: no-repeat;
      background-position: left center;
      background-size: 35px 35px;
    }

    li:nth-child(1) {
      background-image: url('Img/Icone-home/icons8-fiducia-50.png');
      /* Prima icona */
    }

    li:nth-child(2) {
      background-image: url('Img/Icone-home/icons8-puntuale-50.png');
      /* Seconda icona */
    }

    li:nth-child(3) {
      background-image: url('Img/Icone-home/icons8-casa-50.png');
      /* Terza icona */
    }

    li:nth-child(4) {
      background-image: url('Img/Icone-home/icons8-creatività-50.png');
      /* Quarta icona */
    }

    li:nth-child(5) {
      background-image: url('Img/Icone-home/icons8-cuore-50.png');
      /* Quinta icona */
    }
  }
}

@media (max-width: 1000px) {
  .quality-img {
    padding-left: 0;
  }

  .quality-box {
    padding-left: 0;

    h2 {
      margin-left: 15px;
      font-size: 50px;
      text-align: center;
    }

    li {
      padding-left: 0px;
    }
  }

  .home-contacts-box {
    padding-top: 0;
    padding-bottom: 50px;
  }

  .home-contacts-box .container {
    margin-top: 0 !important;
  }

  .mobile-hide {
    display: none;
  }

  .contact_row {
    padding-bottom: 0 !important;
  }

  .second_contact_row {
    padding-top: 0 !important;
  }
}

p {
  text-align: center;
  color: #333;
}

.motiv-phrase {
  font-size: 35px;
  align-items: center;
  text-align: center;
  display: flex;
  font-style: italic;
}

.navbar-toggler {
  border: none !important;
  background-color: #3a6b35 !important;
  padding: 0.5rem 0.75rem;
  box-shadow: none !important;
  border-radius: 8px;
  transition: all 0.3s ease;

  img {
    width: 20px !important;
    filter: brightness(0) invert(1) !important;
    padding-bottom: 1px;

    &:hover {
      content: url('Img/Icone-home/icons8-menu-50.png');
      filter: brightness(0) invert(1) !important;
    }
  }
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px rgba(58, 107, 53, 0.3) !important;
  outline: none !important;
  background-color: #3a6b35 !important;
}

.navbar-toggler:hover {
  background-color: #2f5d2a !important;
}

@media (max-width: 1000px) {
  .motiv-phrase-box {
    padding-bottom: 0 !important;
  }

  .professional-box {
    padding-top: 10px !important;
    border-bottom: none;
  }

  .column-phrase {
    order: 2;
  }

  .motiv-img-box {
    order: 1;
  }

  .motiv-phrase {
    padding-top: 30px;
  }
}

/* Navbar */

@media (max-width: 1000px) {
  .navbar-toggler {
    margin-right: 1px;
  }
}

.navbar .nav-link {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #3d913b !important;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 20px;
  transition: background-color 0.3s ease;
}

.navbar .nav-link:hover {
  color: #2f5d2a !important;
}

/* Stile immagine del giardiniere */
.profile-img {
  display: block;
  width: 50%;
  margin: 0 auto;
  border-radius: 8px;
}

/* Stile per il form */
button {
  padding: 12px;
  background-color: #3a6b35;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: block;
  margin: 20px auto;
}

button:hover {
  background-color: #2f5d2a;
}

/* Stile footer */
.footer {
  position: relative;
  background: linear-gradient(135deg, #2d5a2b 0%, #1a3a28 50%, #0f2419 100%);
  overflow: hidden;
}

.footer .container {
  margin-top: 0 !important;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(76, 175, 80, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(61, 145, 59, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

/* Overlay del footer */
.footer-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  color: #fff;
  padding: 60px 0 30px;
}

/* Footer Sections */
.footer-section {
  padding: 0 30px;
  margin-bottom: 2.5rem;
}

.footer-title {
  color: #a8e6a1;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.footer-description {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  max-width: 280px;
  text-align: left;
}

/* Footer Contact Info */
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.footer-contact-item:hover {
  color: #4CAF50;
}

.footer-contact-item img {
  filter: brightness(0) invert(1);
  opacity: 0.7;
  width: 18px;
  height: 18px;
}

.footer-contact-item a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-item a:hover {
  color: #4CAF50;
  text-decoration: none;
}

/* Footer Links */
.footer-links-row {
  display: flex;
  gap: 10px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links li {
  margin-bottom: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 0;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  position: relative;
}

.footer-links a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4CAF50;
  flex-shrink: 0;
  opacity: 0.6;
  transition: all 0.25s ease;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: none;
  background: rgba(76, 175, 80, 0.12);
  border-color: rgba(76, 175, 80, 0.3);
  padding-left: 18px;
}

.footer-links a:hover::before {
  opacity: 1;
  transform: scale(1.3);
}

/* Footer Social */
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 0.8rem;
}

.social-icon-footer {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icon-footer:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

.social-icon-footer img {
  width: 20px;
  height: 20px;
  transition: opacity 0.3s ease;
}

.social-icon-footer img.hover {
  position: absolute;
  opacity: 0;
  filter: brightness(0) invert(1);
}

.social-icon-footer:hover img.default {
  opacity: 0;
}

.social-icon-footer:hover img.hover {
  opacity: 1;
}

/* Footer Bottom */
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 2px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.4), transparent) 1;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-overlay {
    padding: 40px 0 20px;
  }

  .footer-section {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 0 20px;
  }

  .footer-description {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }

  .footer-contact-info {
    align-items: center;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-links-row {
    flex-direction: column;
    gap: 0;
  }

  .footer-links {
    text-align: center;
  }

  .footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
  }
}

/* Old footer styles - kept for compatibility */
.footer-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.footer-link:hover {
  text-decoration: underline;
  color: #3d913b;
}

.footer-link:focus {
  outline: 2px solid #3d913b;
}

/* Icone social */
.social-icon {
  position: relative;
  display: inline-block;

  &:focus-visible {
    outline: 2px solid #3d913b;
  }
}

.social-icon img.hover {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-icon:hover img.hover {
  opacity: 1;
}

.social-icon:hover img.default {
  opacity: 0;
}

/* Aggiunto effetto hover sulle icone social */
.social-icon:hover img {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

/* Testo copyright */
footer small {
  color: rgba(255, 255, 255, 0.7);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.footer-overlay .mb-3 {
  align-items: center;
  max-width: 100%;
}

.link-box {
  display: flex;
  flex-direction: column;
}

/* Sezione Servizi - Miglioramenti per l'immagine */
#servizi .col-md-6 img {
  max-width: 100%;
  /* Assicura che l'immagine occupi tutta la larghezza del contenitore */
  height: auto;
  /* Mantiene la proporzione dell'immagine */
  object-fit: cover;
  /* Adatta l'immagine senza deformarla, ma riempiendo tutto lo spazio disponibile */
  border-radius: 8px;
  /* Aggiungi bordi arrotondati, se lo desideri */
}

/* Pagina Servizi */

.service_container {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;

  h1 {
    font-size: 80px;
    line-height: 1.2;
    margin-bottom: 0 !important;
  }
}

.service_container .overlay {
  padding: 100px 20px 20px;
  width: 100%;
  position: relative;
  z-index: 1;
  background-color: rgba(61, 145, 59, 0.3);
  height: 100%;
  color: #fff;

}

.service {
  max-width: 100%;
  height: 450px;
  /* 100% dell'altezza della finestra */
  background-image: url('Img/giardino-servizi.jpg');
  /* Cambia il percorso se necessario */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  /* Centra il contenuto orizzontalmente */
  align-items: center;
  /* Centra il contenuto verticalmente */
  color: white;
  /* Colore del testo */
  text-align: center;
  /* Allinea il testo al centro */
  position: relative;
  overflow-x: hidden;
  width: 100%;
}

@media (max-width:1100px) {

  .quote-icon.open {
    left: 62px;
  }

  .quote-icon.close-icon {
    right: 90px;
  }
}

@media (max-width: 1200px) {

  .quote-icon.open {
    left: 60px;
  }

  .quote-icon.close-icon {
    right: 92px;
  }
}

@media (max-width: 1000px) {

  .card_container {
    .card-row {
      margin-left: 20px;
      margin-right: 20px;

      .card {
        margin-bottom: 40px;
      }
    }
  }

  .service-contacts-box {
    min-height: 480px;
  }


  .service-contacts {
    display: flex;
    justify-content: center;
    padding-left: 25px !important;

  }

  .contact-btn {
    display: flex;
    justify-content: center;
  }
}

/* Servizi Page Responsive */
@media (max-width: 992px) {
  .service_container h1 {
    font-size: 3.5rem !important;
  }

  .service {
    height: 350px;
  }

  .service_container .overlay {
    padding: 80px 20px 20px !important;
  }

  .service-card {
    min-height: 280px;
  }


  .quote-icon.open {
    left: 30px;
  }

  .quote-icon.close-icon {
    right: 200px;
  }
}

@media (max-width: 768px) {
  .service_container h1 {
    font-size: 2.5rem !important;
  }

  .service {
    height: 300px;
  }

  .service_container .overlay {
    padding: 60px 15px 15px !important;
  }

  .service-card {
    min-height: 260px;
    padding: 25px 20px !important;
  }

  .service-icon {
    width: 60px !important;
    height: 60px !important;
    padding: 15px !important;
  }

  .service-card h3 {
    font-size: 1.2rem !important;
  }

  .service-card p {
    font-size: 0.95rem !important;
  }

  .service-contacts-box {
    min-height: auto;
    padding: 40px 15px !important;
    overflow-x: hidden;
  }

  .service-contacts {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 20px;
  }

  .service-contacts p {
    font-size: 1.5rem !important;
    text-align: center;
  }

  .contact-btn {
    width: 100%;
    max-width: 300px;
    padding: 12px 25px !important;
  }

  .container {
    margin-top: 106px !important;
    margin-bottom: 0 !important;
  }

  .quote-icon.open {
    left: 30px !important;
  }

  .quote-icon.close-icon {
    right: 60px !important;
  }

  .professional-box .container {
    margin-top: 30px !important;
  }

  nav[aria-label="breadcrumb"] {
    padding: 10px !important;
  }
}

@media (max-width: 576px) {
  .service_container h1 {
    font-size: 2rem !important;
  }

  .service {
    height: 250px;
  }

  .service_container .overlay {
    padding: 93px 10px 10px !important;
  }

  .service-card {
    min-height: auto;
    padding: 20px 15px !important;
  }

  .service-icon {
    width: 50px !important;
    height: 50px !important;
    padding: 12px !important;
  }

  .service-card h3 {
    font-size: 1.1rem !important;
  }

  .service-card p {
    font-size: 0.9rem !important;
  }

  .service-contacts p {
    font-size: 1.3rem !important;
    padding: 0 15px;
  }

  .contact-btn {
    font-size: 0.9rem !important;
    padding: 10px 20px !important;
  }

  .ico-phone {
    width: 25px !important;
  }

  .section-header h2 {
    font-size: 1.5rem;
  }

  .section-label {
    font-size: 0.75rem;
    padding: 6px 16px;
  }

  .quote-icon.open {
    left: 40px !important;
  }

  .quote-icon.close-icon {
    right: 102px;
    bottom: 103px;
  }

  ol.breadcrumb.container {
    margin: 0 !important;
  }

  section#elenco-servizi .container {
    margin-top: 20px !important;
  }

  .container-fluid .container {
    margin-top: 20px !important;
  }

  .footer-contact-item img {
    margin-bottom: 2px !important;
  }
}

.card-row {
  margin-left: 80px;
  margin-right: 80px;

  .card {
    gap: 30px;
    max-width: 1200px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px 20px;
    transition: transform 0.3s ease;
    margin-bottom: 100px;

    &:hover {
      transform: translateY(-5px);
    }

    img {
      height: 80px;
      margin-bottom: 20px;
    }

    p {
      font-size: 24px;
      color: #5dba47;
      font-weight: bold;
      margin: 0;
    }
  }
}

.service-contacts {
  padding-left: 100px;

  p {
    font-size: 3.5rem;
    color: #3d913b;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -1px;
  }
}

.service-contacts-box {
  min-height: 300px;
  box-shadow: inset 0 4px 15px rgba(61, 145, 59, 0.05);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

.service-contacts-box .row {
  margin-left: 0;
  margin-right: 0;
  max-width: 100%;
}

.contact-btn {
  position: relative;
  overflow: hidden;
}

.contact-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.contact-btn:hover::before {
  width: 300px;
  height: 300px;
}

.ico-phone {
  margin-right: 8px;
  transition: transform 0.3s ease;
}

.contact-btn:hover .ico-phone {
  transform: scale(1.1) rotate(-15deg);
}

/*My Info*/

/* Background gradient */
.bg-gradient-light {
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
}

/* Intro Section */
.intro-section {
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Profile Image Wrapper */
.profile-image-wrapper {
  position: relative;
  display: inline-block;
}

.profile-image {
  border-radius: 20px;
  box-shadow: 0 15px 50px rgba(61, 145, 59, 0.2);
  transition: all 0.4s ease;
  max-width: 100%;
  height: auto;
  border: 3px solid #e9fbe5;
}

.profile-image:hover {
  transform: scale(1.03);
  box-shadow: 0 20px 60px rgba(61, 145, 59, 0.25);
}

/* Experience Badge */
.experience-badge {
  position: absolute;
  bottom: -20px;
  right: -10px;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
  text-align: center;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }
}

.badge-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.badge-text {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.95;
  margin-top: 3px;
}

/* Intro Content */
.intro-content {
  padding: 0 20px;
}

.intro-label {
  display: inline-block;
  background: linear-gradient(135deg, #e9fbe5 0%, #d4f5d1 100%);
  color: #2f5d2a;
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 15px;
}

.myinfo-title {
  color: #3d913b;
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  line-height: 1.1;
}

.myinfo-intro {
  font-size: 1.15rem;
  line-height: 1.9;
  color: #555;
  margin-bottom: 2rem;
}

/* Stats Row */
.stats-row {
  display: flex;
  gap: 30px;
  margin-top: 2rem;
}

.stat-item {
  flex: 1;
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(61, 145, 59, 0.15);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: #3d913b;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  color: #666;
  font-weight: 500;
}

/* Section Headers */
.section-label {
  display: block;
  background: linear-gradient(135deg, #e9fbe5 0%, #d4f5d1 100%);
  color: #2f5d2a;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 auto 10px;
  width: fit-content;
}

.section-header h2 {
  color: #3d913b;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: #555;
  font-size: 1.1rem;
  margin-top: 1rem;
  font-weight: 400;
  line-height: 1.6;
}

.divider {
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, #4CAF50, #45a049);
  margin: 0 auto;
  border-radius: 3px;
}

/* Info Cards (Servizi) */
.info-card {
  background: white;
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 5px 25px rgba(61, 145, 59, 0.08);
  border: 2px solid rgba(61, 145, 59, 0.08);
  transition: all 0.4s ease;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(61, 145, 59, 0.03) 0%, transparent 70%);
  transition: transform 0.6s ease;
}

.info-card:hover::before {
  transform: translate(25%, 25%);
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(61, 145, 59, 0.18);
  border-color: rgba(61, 145, 59, 0.2);
}

.info-card-icon {
  font-size: 3.5rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.info-card:hover .info-card-icon {
  transform: scale(1.15) rotate(5deg);
}

.info-card h3 {
  color: #3d913b;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  text-align: center;
}

.info-card p {
  color: #555;
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 0;
  position: relative;
}

/* Value Cards (Perché Scegliermi) */
.value-card {
  background: linear-gradient(135deg, #e9fbe5 0%, #f0f9ee 100%);
  padding: 40px 30px;
  border-radius: 18px;
  box-shadow: 0 4px 15px rgba(61, 145, 59, 0.12);
  transition: all 0.4s ease;
  height: 100%;
  border: 3px solid rgba(61, 145, 59, 0.2);
  position: relative;
  overflow: hidden;
}

.value-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.value-card:hover::before {
  opacity: 1;
}

.value-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 45px rgba(61, 145, 59, 0.25);
  border-color: rgba(61, 145, 59, 0.35);
  background: linear-gradient(135deg, #d4f5d1 0%, #e9fbe5 100%);
}

.value-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  transition: all 0.4s ease;
  background: white;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 4px 15px rgba(61, 145, 59, 0.15);
}

.value-card:hover .value-icon {
  transform: scale(1.15) rotate(360deg);
  box-shadow: 0 8px 25px rgba(61, 145, 59, 0.3);
}

.value-card h4 {
  color: #2f5d2a;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.value-card p {
  color: #2f5d2a;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 0;
  position: relative;
  font-weight: 500;
}

/* CTA Box */
.cta-box {
  background: linear-gradient(135deg, #e9fbe5 0%, #f0f9ee 100%);
  padding: 60px 50px;
  border-radius: 25px;
  border-left: 6px solid #3d913b;
  box-shadow: 0 10px 40px rgba(61, 145, 59, 0.12);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
  border-radius: 50%;
}

.cta-box h3 {
  color: #3d913b;
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.cta-box p {
  color: #2f5d2a;
  font-size: 1.15rem;
  margin-bottom: 2rem;
  position: relative;
}

.cta-box .contact-btn {
  position: relative;
}

/* Responsive */
@media (max-width: 768px) {
  .myinfo-title {
    font-size: 2.2rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .stats-row {
    flex-direction: column;
    gap: 15px;
  }

  .experience-badge {
    bottom: -15px;
    right: 5px;
    padding: 12px 20px;
  }

  .badge-number {
    font-size: 1.5rem;
  }

  .intro-content {
    padding: 0;
  }

  .info-card,
  .value-card {
    padding: 25px 20px;
  }

  .cta-box {
    padding: 40px 25px;
  }
}

.myInfo {
  h1 {
    color: #4CAF50;
    font-weight: bold;
  }
}

.myInfo-box {
  text-align: start;
}

.info-contact {
  font-size: 20px;
  font-style: italic;
  margin-bottom: 0;
}

@media (max-width: 1000px) {

  .img-box {
    display: flex;
    justify-content: center;
    order: 1;
  }

  .myInfo {
    padding-left: 30px !important;
    order: 2;
  }

  .service_container .overlay {
    padding: 153px 20px 20px;
  }
}

/*Pagina contatti*/
.contacts_container {
  max-width: 100%;
  height: 450px;
  background-image: url('Img/Hero-Contatti.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  position: relative;
}

.contacts_container h1 {
  font-size: 80px;
  margin-bottom: 0;
}

.contacts_container .overlay {
  padding: 100px 20px 20px 20px;
  width: 100%;
  position: relative;
  z-index: 1;
  background-color: rgba(255, 255, 255, 0.2);
  height: 100%;
  color: #fff;
}

/* Contact Cards Moderne */
.contact-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: 0 5px 25px rgba(61, 145, 59, 0.1);
  border: 2px solid rgba(61, 145, 59, 0.08);
  transition: all 0.4s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Contact Card Link Wrapper */
.contact-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.contact-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(61, 145, 59, 0.03) 0%, transparent 70%);
  transition: transform 0.6s ease;
  pointer-events: none;
  z-index: 0;
}

.contact-card>* {
  position: relative;
  z-index: 1;
}

.contact-card:hover::before {
  transform: translate(25%, 25%);
}

.contact-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 45px rgba(61, 145, 59, 0.2);
  border-color: rgba(61, 145, 59, 0.2);
}



.contact-icon-wrapper {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #e9fbe5 0%, #f0f9ee 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(61, 145, 59, 0.15);
  transition: all 0.4s ease;
}

.contact-card:hover .contact-icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, #d4f5d1 0%, #e9fbe5 100%);
  box-shadow: 0 6px 25px rgba(61, 145, 59, 0.25);
}

.contact-icon-wrapper.whatsapp {
  background: linear-gradient(135deg, #e9fbe5 0%, #f0f9ee 100%);
}

.contact-icon-wrapper.location {
  background: linear-gradient(135deg, #e9fbe5 0%, #f0f9ee 100%);
}

.contact-icon-wrapper img {
  width: 45px;
  height: 45px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon-wrapper img {
  transform: scale(1.1);
}

.contact-title {
  color: #3d913b;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.contact-info {
  color: #2f5d2a;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 0.8rem;
  transition: color 0.3s ease;
  position: relative;
}

.contact-info:hover {
  color: #3d913b;
  text-decoration: none;
}

.contact-description {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0;
  font-style: italic;
}

/* Maps Section */
.maps-contacts-box {
  background: #fff;
}

.mappa-banner {
  max-width: 100%;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(61, 145, 59, 0.15);
  border: 3px solid #e9fbe5;
  transition: all 0.3s ease;
}

.mappa-banner:hover {
  box-shadow: 0 15px 50px rgba(61, 145, 59, 0.2);
  transform: translateY(-5px);
}

.mappa-banner iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive Contacts */
@media (max-width: 768px) {
  .contacts_container h1 {
    font-size: 50px;
  }

  .contact-card {
    padding: 30px 20px;
    margin-bottom: 20px;
  }

  .contact-icon-wrapper {
    width: 75px;
    height: 75px;
  }

  .contact-icon-wrapper img {
    width: 38px;
    height: 38px;
  }

  .mappa-banner {
    height: 350px;
  }
}

/* Old contact-box styles - kept for compatibility */
.contact-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;

  &:hover {
    background-color: #f0f5ff;
    transform: scale(1.2);
    /* Ingrandisce del 20% */
    color: #28a745;
  }

  .label-contact {
    color: #3d913b;
    font-size: 25px;
    font-weight: bold;

    &:hover {
      text-decoration: none;
    }
  }

  .info-label {
    color: #333;
    font-size: 30px;

    &:hover {
      text-decoration: none;
    }
  }
}

@media (max-width: 1000px) {

  .label-contact {
    font-size: 20px !important;
  }

  .info-label {
    text-align: center;
    font-size: 25px !important;
  }
}

.service-contacts-box {
  height: 300px;
}

.contacts-container .container {
  margin-top: 50px !important;
}

@media (max-width: 576px) {
  .contacts-container .container {
    margin-top: 20px !important;
  }
}

.mappa-banner {
  max-width: 100%;
  height: 400px;
  border: none;
  overflow: hidden;

  iframe {
    width: 100%;
    height: 100%;
    border: none;
  }
}

/* Stile del tasto "scroll to top" */
.scroll-to-top-btn {
  position: fixed;
  bottom: 0px;
  /* Distanza dal fondo della pagina */
  right: 20px;
  /* Distanza dal lato destro della pagina */
  background-color: #3d913b;
  /* Colore di sfondo verde */
  color: white;
  /* Colore del testo */
  border: none;
  border-radius: 50%;
  max-width: 50px;
  /* Dimensione del tasto */
  height: 50px;
  /* Dimensione del tasto */
  font-size: 24px;
  /* Dimensione della freccia */
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

/* Effetto hover sul tasto */
.scroll-to-top-btn:hover {
  background-color: #2b6f2a;
  /* Colore di sfondo al passaggio del mouse */
  transform: scale(1.1);
  /* Leggero ingrandimento del tasto */
}

/* Nascondi il tasto quando la pagina è in cima */
#scrollToTop {
  display: none;
}



/* Media Queries per dispositivi mobili */
@media (max-width: 767px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .navbar .nav-link {
    font-size: 16px;
    padding: 10px 15px;
  }

  .welcome_container h1 {
    font-size: 32px;
  }

  .carousel img {
    max-width: 90%;
    height: 150px;
  }
}