* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f4f4f4;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 100%);
  color: white;
  padding: 40px 0;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.tagline {
  font-size: 1.1em;
  opacity: 0.9;
  color: #333;
  margin-top: 10px;
}

.loghi-section {
  background: white;
  padding: 50px 0;
  border-bottom: 1px solid #e0e0e0;
}

.loghi-section h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 40px;
  color: #295bb8;
}

.carousel-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.loghi-section .carousel-slide {
  min-width: 50%;
}

.carousel-slide img {
  max-width: 200px;
  max-height: 120px;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: transform 0.3s;
}

.carousel-slide img:hover {
  transform: scale(1.1);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(42, 82, 152, 0.8);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5em;
  cursor: pointer;
  transition: background 0.3s;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(30, 60, 114, 1);
}

.carousel-btn.prev {
  left: 10px;
}

.carousel-btn.next {
  right: 10px;
}

.gallery-section {
  background: #f9f9f9;
  padding: 50px 0;
}

.gallery-section h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 40px;
  color: #1e3c72;
}

.gallery-carousel .carousel-slide img {
  max-width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  filter: none;
  opacity: 1;
}

.servizi {
  background-image: linear-gradient(rgba(247, 21, 21, 0.6), #1e3c72), url('gallery/foto9.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 30px 0;
}

.servizi h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 40px;
  color: #ffffff;
}

.servizi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.servizio-item {
  cursor: pointer;
  user-select: none;
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
  padding: 25px 40px 25px 25px;
  border-radius: 12px;
  border: 1px solid #ddd;
  border-left: 6px solid #2a5298;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  backdrop-filter: blur(5px);
}

.servizio-item::before {
  content: "•";
  color: #2a5298;
  font-weight: bold;
  font-size: 1.5em;
  margin-right: 10px;
}

.servizio-item::after {
  content: "→";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: all 0.3s ease;
  font-weight: bold;
  font-size: 1.2em;
  color: #2a5298;
}

.servizio-item:hover {
  transform: translateY(-5px) scale(1.02);
  background: #ffffff;
  border-color: #2a5298;
  box-shadow: 0 10px 20px rgba(42, 82, 152, 0.2);
  color: #1e3c72;
}

.servizio-item:hover::after {
  opacity: 1;
  right: 20px;
}

.servizio-item:active {
  transform: translateY(-2px) scale(0.98);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cta-section {
  background: linear-gradient(135deg, #a73c3c 0%, #764ba2 100%);
  padding: 50px 0;
  text-align: center;
}

.cta-section h2 {
  color: white;
  margin-bottom: 30px;
  font-size: 2em;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 18px 40px;
  font-size: 1.2em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-phone {
  background: #25D366;
  color: white;
}

.btn-phone:hover {
  background: #1da851;
  transform: scale(1.05);
}

.btn-whatsapp {
  background: #128C7E;
  color: white;
}

.btn-whatsapp:hover {
  background: #0d6e63;
  transform: scale(1.05);
}

.cta-buttons-sticky {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 15px;
  z-index: 1000;
  flex-direction: column;
}

.cta-buttons-sticky .btn {
  padding: 15px 20px;
  font-size: 1em;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.cta-buttons-sticky .btn-phone {
  background: #25D366;
  color: white;
}

.cta-buttons-sticky .btn-phone:hover {
  background: #1da851;
  transform: scale(1.1);
}

.cta-buttons-sticky .btn-whatsapp {
  background: #128C7E;
  color: white;
}

.cta-buttons-sticky .btn-whatsapp:hover {
  background: #0d6e63;
  transform: scale(1.1);
}

.form-section {
  background: white;
  padding: 50px 0;
}

.form-section h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 20px;
  color: #1e3c72;
}

.form-section p {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
}

form {
  max-width: 600px;
  margin: 0 auto;
  background: #f9f9f9;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
}

input, textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  transition: border-color 0.3s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #2a5298;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
}

.checkbox-group label {
  margin: 0;
  font-weight: normal;
  font-size: 0.9em;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background: #2a5298;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-submit:hover {
  background: #1e3c72;
}

.btn-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
}

#formResult {
  margin-top: 20px;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
  display: none;
}

#formResult.success {
  background: #d4edda;
  color: #155724;
  display: block;
}

#formResult.error {
  background: #f8d7da;
  color: #721c24;
  display: block;
}

.testimoniali-section {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 50px 0;
}

.testimoniali-section h2 {
  text-align: center;
  font-size: 2em;
  margin-bottom: 40px;
  color: #1e3c72;
}

.testimoniale-item {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px;
}

.testimoniale-content {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  max-width: 600px;
  text-align: center;
}

.testimoniale-text {
  font-size: 1.1em;
  color: #333;
  margin-bottom: 15px;
  font-style: italic;
  line-height: 1.8;
}

.testimoniale-author {
  font-weight: bold;
  color: #2a5298;
  margin-bottom: 10px;
}

.stars {
  color: #ffc107;
  font-size: 1.3em;
  letter-spacing: 2px;
}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: white;
  margin: 15% auto;
  padding: 40px;
  border-radius: 15px;
  max-width: 500px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  position: relative;
  animation: slideDown 0.3s;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 2em;
  font-weight: bold;
  color: #999;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: #333;
}

.modal-content h3 {
  color: #1e3c72;
  margin-bottom: 15px;
  font-size: 1.8em;
  text-align: center;
}

.modal-service {
  text-align: center;
  color: #2a5298;
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 30px;
  padding: 10px;
  background: #f0f4f8;
  border-radius: 5px;
}

.modal-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.modal-buttons .btn {
  flex: 1;
  min-width: 180px;
  text-align: center;
}

footer {
  background: #1e3c72;
  color: white;
  padding: 30px 0;
  text-align: center;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

footer a:hover {
  color: #ddd;
}

.footer-info {
  margin-bottom: 15px;
  line-height: 1.8;
}

@media (max-width: 768px) {
  .logo {
    font-size: 2em;
  }
  
  .servizi h2, .cta-section h2, .form-section h2, .loghi-section h2, .gallery-section h2, .testimoniali-section h2 {
    font-size: 1.5em;
  }
  
  .btn {
    padding: 15px 30px;
    font-size: 1em;
  }
  
  form {
    padding: 25px;
  }
  
  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2em;
  }
  
  .carousel-slide img {
    max-width: 150px;
    max-height: 90px;
  }
  
  .gallery-carousel .carousel-slide img {
    max-height: 250px;
  }
  
  .loghi-section .carousel-slide {
    min-width: 100%;
  }
  
  .testimoniale-content {
    padding: 25px;
  }
  
  .testimoniale-text {
    font-size: 1em;
  }
  
  .cta-buttons-sticky {
    bottom: 15px;
    right: 15px;
    gap: 10px;
  }
  
  .cta-buttons-sticky .btn {
    padding: 12px 15px;
    font-size: 0.9em;
  }
  
  .modal-content {
    margin: 30% auto;
    padding: 30px 20px;
    max-width: 90%;
  }
  
  .modal-content h3 {
    font-size: 1.4em;
  }
  
  .modal-buttons {
    flex-direction: column;
  }
  
  .modal-buttons .btn {
    width: 100%;
  }
}
.social-links {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin: 20px 0;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.social-btn.facebook {
  background: #1877f2;
  color: white;
}

.social-btn.facebook:hover {
  background: #145dbf;
  transform: scale(1.05);
}

.social-btn.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: white;
}

.social-btn.instagram:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(188, 24, 136, 0.4);
}
.testimoniali-section {
  display: none !important;
}
.chi-siamo {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  padding: 20px 0;
  text-align: center;
}

.chi-siamo h2 {
  font-size: 2.5em;
  color: #1e3c72;
  margin-bottom: 20px;
}

.chi-siamo .descrizione {
  font-size: 1.2em;
  color: #333;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  
}

.certificazioni-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 20px auto;
}

.cert-item {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.cert-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.cert-icon {
  font-size: 3em;
  color: #2a5298;
  margin-bottom: 15px;
}

.cert-item h3 {
  color: #1e3c72;
  font-size: 1.4em;
  margin-bottom: 15px;
}

.cert-item p {
  color: #666;
  line-height: 1.6;
  font-size: 0.95em;
}

@media (max-width: 768px) {
  .chi-siamo h2 {
    font-size: 1.8em;
  }
  
  .chi-siamo .descrizione {
    font-size: 1em;
  }
}