/* ============================================================
   Opuski — Coming soon (prototipo statico)
   ============================================================ */

:root {
  --primary: #28A88F;
  --primary-hover: #1F8A73;
  --white: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #6B7280;
  --bg-alt: #F9FAFB;
  --border: #E5E7EB;
  --error: #DC2626;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Layout ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  background: var(--white);
}

.section--alt {
  background: var(--bg-alt);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  padding: 1rem 0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  line-height: 1;
}

.logo img {
  width: auto;
  display: block;
}

.logo-mark {
  height: 46px;
}

.logo-word {
  height: 30px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 0;
  text-align: center;
}

.badge {
  display: inline-block;
  background: rgba(40, 168, 143, 0.1);
  color: var(--primary);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  max-width: 900px;
  margin: 0 auto 1.25rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- Sezioni di contenuto ---------- */
.section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-text {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 2rem;
}

.section-text strong {
  color: var(--text);
  font-weight: 700;
}

.section-highlight {
  display: inline-block;
  background: rgba(40, 168, 143, 0.1);
  color: var(--primary);
  font-weight: 600;
  font-size: 1.0625rem;
  padding: 0.875rem 1.25rem;
  border-radius: 8px;
}

/* ---------- Newsletter (form Infomaniak) ----------
   Override degli stili embedded per allinearli alla palette Opuski. */
.newsletter-wrap {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.inf-form {
  background: transparent !important;
  color: var(--text);
}

.inf-form h4 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.inf-form > div > span {
  display: block;
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-bottom: 1.75rem;
}

.inf-input {
  margin: 0 auto;
}

.inf-input input[type="email"] {
  width: 100%;
  border: 1px solid #ccc !important;
  border-radius: 8px;
  padding: 10px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--white);
}

.inf-input input[type="email"]:focus {
  outline: none;
  border-color: var(--primary) !important;
}

.inf-rgpd {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
  margin-top: 0.875rem;
  text-align: left;
}

altcha-widget {
  display: block;
  margin: 1rem auto 0;
}

.inf-submit input[type="submit"] {
  background: #28A88F !important;
  color: #fff !important;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px !important;
  padding: 10px 24px !important;
  cursor: pointer;
  transition: background-color 0.2s;
}

.inf-submit input[type="submit"]:hover {
  background: var(--primary-hover) !important;
}

.inf-success h4 {
  color: var(--primary);
}

.inf-btn {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Trust ---------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.trust-col {
  text-align: center;
}

.trust-emoji {
  display: block;
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 1rem;
}

.trust-col p {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 260px;
  margin: 0 auto;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
}

.footer-logo {
  height: 28px;
  width: auto;
  display: block;
  margin: 0 auto 1.25rem;
}

.footer-main {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.footer-sub {
  font-size: 0.875rem;
  opacity: 0.7;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--white);
  opacity: 0.7;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-links span {
  opacity: 0.5;
  margin: 0 0.5rem;
}

/* ============================================================
   Responsive — mobile-first overrides per schermi piccoli
   ============================================================ */
@media (max-width: 640px) {
  .hero {
    padding: 3rem 0;
  }

  h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.125rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section h2 {
    font-size: 1.625rem;
  }

  .logo-mark {
    height: 38px;
  }

  .logo-word {
    height: 25px;
  }

  .inf-submit input[type="submit"] {
    width: 100%;
  }

  .trust-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}
