:root {
  --intesa-green: #19bb26;
  --intesa-green-dark: #0a5402;
  --intesa-green-soft: #effcf0;
  --intesa-orange: #ff6600;
  --intesa-navy: #44425a;
  --intesa-gray: #6c6a74;
  --intesa-bg: #f2f1f8;
  --intesa-border: #dee2e6;
  --intesa-white: #ffffff;
  --radius: 10px;
  --shadow: 0 12px 40px rgba(68, 66, 90, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  color: var(--intesa-navy);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(25, 187, 38, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(255, 102, 0, 0.1), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--intesa-bg) 45%, #eef0f6 100%);
}

a {
  color: var(--intesa-orange);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  width: min(720px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3.5rem;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  animation: fadeUp 0.55s ease both;
}

.brand-logo {
  height: 56px;
  width: auto;
  max-width: min(280px, 70vw);
  object-fit: contain;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--intesa-green);
  color: var(--intesa-white);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.card {
  background: var(--intesa-white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(68, 66, 90, 0.06);
  overflow: hidden;
  animation: fadeUp 0.65s ease 0.08s both;
}

.card-accent {
  height: 5px;
  background: linear-gradient(90deg, var(--intesa-green) 0%, var(--intesa-orange) 100%);
}

.card-body {
  padding: 1.75rem 1.75rem 2rem;
}

.intro h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 700;
  color: var(--intesa-navy);
  line-height: 1.25;
}

.intro p {
  margin: 0 0 1.5rem;
  color: var(--intesa-gray);
  font-size: 0.95rem;
  line-height: 1.55;
}

.anon-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  background: var(--intesa-green-soft);
  border: 1px solid rgba(25, 187, 38, 0.25);
  color: var(--intesa-green-dark);
  font-size: 0.875rem;
  line-height: 1.45;
}

.anon-note svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.alert {
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.45;
  animation: fadeUp 0.35s ease both;
}

.alert-success {
  background: var(--intesa-green-soft);
  border: 1px solid rgba(25, 187, 38, 0.35);
  color: var(--intesa-green-dark);
}

.alert-error {
  background: #fdecee;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.form-grid {
  display: grid;
  gap: 1.1rem;
}

.form-row {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 560px) {
  .form-row.two {
    grid-template-columns: 1fr 1fr;
  }
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--intesa-navy);
}

.label-optional {
  font-weight: 500;
  color: var(--intesa-gray);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid var(--intesa-border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--intesa-navy);
  background: #fafafc;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--intesa-green);
  background: var(--intesa-white);
  box-shadow: 0 0 0 3px rgba(25, 187, 38, 0.18);
}

.field select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2344425a' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.type-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
}

@media (min-width: 560px) {
  .type-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.type-card {
  position: relative;
}

.type-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-card span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 84px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  border: 1.5px solid var(--intesa-border);
  border-radius: var(--radius);
  background: #fafafc;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--intesa-navy);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.type-card span small {
  font-size: 1.25rem;
  line-height: 1;
}

.type-card input:checked + span {
  border-color: var(--intesa-green);
  background: var(--intesa-green-soft);
  box-shadow: 0 0 0 3px rgba(25, 187, 38, 0.15);
  color: var(--intesa-green-dark);
}

.type-card span:hover {
  border-color: var(--intesa-orange);
  transform: translateY(-1px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.35rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: var(--radius);
  padding: 0.9rem 1.4rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--intesa-orange);
  color: var(--intesa-white);
  box-shadow: 0 8px 20px rgba(255, 102, 0, 0.28);
  min-width: 180px;
}

.btn-primary:hover {
  background: #e65c00;
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  box-shadow: none;
}

.hint {
  font-size: 0.8rem;
  color: var(--intesa-gray);
}

.footer {
  margin-top: 1.75rem;
  text-align: center;
  color: var(--intesa-gray);
  font-size: 0.8rem;
  line-height: 1.5;
  animation: fadeUp 0.7s ease 0.15s both;
}

.footer strong {
  color: var(--intesa-navy);
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
