/*
Theme Name: Normasoft
Theme URI: https://normasoft.it
Description: Tema ufficiale normasoft.it
Version: 1.0
Author: normasoft.it
Text Domain: normasoft
*/

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid #e5e7eb; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; overflow-x: clip; }
body { margin: 0; line-height: inherit; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
img { display: block; max-width: 100%; }
input::placeholder, textarea::placeholder { opacity: 1; color: #9ca3af; }
button, input, select, textarea { font-family: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; color: inherit; margin: 0; padding: 0; }
button, select { text-transform: none; }
button { appearance: button; background-image: none; cursor: pointer; }
table { text-indent: 0; border-color: inherit; border-collapse: collapse; }
summary { display: list-item; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; }

/* ── Scrollbar hide ── */
* { -ms-overflow-style: none !important; scrollbar-width: none !important; }
*::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }

/* ── Design Tokens ── */
:root {
  --brand-bg: #FCFAF8;
  --brand-blue: #1961BA;
  --brand-blue-hover: #1d4ed8;
  --brand-brown: #8D421A;
  --brand-brown-dark: #8c4a26;
  --brand-lightBrown: #EEDDD1;
  --brand-lightBrown-hover: #e4cebe;
  --brand-darkText: #18181B;
  --brand-grayText: #71717A;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --white: #ffffff;
  --black: #000000;
  --green-50: #f0fdf4;
  --green-100: #dcfde8;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --blue-50: #eff6ff;
  --font-sans: 'Inter', sans-serif;
}

/* ── Base ── */
body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--brand-darkText);
  background-color: var(--brand-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Header ── */
.header {
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-logo {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--black);
}
.header-nav {
  display: none;
  align-items: center;
  gap: 3rem;
  font-size: 0.875rem;
  font-weight: 500;
}
.header-nav a.active { color: var(--brand-blue); }
.header-nav a:not(.active) { color: var(--gray-600); }
.header-nav a:not(.active):hover { color: var(--black); }
.header-cta {
  display: none;
  background: var(--brand-blue);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 0.25rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.header-cta:hover { background: var(--brand-blue-hover); }

/* ── Hamburger Button ── */
.header-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--black);
  font-size: 1.5rem;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* ── Full-Page Overlay Menu ── */
.drawer {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.drawer.open {
  opacity: 1;
  visibility: visible;
}
.drawer-close {
  position: absolute;
  top: 1.25rem;
  right: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--black);
  font-size: 1.5rem;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.drawer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.drawer-links a {
  display: block;
  padding: 0.75rem 2rem;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 150ms;
}
.drawer-links a:hover {
  color: var(--black);
}
.drawer-links a.active {
  color: var(--brand-blue);
  font-weight: 600;
}
.drawer-cta {
  display: inline-block;
  margin-top: 1.5rem;
  background: var(--brand-blue);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 2.5rem;
  border-radius: 0.5rem;
  text-align: center;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  transition: background-color 150ms;
}
.drawer-cta:hover {
  background: var(--brand-blue-hover);
}

/* ── Discount Overlay ── */
.discount-overlay {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.discount-overlay.open {
  opacity: 1;
  visibility: visible;
}
.discount-overlay-close {
  position: fixed;
  top: 1.25rem;
  right: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--black);
  font-size: 1.5rem;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.discount-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-lightBrown);
  color: var(--brand-brown);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
}
.discount-title {
  margin-top: 1.5rem;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--black);
}
.discount-subtitle {
  margin-top: 0.75rem;
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-600);
}
.discount-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.discount-input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem;
  outline: none;
  transition: border-color 200ms, box-shadow 200ms;
}
.discount-input:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 2px rgba(25, 97, 186, 0.15);
}
.discount-submit {
  width: 100%;
  padding: 0.875rem;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
  background: var(--brand-blue);
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  transition: background-color 150ms;
}
.discount-submit:hover {
  background: var(--brand-blue-hover);
}
.discount-submit:active {
  transform: scale(0.98);
}
.discount-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.discount-note {
  margin-top: 1rem;
  font-size: 11px;
  color: var(--gray-400);
  line-height: 1.5;
}
.discount-success {
  visibility: hidden;
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.discount-success.show {
  visibility: visible;
}
.discount-success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background: #f0fdf4;
  border: 2px solid #dcfde8;
  color: #22c55e;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
}
.discount-success h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.025em;
}
.discount-success p {
  margin-top: 0.5rem;
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ── Footer ── */
.footer {
  width: 100%;
  background: var(--white);
  border-top: 1px solid var(--gray-100);
  padding: 2.5rem 0;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.footer-brand-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--black);
}
.footer-brand-copy {
  font-size: 11px;
  color: var(--gray-400);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 1.5rem;
  row-gap: 0.5rem;
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 500;
}
.footer-links a:hover { color: var(--gray-600); }

/* ── Hidden utility ── */
.hidden { display: none; }


/* ── Responsive: md (768px+) ── */
@media (min-width: 768px) {
  .header-nav { display: flex; }
  .header-cta { display: inline-block; }
  .header-hamburger { display: none; }
  .drawer { display: none; }
  .footer-inner { flex-direction: row; }
  .footer-brand { align-items: flex-start; }
  .discount-overlay-close { position: absolute; top: -3rem; right: -0.5rem; }
}
