/* Pagina di manutenzione - certificato-ape.it */
:root {
  --brand-primary: #1f9d55;
  --brand-secondary: #234d20;
  --brand-accent: #7ac74f;
  --bg-start: #f4faf2;
  --bg-end: #e8f6ec;
  --text-main: #1f2d1f;
  --text-muted: #4a5b4a;
  --card-bg: #ffffff;
  --shadow: 0 20px 60px rgba(31, 157, 85, 0.12);
}

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

html, body {
  height: 100%;
  font-family: 'Segoe UI', Roboto, -apple-system, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at top left, var(--bg-end), var(--bg-start) 60%);
  background-attachment: fixed;
}

.card {
  width: 100%;
  max-width: 780px;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 56px 48px;
  box-shadow: var(--shadow);
  text-align: center;
  border: 1px solid rgba(31, 157, 85, 0.08);
}

.logo {
  width: 300px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 32px;
  display: block;
}

h1 {
  font-size: 28px;
  color: var(--brand-secondary);
  margin-bottom: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.subtitle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(31, 157, 85, 0.08);
  color: var(--brand-primary);
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 28px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-primary);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.message {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.inline-mail {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.inline-mail:hover { text-decoration: underline; }

.phones {
  list-style: none;
  margin: 0 auto 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 620px;
}

.phones li {
  background: linear-gradient(135deg, rgba(122, 199, 79, 0.14), rgba(31, 157, 85, 0.10));
  border: 1.5px solid rgba(31, 157, 85, 0.22);
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.phones li:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(31, 157, 85, 0.18);
  border-color: var(--brand-primary);
}

.phone-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.phone-number {
  display: inline-block;
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-primary);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.phone-number::before {
  content: "\260E\FE0E";
  font-size: 16px;
  margin-right: 6px;
  opacity: 0.7;
}

.phone-number:hover {
  text-decoration: underline;
}

.contact {
  font-size: 22px;
  font-weight: 800;
  color: var(--brand-secondary);
  padding: 22px 18px;
  background: linear-gradient(135deg, rgba(122, 199, 79, 0.12), rgba(31, 157, 85, 0.08));
  border-radius: 14px;
  border: 1px dashed rgba(31, 157, 85, 0.3);
  word-break: break-word;
}

.contact a {
  color: var(--brand-primary);
  text-decoration: none;
  font-weight: 800;
}

.contact a:hover {
  text-decoration: underline;
}

.contact .label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

@media (max-width: 720px) {
  .phones { grid-template-columns: 1fr; max-width: 420px; }
  .phones li { padding: 16px 14px; }
}

@media (max-width: 540px) {
  .card { padding: 36px 22px; border-radius: 16px; }
  h1 { font-size: 22px; }
  .message { font-size: 15px; }
  .contact { font-size: 18px; padding: 18px 14px; }
  .logo { width: 220px; margin-bottom: 24px; }
  .phone-number { font-size: 20px; }
}
