* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f5f5f5;
  color: #222;
  line-height: 1.5;
}

header {
  background: #1f1f1f;
  color: white;
  padding: 18px 30px;
}

.header-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: bold;
}

.logo span {
  display: block;
  font-size: 13px;
  font-weight: normal;
  color: #ccc;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 18px;
  font-weight: bold;
}

.hero {
  background: white;
  padding: 70px 30px;
  text-align: center;
}

.hero h1 {
  font-size: 40px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 19px;
  max-width: 750px;
  margin: 0 auto 25px;
  color: #555;
}

.subtitle {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.btn {
  display: inline-block;
  background: #007bff;
  color: white;
  padding: 13px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
}

.btn:hover {
  background: #005fcc;
}

.section {
  max-width: 1100px;
  margin: auto;
  padding: 45px 30px;
}

.section h2 {
  text-align: center;
  font-size: 30px;
  margin-bottom: 25px;
}

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

.card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  text-decoration: none;
  color: #222;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card h3 {
  margin-top: 0;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.benefits {
  background: #fff;
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-top: 25px;
}

.benefit {
  background: #f1f1f1;
  padding: 18px;
  border-radius: 8px;
}

.cta {
  text-align: center;
  background: #1f1f1f;
  color: white;
  padding: 55px 30px;
}

.cta p {
  color: #ddd;
  font-size: 18px;
}

/* PAGINE PRODOTTO */

.product-hero {
  background: linear-gradient(135deg, #ffffff, #eef3f7);
  padding: 80px 30px;
}

.product-hero-inner {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.product-hero h1 {
  font-size: 42px;
  margin: 0 0 18px;
}

.product-hero p {
  font-size: 18px;
  line-height: 1.6;
  color: #444;
}

.product-box {
  background: #1f1f1f;
  color: white;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.18);
}

.product-box h3 {
  margin-top: 0;
  font-size: 24px;
}

.product-box p {
  color: #eee;
  margin: 10px 0;
}

.product-section {
  max-width: 1100px;
  margin: auto;
  padding: 55px 30px;
}

.product-section h2 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 30px;
}

.feature-grid,
.application-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card,
.application-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.feature-card strong,
.application-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.feature-card p,
.application-card p {
  margin-bottom: 0;
  color: #555;
}

.tech-table {
  width: 100%;
  max-width: 850px;
  margin: auto;
  border-collapse: collapse;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.tech-table td {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
}

.tech-table tr:last-child td {
  border-bottom: none;
}

.tech-table td:first-child {
  font-weight: bold;
  background: #f7f7f7;
  width: 35%;
}

.product-note {
  max-width: 850px;
  margin: 22px auto 0;
  text-align: center;
  font-size: 17px;
  color: #444;
}

.site-footer {
    background: #0c5f41;
    color: white;
    padding: 30px 20px;
    margin-top: 40px;
}

.site-footer {
  background: #1f1f1f;
  color: #ccc;
  padding: 28px 30px;
  margin-top: 0;
  font-size: 14px;
}

.footer-inner {
  max-width: 1100px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-brand strong {
  display: block;
  color: white;
  font-size: 18px;
}

.footer-brand span {
  display: block;
  color: #aaa;
  margin-top: 4px;
}

.footer-info p {
  margin: 4px 0;
}

.footer-info a {
  color: white;
  text-decoration: none;
}

.footer-info a:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* CONTATTI */

.contact-section {
  max-width: 900px;
  margin: auto;
  padding: 60px 30px;
}

.contact-box {
  background: white;
  padding: 35px;
  border-radius: 14px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.contact-box h1 {
  margin-top: 10px;
  font-size: 34px;
}

.contact-intro {
  color: #555;
  font-size: 18px;
  margin-bottom: 25px;
}

.contact-box input,
.contact-box textarea {
  width: 100%;
  padding: 13px;
  margin-bottom: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-size: 15px;
}

.contact-box textarea {
  min-height: 130px;
}

.ok {
  background: #d4edda;
  color: #155724;
  padding: 13px;
  margin-bottom: 18px;
  border-radius: 6px;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.g-recaptcha {
  margin: 18px 0;
}

/* MODAL COLORI */

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0,0,0,0.65);
  padding: 20px;
}

.modal-content {
  background: white;
  max-width: 850px;
  margin: 60px auto;
  padding: 35px;
  border-radius: 16px;
  position: relative;
  box-shadow: 0 10px 35px rgba(0,0,0,0.25);
}

.modal-content h2 {
  text-align: center;
  margin-top: 0;
  font-size: 30px;
}

.close {
  position: absolute;
  right: 22px;
  top: 16px;
  font-size: 34px;
  cursor: pointer;
  color: #333;
}

.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 20px;
  margin-top: 25px;
}

.color-item {
  text-align: center;
}

.color-item:hover {
  transform: translateY(-3px);
}

.color-box {
  height: 80px;
  border-radius: 12px;
  border: 1px solid #ccc;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}

.color-img {
  width: 100%;
  max-width: 160px;
  height: 95px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #eee;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.image-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  inset: 0;
  background: rgba(0,0,0,0.9);
}

.image-modal-content {
  display: block;
  max-width: 90%;
  max-height: 90%;
  margin: 5% auto;
  border-radius: 10px;
}

.image-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: white;
  cursor: pointer;
}

.color-item p {
  margin-top: 8px;
  font-weight: bold;
}

.modal-actions {
  text-align: center;
  margin-top: 30px;
}

/* UTILITY */

.center {
  text-align: center;
  margin-top: 25px;
}

/* IMMAGINI E TESTI PRODOTTO */

.product-highlight {
  font-weight: bold;
  margin-top: 10px;
}

.product-image {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 25px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

@media (max-width: 700px) {
  .modal-content {
    margin: 30px auto;
    padding: 25px;
  }

  .color-box {
    height: 65px;
  }
}


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

  .product-hero h1,
  .hero h1 {
    font-size: 32px;
  }
}

@media (max-width: 700px) {
  .header-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  nav a {
    margin: 0 8px;
  }

  .hero {
    padding: 50px 22px;
  }

  .product-hero {
    padding: 55px 22px;
  }

  .section,
  .product-section {
    padding: 40px 22px;
  }
}