/* =============================
   VARIABILI E RESET BASE
   ============================= */
:root {
  --bg: #f7f9fb;
  --card: #ffffff;
  --accent: #0066cc;
  --text: #0b2540;
  --muted: #556677;
  --radius: 10px;
  --maxw: 800px;
}
* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #eef6ff 0%, var(--bg) 100%);
  -webkit-font-smoothing: antialiased;
}

/* =============================
   LAYOUT PRINCIPALE
   ============================= */
.container {
  max-width: 1800px;
  margin: 36px auto;
  padding: 24px 32px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
}

/* =============================
   HEADER E HERO
   ============================= */
header {
  display: flex;
  align-items: center;
  gap: 16px;
}
header img {
  height: 64px;
  width: 64px;
  border-radius: 8px;
  object-fit: contain;
}
h1 {
  font-size: 1.6rem;
  margin: 0;
}
.hero {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 18px;
  box-shadow: 0 6px 18px rgba(11,37,64,0.06);
}

/* =============================
   CARD E COMPONENTI BASE
   ============================= */
.card {
  background: var(--card);
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(11,37,64,0.04);
}
.download-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}
.muted {
  color: var(--muted);
  font-size: 0.95rem;
}
ul.features {
  padding-left: 1.1rem;
  margin: 8px 0;
}
footer {
  margin-top: 22px;
  font-size: 0.9rem;
  color: #6b7a8a;
}

/* =============================
   SEZIONE ALTRI SOFTWARE
   ============================= */
.other-software-section {
  margin-top: 32px;
}
.other-software-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: flex-start;
}
.other-software-card {
  flex: 1 1 220px;
  min-width: 220px;
  max-width: 300px;
  background: #f7f9fb;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px rgba(11,37,64,0.04);
  transition: box-shadow 0.2s;
}
.other-software-card:hover {
  box-shadow: 0 6px 18px rgba(11,37,64,0.10);
}
.other-software-logo {
  height: 56px;
  margin-bottom: 10px;
}
.other-software-title {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 1.08rem;
  color: var(--text);
}
.other-software-desc {
  font-size: 0.97rem;
  color: var(--muted);
  margin-bottom: 10px;
  text-align: center;
}
.other-software-link {
  width: 100%;
  text-align: center;
  margin-top: auto;
  margin-bottom: 18px;
}

/* =============================
   FAQ / ACCORDION
   ============================= */
.accordion summary {
  cursor: pointer;
  list-style: none;
  outline: none;
  padding: 12px;
  border-radius: 8px;
  background: #f6f9ff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}
.accordion details {
  margin-bottom: 8px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(11,37,64,0.06);
}
.accordion .content {
  padding: 12px;
  background: #fff;
  color: var(--text);
}
.chev {
  transition: transform .2s ease;
  display: inline-block;
}
details[open] .chev {
  transform: rotate(90deg);
}
.faq-more {
  color: var(--accent);
  text-decoration: underline;
  font-weight: 600;
}
.faq-more:focus {
  outline: 3px solid rgba(0,102,204,0.25);
  outline-offset: 3px;
}

/* =============================
   FORM CONTATTI
   ============================= */
.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
label {
  font-weight: 600;
  font-size: 0.95rem;
}
input[type="email"], #nome, textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d7e3ef;
  border-radius: 8px;
  font-size: 0.95rem;
}
textarea {
  min-height: 120px;
  resize: vertical;
}
.btn-send {
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  font-weight: 700;
  cursor: pointer;
}
.btn-send:focus {
  outline: 3px solid rgba(0,102,204,0.25);
  outline-offset: 3px;
}
.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 8px;
}
.form-success {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #f0fff6;
  border-left: 4px solid #00a86b;
  color: #0b6b45;
  display: none;
}

/* =============================
   PHOTO PLACEHOLDER
   ============================= */
.photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  border: 2px dashed #d7e3ef;
  border-radius: 8px;
  background: linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
  color: var(--muted);
  font-weight: 600;
}

/* =============================
   RESPONSIVE
   ============================= */
@media(max-width:880px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 16px;
  }
}
