* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #123152;
  background: #f4f6fb;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* HEADER */

.header {
  background: #ffffff;
  border-bottom: 1px solid #d5ddf0;
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-inner {
  max-width: 1150px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 52px;
  width: auto;
}

.brand-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #0b315e;
}

.brand-sub {
  font-size: 0.8rem;
  color: #6c7ca0;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
}

.nav a {
  padding: 6px 10px;
  border-radius: 999px;
}

.nav a:hover {
  background: #e4edff;
}

.nav-cta {
  background: #003f8c;
  color: #ffffff;
  font-weight: 600;
}

/* HERO */

.hero {
  position: relative;
  min-height: 320px;
  background: #0b315e;
  color: #ffffff;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("hero.jpg") center/cover no-repeat;
  opacity: 0.45; /* sostituisci hero.jpg con una tua foto larga */
}

.hero-inner {
  position: relative;
  max-width: 1150px;
  margin: 0 auto;
  padding: 45px 16px 50px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
  gap: 30px;
}

.hero-main h1 {
  font-size: 2.1rem;
  line-height: 1.2;
  margin-bottom: 8px;
}

.hero-main p {
  font-size: 0.98rem;
  max-width: 540px;
}

.hero-badges {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
}

.hero-badge {
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
}

.hero-cta-row {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-primary {
  background: #ffffff;
  color: #003f8c;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.btn-primary:hover { background: #dde7ff; }

.btn-outline {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.hero-contact {
  margin-top: 12px;
  font-size: 0.85rem;
}

.hero-side {
  font-size: 0.85rem;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 14px;
  padding: 14px 14px 12px;
}

/* SEZIONI GENERALI */

.section {
  padding: 32px 16px;
}

.section-inner {
  max-width: 1150px;
  margin: 0 auto;
}

.section-title {
  font-size: 1.4rem;
  color: #0b315e;
  margin-bottom: 6px;
}

.section-sub {
  font-size: 0.9rem;
  color: #63759a;
  margin-bottom: 18px;
}

/* CHI SIAMO */

.chi-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: 24px;
}

.chi-text p {
  font-size: 0.9rem;
  color: #2e4164;
  margin-bottom: 10px;
}

.chi-points {
  margin-top: 8px;
  font-size: 0.85rem;
}

.chi-points li {
  margin-left: 18px;
  margin-bottom: 4px;
}

.chi-foto {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(12, 48, 97, 0.25);
  background: #d6e5f9;
}

/* SERVIZI */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(9, 34, 72, 0.15);
  display: flex;
  flex-direction: column;
}

.card-img {
  height: 150px;
  background: #dbe5f8;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-body {
  padding: 14px 14px 16px;
}

.card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0b315e;
  margin-bottom: 6px;
}

.card-text {
  font-size: 0.85rem;
  color: #586c92;
}

/* LAVORI (REALIZZAZIONI) */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.gallery-item {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(9, 34, 72, 0.15);
}

.gallery-img {
  height: 170px;
  background: #dde6fa;
}

.gallery-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-body {
  padding: 10px 12px 12px;
  font-size: 0.82rem;
  color: #455a80;
}

/* CONTATTI */

.contacts-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
}

.contact-box {
  font-size: 0.9rem;
  color: #2c3f63;
}

.contact-box p { margin-bottom: 6px; }

.contact-highlight {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #e7f0ff;
  font-size: 0.85rem;
}

.contact-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
}

.btn-call {
  background: #003f8c;
  color: #ffffff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
}

.form {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(9, 34, 72, 0.15);
  padding: 16px;
  font-size: 0.85rem;
}

.form-row {
  margin-bottom: 10px;
}

.form-label {
  font-size: 0.78rem;
  color: #5a6f94;
  margin-bottom: 3px;
}

.form-input,
.form-textarea {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #ccd7eb;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 0.85rem;
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-button {
  margin-top: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  background: #003f8c;
  color: #ffffff;
  font-size: 0.85rem;
  cursor: pointer;
}

.form-button:hover { background: #022d62; }

/* FOOTER */

.footer {
  background: #0b1d3a;
  color: #9ab0d7;
  padding: 16px 16px;
  font-size: 0.78rem;
  margin-top: 10px;
}

.footer-inner {
  max-width: 1150px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .chi-layout,
  .contacts-grid {
    grid-template-columns: 1fr;
  }
}
