:root {
  --tec-ink: #0b1c22;
  --tec-teal: #0a4f5f;
  --tec-teal-deep: #063540;
  --tec-mist: #d7e6ea;
  --tec-sand: #e8efe8;
  --tec-foam: #f3f8f7;
  --tec-ok: #1b6b45;
  --tec-ok-bg: #e4f3eb;
  --tec-err: #9b2c2c;
  --tec-err-bg: #f8e8e8;
  --tec-font-display: "Fraunces", Georgia, serif;
  --tec-font-body: "Manrope", "Segoe UI", sans-serif;
  --tec-radius: 18px;
  --tec-max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--tec-ink);
  font-family: var(--tec-font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  background:
    radial-gradient(1200px 600px at 12% -10%, rgba(10, 79, 95, 0.22), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(27, 107, 69, 0.12), transparent 50%),
    linear-gradient(165deg, #eef5f4 0%, #f7faf9 42%, #e7f0ef 100%);
}

a {
  color: var(--tec-teal);
}

.tec-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Logo globale (tutte le pagine CTA) */
.tec-site-header {
  padding: 0.85rem 1.25rem 0.35rem;
  animation: tec-rise 0.55s ease-out both;
}

.tec-site-header-inner {
  max-width: 52rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.tec-site-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.tec-site-logo {
  display: block;
  height: clamp(44px, 8vw, 64px);
  width: auto;
  max-width: min(240px, 70vw);
  object-fit: contain;
}

.tec-site-header-sub {
  font-size: 0.88rem;
  color: rgba(11, 28, 34, 0.58);
  font-weight: 600;
}

.tec-site-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.tec-site-logo-partner-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.tec-top {
  padding: 1.1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tec-mark {
  font-family: var(--tec-font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--tec-teal-deep);
  text-decoration: none;
}

.tec-mark span {
  font-weight: 400;
  opacity: 0.72;
  letter-spacing: 0.02em;
}

.tec-top-note {
  font-size: 0.82rem;
  color: rgba(11, 28, 34, 0.62);
}

.tec-hero {
  flex: 1;
  display: grid;
  align-items: end;
  padding: clamp(2rem, 6vw, 4.5rem) 1.25rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.tec-hero::before {
  content: "";
  position: absolute;
  inset: 8% 4% auto auto;
  width: min(42vw, 420px);
  height: min(42vw, 420px);
  border-radius: 40% 60% 55% 45%;
  background: linear-gradient(145deg, rgba(10, 79, 95, 0.35), rgba(10, 79, 95, 0.05));
  filter: blur(2px);
  animation: tec-drift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.tec-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 38rem;
  animation: tec-rise 0.9s ease-out both;
}

.tec-brand {
  margin: 0 0 0.85rem;
  font-family: var(--tec-font-display);
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--tec-teal-deep);
}

.tec-lead {
  margin: 0 0 1.5rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: rgba(11, 28, 34, 0.78);
  max-width: 32rem;
}

.tec-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: var(--tec-teal);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 12px 28px rgba(10, 79, 95, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

.tec-cta:hover {
  background: var(--tec-teal-deep);
  transform: translateY(-1px);
}

.tec-section {
  padding: 0 1.25rem 3.5rem;
  animation: tec-rise 1s 0.15s ease-out both;
}

.tec-section-inner {
  max-width: var(--tec-max);
  margin: 0 auto;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.tec-panel {
  padding: 1.25rem 1.3rem 1.35rem;
  border-radius: var(--tec-radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(10, 79, 95, 0.1);
  backdrop-filter: blur(8px);
}

.tec-panel h2 {
  margin: 0 0 0.45rem;
  font-family: var(--tec-font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--tec-teal-deep);
}

.tec-panel p {
  margin: 0;
  font-size: 0.95rem;
  color: rgba(11, 28, 34, 0.72);
}

.tec-panel .soon {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(10, 79, 95, 0.7);
}

.tec-footer {
  padding: 1.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(11, 28, 34, 0.55);
}

/* Pagina esito / errore conferma */
.tec-result-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1.5rem 1.5rem;
}

.tec-result-page > .tec-site-header {
  width: 100%;
  align-self: stretch;
}

.tec-result-page > .tec-result-card {
  margin: auto;
}

.tec-result-card {
  width: min(100%, 34rem);
  padding: 1.6rem 1.5rem 1.4rem;
  border-radius: var(--tec-radius);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(10, 79, 95, 0.12);
  box-shadow: 0 18px 40px rgba(11, 28, 34, 0.08);
  animation: tec-rise 0.7s ease-out both;
}

.tec-result-card.ok {
  border-left: 5px solid var(--tec-ok);
}

.tec-result-card.err {
  border-left: 5px solid var(--tec-err);
}

.tec-result-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tec-teal);
  font-weight: 700;
}

.tec-result-card h1 {
  margin: 0 0 0.9rem;
  font-family: var(--tec-font-display);
  font-size: 1.55rem;
  line-height: 1.15;
  color: var(--tec-teal-deep);
}

.tec-result-msg {
  margin: 0;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  line-height: 1.5;
}

.tec-result-card.ok .tec-result-msg {
  background: var(--tec-ok-bg);
  color: #143528;
}

.tec-result-card.err .tec-result-msg {
  background: var(--tec-err-bg);
  color: #4a1d1d;
}

.tec-result-hint {
  margin: 1rem 0 0;
  font-size: 0.88rem;
  color: rgba(11, 28, 34, 0.58);
}

.tec-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 10px;
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: var(--tec-teal);
  text-decoration: none;
}

.tec-btn:hover,
.tec-btn:focus-visible {
  background: var(--tec-teal-deep);
}

@keyframes tec-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tec-drift {
  from {
    transform: translate(0, 0) rotate(0deg);
  }
  to {
    transform: translate(-18px, 22px) rotate(8deg);
  }
}

@media (max-width: 640px) {
  .tec-top-note {
    display: none;
  }
}
