* {
  font-family: "Times New Roman", serif;
}

:root {
  --primary-color: #0073b7;
  --secondary-color: #00a658;
  --accent-color: #f9df13;
  --warning-color: #dc291b;
  --dark-color: #1f2937;
}

.navbar-brand {
  color: var(--primary-color) !important;
}

.hero-section {
  background: linear-gradient(
    135deg,
    var(--primary-color) 0%,
    var(--secondary-color) 100%
  );
  color: white;
  padding: 100px 0;
  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="circuit" patternUnits="userSpaceOnUse" width="100" height="100"><path d="M10 10h80v80h-80z" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.2)"/><circle cx="80" cy="20" r="2" fill="rgba(255,255,255,0.2)"/><circle cx="20" cy="80" r="2" fill="rgba(255,255,255,0.2)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.2)"/></pattern></defs><rect width="100" height="100" fill="url(%23circuit)"/></svg>')
    repeat;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.section-title {
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: 3rem;
}

.service-card {
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    45deg,
    var(--primary-color),
    var(--secondary-color)
  );
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.stats-section {
  background: var(--dark-color);
  color: white;
  padding: 80px 0;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.cta-section {
  background: linear-gradient(
    135deg,
    var(--secondary-color) 0%,
    var(--primary-color) 100%
  );
  color: white;
  padding: 80px 0;
}

.btn-custom {
  background: var(--accent-color);
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 25px;
  transition: all 0.3s ease;
  color: #000;
}

.btn-custom:hover {
  background: #e6c90d;
  transform: translateY(-2px);
  color: #000;
}

.footer {
  background: var(--dark-color);
  color: #f8f9fa;
  padding: 50px 0 30px;
}

.footer h5,
.footer h6 {
  color: white;
}

.footer .text-muted {
  color: #adb5bd !important;
}

.footer a.text-muted:hover {
  color: var(--accent-color) !important;
}

.contact-info {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 2rem;
}

/* Spazio verticale extra per la sezione contatti */
#contatti {
  padding-top: 100px; /* spazio sopra */
  padding-bottom: 100px; /* spazio sotto */
}

/* Allineamento in altezza della riga contatti/mappa */
#contatti .row.align-items-stretch {
  min-height: 450px; /* altezza minima della riga */
}

/* Più padding interno per il box info contatti */
#contatti .contact-info {
  padding: 50px;
}

.contact-info {
  background: #f8f9fa;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: center; /* centra verticalmente */
  align-items: center; /* centra orizzontalmente */
  text-align: center; /* centra i testi */
  gap: 1.5rem;
}

.contact-info h5 {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.contact-info .mb-3 {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-info i {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(0, 115, 183, 0.25);
}

.text-primary {
  color: var(--primary-color) !important;
}
.text-warning {
  color: var(--accent-color) !important;
}
.text-success {
  color: var(--secondary-color) !important;
}
.text-danger {
  color: var(--warning-color) !important;
}
