/* ------------------------------------------------------
   RESET DI BASE
------------------------------------------------------ */
:root {
  --wgi-blue: #314e78;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-family: system-ui, Arial, sans-serif;
  background: #f5f5f5;
  color: #222;
}
body {
  line-height: 1.5;
  color: var(--wgi-blue);
}

/* ------------------------------------------------------
   LAYOUT GENERALE
------------------------------------------------------ */
.wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px;
}

.site-header,
.site-footer {
  background: #fff;
  border-bottom: 1px solid #ddd;
}

.site-header .wrap,
.site-footer .wrap {
  padding: 16px;
}

.site-footer {
  border-top: 1px solid #ddd;
  border-bottom: none;
  margin-top: 32px;
  text-align: center;
  font-size: 0.9rem;
  color: #666;
}

/* ------------------------------------------------------
   HEADER CON LOGO
------------------------------------------------------ */

.header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #333;
}

.brand-logo {
  display: block;
  height: 80px;      /* regola a piacere */
  width: auto;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--wgi-blue);
}

/* ------------------------------------------------------
   CONTENUTI PAGINE
------------------------------------------------------ */
h1, h2 {
  margin: 16px 0;
  color: var(--wgi-blue);
}
p {
  margin: 12px 0;
  color: var(--wgi-blue);
}

/* ------------------------------------------------------
   FORM DEL SONDAGGIO
------------------------------------------------------ */
.survey-page {
  background: #fff;
  padding: 20px;
  margin: 16px 0;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.q {
  margin: 16px 0;
}

.q-label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.req {
  color: #d00;
  margin-left: 4px;
}

/* Campi input */
input[type=text],
input[type=number],
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background: #fafafa;
}

/* Textarea */
textarea {
  min-height: 120px;
}

/* ------------------------------------------------------
   OPZIONI MULTIPLA (checkbox / radio)
------------------------------------------------------ */

/* Contenitore di ogni opzione (una riga per opzione) */
.chk {
  display: flex;
  align-items: flex-start;     /* allinea in alto, non al centro */
  gap: 8px;
  margin: 4px 0;
}

/* Il checkbox / radio vero e proprio */
.chk input[type="checkbox"],
.chk input[type="radio"] {
  flex: 0 0 auto;
  margin-top: 3px;            /* piccolo aggiustamento verticale */
}

/* Il testo dell'opzione */
.chk span {
  flex: 1 1 auto;
  display: block;
  line-height: 1.4;
}

/* Per sicurezza: non applicare width:100% ai checkbox/radio */
input[type="checkbox"],
input[type="radio"] {
  width: auto;
}

.rating {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.rating label {
  display: flex;
  gap: 4px;
  align-items: center;
}

/* ------------------------------------------------------
   BOTTONI
------------------------------------------------------ */
.btn {
  padding: 10px 16px;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: #ddd;
  transition: background 0.2s;
}

.btn:hover {
  background: #ccc;
}

.btn.primary {
  background: var(--wgi-blue);
  color: #fff;
  font-weight: bold;
}

.btn.primary:hover {
  background: #005dc0;
}

.nav {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

/* ------------------------------------------------------
   RESPONSIVE
------------------------------------------------------ */
@media (min-width: 700px) {
  .nav {
    justify-content: flex-end;
    gap: 16px;
  }
}
