/* Farcos Pharma design system: palette e tipografia dal brand book v1.0 (dicembre 2026) */
@font-face { font-family: Montserrat; src: url(/assets/fonts/Montserrat-Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Montserrat; src: url(/assets/fonts/Montserrat-Medium.ttf) format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Montserrat; src: url(/assets/fonts/Montserrat-SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Montserrat; src: url(/assets/fonts/Montserrat-Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --blue: #068FF7; --blue-600: #0A7BE6; --blue-50: #EAF5FF;
  --green: #4FD483; --green-600: #2FB868; --green-50: #EAFBF1;
  --graphite: #4A4B50; --navy: #0E2A47; --navy-2: #143A5E;
  --g1: #0A84F2; --g2: #3DB0D6; --g3: #8FE3AB;
  --grad: linear-gradient(120deg, var(--g1) 0%, var(--g2) 50%, var(--g3) 100%);
  --ink: #0F1F2E; --muted: #5F6B78; --line: #E3E9F0; --bg: #FFFFFF; --bg-soft: #F5F8FB;
  --danger: #D64545; --warn: #E8A317;
  --r-sm: 8px; --r: 14px; --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(14, 42, 71, .06), 0 1px 3px rgba(14, 42, 71, .06);
  --shadow: 0 10px 30px -12px rgba(14, 42, 71, .18);
  --shadow-lg: 0 24px 60px -20px rgba(14, 42, 71, .28);
  --container: 1200px;
  --header-h: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Montserrat, system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--blue) 55%, transparent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-soft { background: var(--bg-soft); }
.section-navy { background: var(--navy); color: #DCE7F2; }
.section-navy h2, .section-navy h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--grad); border-radius: 2px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.text-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* buttons */
.btn { --b: var(--blue); display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; border: 2px solid var(--b); background: var(--b); color: #fff; font: 600 .95rem/1 Montserrat, sans-serif; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; text-decoration: none !important; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--b) 70%, transparent); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-green { --b: var(--green-600); }
.btn-navy { --b: var(--navy); }
.btn-ghost { background: transparent; color: var(--b); }
.btn-white { --b: #fff; color: var(--navy); }
.btn-outline-white { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-danger { --b: var(--danger); }
.link-arrow { font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.link-arrow::after { content: '→'; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .bar { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand img { height: 40px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); font-weight: 500; font-size: .95rem; padding: 8px 14px; border-radius: 999px; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--blue-50); color: var(--blue-600); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy); cursor: pointer; text-decoration: none !important; }
.icon-btn:hover { border-color: var(--blue); color: var(--blue); }
.icon-btn svg { width: 20px; height: 20px; }
.badge-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--green-600); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.menu-toggle { display: none; }
.badge-count[hidden] { display: none; }
@media (max-width: 960px) {
  .menu-toggle { display: inline-grid; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; background: #fff; padding: 16px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .2s, opacity .2s, visibility .2s; margin: 0; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 12px 14px; }
  .header-actions .btn { display: none; }
  .brand img { height: 32px; }
}

/* hero */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,42,71,.96) 0%, rgba(14,42,71,.82) 42%, rgba(10,132,242,.25) 100%); }
.hero .container { position: relative; padding: clamp(80px, 12vw, 150px) 0 clamp(80px, 10vw, 130px); }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { color: #CFE0F1; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-stats { display: flex; gap: clamp(24px, 5vw, 64px); margin-top: 56px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 2.2rem; font-weight: 700; line-height: 1; background: linear-gradient(90deg, #fff, var(--g3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { font-size: .85rem; color: #A9C2DA; }
.page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.page-hero .container { position: relative; padding: 72px 0 64px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero .lead { color: #CFE0F1; }
.page-hero.has-img .hero-media img { opacity: .45; }
.breadcrumb { font-size: .85rem; color: #A9C2DA; margin-bottom: 14px; }
.breadcrumb a { color: #CFE0F1; }
.deco-leaf { position: absolute; right: -60px; bottom: -80px; width: 380px; opacity: .08; pointer-events: none; }

/* grid & cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-50); color: var(--blue-600); margin-bottom: 18px; }
.card-icon svg { width: 26px; height: 26px; }
.card-icon.green { background: var(--green-50); color: var(--green-600); }

.cat-card { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--navy); color: #fff; text-decoration: none !important; isolation: isolate; }
.cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; z-index: -2; }
.cat-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,42,71,0) 30%, rgba(14,42,71,.92) 100%); z-index: -1; }
.cat-card:hover img { transform: scale(1.06); }
.cat-card .cat-body { position: absolute; left: 22px; right: 22px; bottom: 20px; }
.cat-card h3 { color: #fff; margin: 0 0 4px; font-size: 1.15rem; }
.cat-card p { margin: 0; font-size: .85rem; color: #CFE0F1; line-height: 1.45; }
.cat-card .count { position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.92); color: var(--navy); font-size: .75rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; }

.sector { display: grid; grid-template-columns: 140px 1fr; gap: 22px; align-items: start; }
.sector img { width: 140px; height: 140px; object-fit: cover; border-radius: var(--r); }
@media (max-width: 520px) { .sector { grid-template-columns: 1fr; } .sector img { width: 100%; height: 180px; } }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list li::before { content: ''; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232FB868' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/13px no-repeat; }

.img-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.img-frame::before { content: ''; position: absolute; inset: auto -2px -2px auto; width: 40%; height: 6px; background: var(--grad); z-index: 1; }

.cta-band { background: var(--grad); border-radius: var(--r-lg); padding: clamp(32px, 5vw, 56px); color: #fff; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(255,255,255,.9); }

.quote { border-left: 4px solid; border-image: var(--grad) 1; padding: 6px 0 6px 22px; font-size: 1.1rem; color: var(--navy); font-style: italic; }

.pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--blue-50); color: var(--blue-600); }
.pill.green { background: var(--green-50); color: var(--green-600); }
.pill.gray { background: #EEF1F4; color: var(--graphite); }
.pill.warn { background: #FFF5E0; color: #9A6A00; }
.pill.red { background: #FDECEC; color: var(--danger); }

/* forms */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
label.field { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--navy); }
.input, input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=search], select, textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); font: 400 .95rem Montserrat, sans-serif; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-50); }
textarea { min-height: 130px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); font-weight: 400; }
.check input { margin-top: 3px; accent-color: var(--blue); width: 16px; height: 16px; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 16px; border-radius: var(--r-sm); font-size: .92rem; }
.alert-ok { background: var(--green-50); color: #1D7A45; }
.alert-err { background: #FDECEC; color: #A23030; }
.alert-info { background: var(--blue-50); color: #0B5BA6; }

/* footer */
.site-footer { background: var(--navy); color: #A9C2DA; padding: 72px 0 28px; font-size: .92rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #CFE0F1; }
.site-footer .logo { height: 48px; width: auto; margin-bottom: 18px; }
.site-footer .bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; }
.newsletter-form { display: flex; gap: 8px; margin-top: 12px; }
.newsletter-form input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.newsletter-form input::placeholder { color: #8FA9C2; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* toast */
.toast-wrap { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; }
.toast { background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-lg); font-size: .9rem; font-weight: 500; animation: toast .25s ease; }
.toast.err { background: var(--danger); }
@keyframes toast { from { opacity: 0; transform: translateY(10px); } }

/* preview switcher (barra anteprima tra le 3 versioni) */
.preview-bar { background: #071A2C; color: #8FA9C2; font-size: .78rem; }
.preview-bar .container { display: flex; gap: 14px; align-items: center; height: 34px; overflow-x: auto; white-space: nowrap; }
.preview-bar a { color: #CFE0F1; padding: 3px 10px; border-radius: 999px; }
.preview-bar a.on { background: rgba(255,255,255,.12); color: #fff; }
