/* =========================================================
   Prenotamed — stili globali
   Palette sobria, tipografia Inter, layout responsive.
   ========================================================= */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/InterVariable.woff2') format('woff2-variations'),
       url('/fonts/InterVariable.woff2') format('woff2');
}

:root {
  /* Colori di testo e sfondo */
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;

  /* Colore istituzionale Prenotamed */
  --brand: #1e3a8a;
  --brand-hover: #1e40af;

  /* Colori dei prodotti (per card) */
  --vm: #0066cc;
  --ip: #059669;

  /* Tipografia */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
               Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Misure */
  --max-width: 960px;
  --radius: 8px;
}

/* -------- Reset minimale -------- */

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--brand-hover);
  text-decoration: underline;
}

/* -------- Tipografia -------- */

h1, h2, h3 {
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 0.5em 0;
  font-weight: 600;
  letter-spacing: -0.015em;
}

h1 { font-size: 2.25rem; font-weight: 500; letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; margin-top: 2em; }
h3 { font-size: 1.125rem; margin-top: 1.5em; }

p {
  margin: 0 0 1em 0;
  color: var(--text-muted);
}

strong { color: var(--text); font-weight: 600; }

/* -------- Layout -------- */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* -------- Header -------- */

.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
  color: var(--brand-hover);
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--brand);
  text-decoration: none;
}

/* -------- Hero -------- */

.hero {
  padding: 4.5rem 0 3.5rem 0;
}

.hero h1 {
  max-width: 620px;
}

.hero .lead {
  font-size: 1.2rem;
  max-width: 640px;
  color: var(--text-muted);
}

/* -------- Sezione generica -------- */

.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section h2 {
  margin-top: 0;
}

/* -------- Schede prodotto -------- */

.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

@media (min-width: 720px) {
  .products {
    grid-template-columns: 1fr 1fr;
  }
}

.product-card {
  display: block;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.product-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  border-color: var(--text-subtle);
}

.product-card .product-name {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  letter-spacing: -0.01em;
}

.product-card.vm .product-name { color: var(--vm); }
.product-card.ip .product-name { color: var(--ip); }

.product-card .product-tag {
  display: inline-block;
  font-size: 0.8rem;
  color: var(--text-subtle);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.product-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.product-card .product-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.product-card.vm .product-link { color: var(--vm); }
.product-card.ip .product-link { color: var(--ip); }

/* -------- Pagine di contenuto (privacy, termini, cookie, contatti) -------- */

.content-page {
  padding: 3.5rem 0;
}

.content-page h1 {
  margin-bottom: 0.25rem;
}

.content-page .page-subtitle {
  color: var(--text-subtle);
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.content-page h2 {
  font-size: 1.25rem;
  margin-top: 2.5em;
}

.content-page ul {
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.content-page ul li {
  margin-bottom: 0.4em;
}

/* -------- Blocchi informativi -------- */

.info-block {
  padding: 1.5rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 1.5rem 0;
}

.info-block p:last-child {
  margin-bottom: 0;
}

.email-link {
  font-family: var(--font-body);
  font-weight: 500;
}

/* -------- Footer -------- */

.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 0 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  font-size: 0.9rem;
  color: var(--text-subtle);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-links a {
  color: var(--text-muted);
  font-weight: 500;
}

.footer-legal {
  color: var(--text-subtle);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* -------- Responsive tweaks -------- */

@media (max-width: 560px) {
  h1 { font-size: 1.8rem; }
  .hero { padding: 3rem 0 2.5rem 0; }
  .nav-links { gap: 1rem; font-size: 0.9rem; }
  .brand { font-size: 1.1rem; }
}
