/* Sinapptica — static site. Colours from the old sirius-lite theme: blue #006eb6, green #62b790. */
:root {
  --blue: #006eb6;
  --blue-dark: #00558c;
  --green: #62b790;
  --ink: #1d2733;
  --text: #3b4654;
  --muted: #6b7684;
  --line: #e3e8ee;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 32, 48, .06), 0 6px 20px rgba(16, 32, 48, .06);
  --wrap: 1160px;
  --head: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head) + 12px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 17px/1.65 Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
}
img, video { max-width: 100%; height: auto; }
video { display: block; width: 100%; border-radius: var(--radius); background: #000; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: "Roboto Slab", Georgia, serif; color: var(--ink); line-height: 1.25; margin: 1.4em 0 .5em; }
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.7rem); font-weight: 700; margin: .2em 0 .2em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
blockquote { margin: 1.5em 0; padding: .8em 1.2em; border-left: 4px solid var(--green); background: var(--bg-alt); border-radius: 0 var(--radius) var(--radius) 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--ink); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { max-width: 820px; }
ul.plain { list-style: none; padding: 0; margin: 0 0 1em; }
ul.plain li { margin: .2em 0; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* buttons */
.btn {
  display: inline-block; padding: .7em 1.4em; border-radius: 999px; background: var(--blue); color: #fff;
  font-weight: 500; text-decoration: none; border: 2px solid var(--blue); transition: background .15s, color .15s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .8); }
.btn-light:hover { background: #fff; color: var(--blue); border-color: #fff; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-wrap { margin-top: auto; padding-top: .5em; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 24px; min-height: var(--head); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 44px; height: 44px; object-fit: contain; }
.brand b { display: block; font: 700 1.25rem/1.1 "Roboto Slab", serif; color: var(--blue); }
.brand small { display: block; font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.menu, .menu ul { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; gap: 4px; }
.menu > li { position: relative; }
.menu a { display: block; padding: 10px 12px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .97rem; border-radius: 8px; }
.menu a:hover, .menu li.active > a { color: var(--blue); }
.menu a[aria-current="page"] { color: var(--blue); }
.menu > li.has-sub > a::after { content: ""; display: inline-block; margin-left: 6px; width: 6px; height: 6px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); opacity: .6; }
.menu ul {
  position: absolute; left: 0; top: 100%; min-width: 280px; padding: 8px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.menu li:hover > ul, .menu li:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.menu ul a { font-weight: 400; padding: 8px 12px; }
.menu ul a:hover { background: var(--bg-alt); }
.menu ul ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; min-width: 0; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; font-size: .82rem; font-weight: 500; }
.lang a { padding: 5px 10px; text-decoration: none; color: var(--muted); }
.lang a[aria-current] { background: var(--blue); color: #fff; }
.nav-toggle { display: none; margin-left: auto; align-items: center; gap: 8px; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: inherit; color: var(--ink); cursor: pointer; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; padding: 8px 16px 16px; max-height: calc(100vh - var(--head)); overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .menu { flex-direction: column; }
  .menu ul { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
  .menu > li.has-sub > a::after { display: none; }
  .lang { align-self: flex-start; margin-top: 8px; }
  .brand small { display: none; }
}

/* page head */
.page-head { background: linear-gradient(135deg, #00558c 0%, var(--blue) 60%, #1f8bbf 100%); color: #fff; padding: 36px 0 32px; }
.page-head h1 { color: #fff; }
.page-head .date { margin: .4em 0 0; color: #d6e6f3; }
.crumbs { font-size: .88rem; opacity: .85; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin: 0 .3em; opacity: .7; }

/* content */
.content { padding: 36px 0 64px; }
.content > .block:first-child > h2:first-child, .content > .block:first-child > h3:first-child { margin-top: 0; }
.block { margin: 0 0 28px; }
.block::after { content: ""; display: table; clear: both; }
.cols { display: grid; grid-template-columns: var(--cols); gap: 28px; align-items: start; }
.col > :first-child { margin-top: 0; }
.cards { align-items: stretch; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3, .card h4 { margin-top: 0; }
figure { margin: 0 0 1em; }
figure img, .content img { border-radius: 6px; }
.feature img { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin: 0 auto 1em; }
.notice { background: #fff6dd; border: 1px solid #f1d27a; color: #6a5300; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 28px; }
.missing, mark.missing { display: inline-block; font-size: .8rem; color: #8a5a00; background: #fff6dd; border: 1px dashed #e0b84a; padding: 6px 10px; border-radius: 6px; margin: 4px 0; }
.content table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.content td, .content th { border: 1px solid var(--line); padding: 8px 10px; }
.date { color: var(--muted); font-size: .9rem; margin: 0 0 .3em; }

@media (max-width: 900px) {
  .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .alignleft, .alignright { float: none; margin: 0 auto 1em; display: block; }
}

/* home */
.hero {
  position: relative; color: #fff; padding: clamp(80px, 12vw, 150px) 0 clamp(70px, 10vw, 130px);
  background: linear-gradient(100deg, rgba(0, 45, 80, .88) 0%, rgba(0, 85, 140, .65) 55%, rgba(0, 110, 182, .25) 100%), var(--hero) center/cover no-repeat;
}
.hero h1 { color: #fff; max-width: 760px; font-size: clamp(2rem, 1.3rem + 3vw, 3.3rem); }
.hero p { max-width: 640px; font-size: 1.2rem; opacity: .95; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.6em; }
.home-sec { padding: 64px 0; }
.home-sec.alt { background: var(--bg-alt); }
.home-sec h2 { margin: 0; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sec-head a { font-weight: 500; text-decoration: none; }
.about { text-align: center; }
.about .narrow { margin-inline: auto; }
.about h2 { margin-bottom: .6em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
article.card { padding: 0; overflow: hidden; }
.card-img { display: block; aspect-ratio: 16 / 10; background: var(--bg-alt); }
.card-img img { width: 100%; height: 100%; object-fit: contain; border-radius: 0; padding: 10px; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.12rem; margin: 0 0 .4em; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--blue); }
.card-body p { font-size: .95rem; }
.card-body .more { margin: auto 0 0; }
.card-body .more a { font-weight: 500; text-decoration: none; }
.cta { background: linear-gradient(135deg, #00558c 0%, var(--blue) 70%, #1f8bbf 100%); color: #e8f1f8; padding: 56px 0; }
.cta .contact-card { max-width: 640px; margin-inline: auto; text-align: center; }
.cta h3 { color: #fff; font-size: 1.6rem; margin-top: 0; }
.cta a { color: #fff; }
.cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .7); }
.cta .btn-ghost:hover { background: #fff; color: var(--blue); }
.contact-card ul.plain { margin-bottom: 1.2em; }
.content .contact-card { background: var(--bg-alt); border-radius: var(--radius); padding: 22px 24px; }
.content .contact-card h3 { margin-top: 0; }

/* footer */
.site-footer { background: #10202f; color: #b9c4cf; padding: 48px 0 0; font-size: .95rem; }
.site-footer a { color: #dfe8f1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h4 { color: #fff; margin: 0 0 .8em; font-family: Roboto, sans-serif; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; font-size: .85rem; }
.site-footer .muted { color: #8796a5; }
.fgrid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; padding-bottom: 32px; }
.brand-inv b { color: #fff; }
.brand-inv small { color: #8796a5; display: block !important; }
.brand-inv img { background: #fff; border-radius: 8px; padding: 3px; }
.copy { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0 24px; font-size: .85rem; color: #8796a5; }
@media (max-width: 760px) { .fgrid { grid-template-columns: 1fr; } }

@media print {
  .site-header, .site-footer, .cta { display: none; }
  .page-head { background: none; color: #000; }
  .page-head h1, .crumbs a { color: #000; }
}

/* ---- gestionepasti.it: appended after site.css. Colours from the old moesia theme (#3276b1 / #154a77). */
:root { --blue: #3276b1; --blue-dark: #154a77; --green: #5cb85c; }
.page-head { background: linear-gradient(135deg, #154a77 0%, var(--blue) 65%, #4a90cf 100%); }
.gp-hero { text-align: center; background: linear-gradient(180deg, rgba(10, 35, 60, .72) 0%, rgba(21, 74, 119, .55) 100%), var(--hero) center/cover no-repeat; }
.gp-hero h1, .gp-hero p { margin-inline: auto; }
.gp-hero .hero-btns { justify-content: center; }
.gp-logo { display: block; max-width: 260px; margin: 0 auto 18px; }
.sec-title { text-align: center; margin: 0 0 1.2em; }
.sec-title::after { content: ""; display: block; width: 56px; height: 3px; background: var(--blue); margin: 14px auto 0; border-radius: 2px; }
.gp-cols { display: grid; gap: 28px; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); margin-bottom: 8px; }
.gp-cols.n2 { --n: 2; } .gp-cols.n3 { --n: 3; } .gp-cols.n4 { --n: 4; }
.gp-col, .gp-service { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.gp-col h3 { margin-top: 0; color: var(--blue); }
.gp-col ul { padding-left: 1.1em; margin: 0; }
.gp-col li { margin: .35em 0; }
.gp-col.media { padding: 0; overflow: hidden; }
.gp-col.media > * { margin: 0; }
.gp-col.media img { aspect-ratio: 3 / 2; object-fit: cover; height: 100%; }
.gp-col img { display: block; width: 100%; border-radius: 0; }
.gp-service { text-align: center; }
.gp-service h3 { margin: .6em 0 .4em; color: var(--blue); }
.gp-icon { display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--blue); }
.gp-icon svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gp-full .gp-action { background: linear-gradient(90deg, rgba(21, 74, 119, .92), rgba(50, 118, 177, .78)), var(--bg, none) center/cover no-repeat; color: #fff; text-align: center; padding: 72px 0; }
.gp-action p:first-child { font-size: 1.35rem; max-width: 760px; margin: 0 auto 1.2em; font-family: "Roboto Slab", serif; }
.gp-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.gp-shot { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gp-shot img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 0; }
.gp-shot figcaption { padding: 10px 14px; font-size: .9rem; color: var(--muted); }
#contatti .contact-card { max-width: 640px; margin: 0 auto; text-align: center; background: var(--bg-alt); border-radius: var(--radius); padding: 32px 24px; }
#contatti .contact-card h3 { font-size: 1.6rem; margin-top: 0; }
@media (max-width: 900px) { .gp-cols { --n: 2 !important; } }
@media (max-width: 600px) { .gp-cols { --n: 1 !important; } }
