/* AVS Studio — sito pubblico provvisorio. Stile minimal/premium. */

:root {
  --ink: #14151a;
  --ink-soft: #3a3d47;
  --muted: #6b6f7a;
  --line: #e7e8ec;
  --bg: #ffffff;
  --bg-alt: #f7f7f8;
  --accent: #b0843a;
  --accent-strong: #946d2c;
  --accent-tint: #f4ecdd;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(20, 21, 26, .04), 0 4px 18px rgba(20, 21, 26, .05);
  --shadow-md: 0 8px 40px rgba(20, 21, 26, .12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--ink); }

/* ---------- Navbar ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -.01em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
}
.brand .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.brand-logo {
  height: 1.15em;
  width: auto;
  flex-shrink: 0;
  margin-right: 2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: .95rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.btn-primary {
  color: #d8b15e;
  background: var(--ink);
}
.nav-links a.btn-primary:hover {
  color: #d8b15e;
  background: #000;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f0f0f0; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-outline-light:hover { border-color: #fff; }
.btn-disabled {
  background: var(--bg-alt);
  color: var(--muted);
  border-color: var(--line);
  cursor: default;
}
.btn-disabled:hover { transform: none; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(900px 460px at 78% -8%, #2a2c38 0%, transparent 60%), var(--ink);
  color: #fff;
  overflow: hidden;
}
.hero .wrap {
  padding-top: 96px;
  padding-bottom: 104px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #d8b15e;
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: #d8b15e;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 3.55rem);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 700;
  max-width: 16ch;
}
.hero p {
  margin: 22px 0 0;
  font-size: 1.12rem;
  color: #b6b8c2;
  max-width: 52ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.hero-note {
  margin-top: 22px;
  font-size: .87rem;
  color: #82858f;
}

/* ---------- Section shell ---------- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 56ch; }
.section-head .eyebrow { color: var(--accent); }
.section-head .eyebrow::before { background: var(--accent); }
.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  letter-spacing: -.02em;
  line-height: 1.15;
  font-weight: 700;
}
.section-head p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}
.feature-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-card.span-1-5 { grid-column: span 1; }
.feature-ico {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: var(--accent-tint);
  color: var(--accent-strong);
  margin-bottom: 20px;
}
.feature-ico svg { width: 23px; height: 23px; }
.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.16rem;
  letter-spacing: -.01em;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: .96rem;
}

/* ---------- PRCO public document ---------- */
.prco-public-head {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.prco-public-head .wrap {
  padding-top: 54px;
  padding-bottom: 40px;
}
.prco-public-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.prco-public-title-row h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08;
}
.prco-public-title-row p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.prco-public-section {
  padding-top: 42px;
}
.prco-public-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.prco-public-meta div,
.prco-public-module,
.prco-public-totals {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.prco-public-meta div {
  padding: 16px 18px;
}
.prco-public-meta span,
.prco-public-totals span {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.prco-public-meta strong,
.prco-public-totals strong {
  display: block;
  margin-top: 5px;
  font-size: 1rem;
}
.prco-public-module {
  margin-top: 18px;
  padding: 24px;
}
.prco-public-module h2 {
  margin: 0 0 18px;
  font-size: 1.32rem;
}
.prco-public-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
}
.prco-public-field h3 {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.prco-public-field p {
  margin: 0;
  white-space: pre-wrap;
}
.prco-public-field table {
  width: 100%;
  border-collapse: collapse;
}
.prco-public-field td {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.prco-public-field td:last-child {
  text-align: right;
  white-space: nowrap;
}
.prco-public-totals {
  margin-top: 22px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.prco-public-totals .total strong {
  font-size: 1.25rem;
}
@media (max-width: 760px) {
  .prco-public-title-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .prco-public-meta,
  .prco-public-fields,
  .prco-public-totals {
    grid-template-columns: 1fr;
  }
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: 20px;
  padding: 56px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: -.02em;
}
.cta-band p { margin: 10px 0 0; color: #b6b8c2; }

/* ---------- Pricing ---------- */
.page-head {
  text-align: center;
  padding: 76px 0 8px;
}
.page-head .eyebrow {
  color: var(--accent);
  justify-content: center;
}
.page-head .eyebrow::before { background: var(--accent); }
.page-head h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -.025em;
}
.page-head p {
  margin: 14px auto 0;
  color: var(--muted);
  max-width: 54ch;
  font-size: 1.05rem;
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 52px;
}
.price-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}
.price-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-strong);
  background: var(--accent-tint);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 16px;
}
.price-card.featured .price-tag {
  color: var(--ink);
  background: #d8b15e;
}
.price-card h3 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -.01em;
}
.price-card .blurb {
  margin: 8px 0 22px;
  font-size: .93rem;
  color: var(--muted);
  min-height: 60px;
}
.price-card.featured .blurb { color: #b6b8c2; }
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-amount .num {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -.03em;
}
.price-amount .per { color: var(--muted); font-size: .95rem; }
.price-card.featured .price-amount .per { color: #b6b8c2; }
.price-second {
  margin: 6px 0 0;
  font-size: .9rem;
  color: var(--muted);
}
.price-card.featured .price-second { color: #b6b8c2; }
.price-list {
  list-style: none;
  margin: 24px 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}
.price-card.featured .price-list { border-color: rgba(255, 255, 255, .14); }
.price-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .93rem;
}
.price-list li svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent);
}
.price-card.featured .price-list li svg { color: #d8b15e; }
.price-cta { margin-top: auto; }

/* ---------- Comparison table ---------- */
.compare-wrap { margin-top: 64px; overflow-x: auto; }
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
}
.compare th, .compare td {
  padding: 15px 18px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.compare thead th {
  font-size: 1.02rem;
  letter-spacing: -.01em;
}
.compare thead th small {
  display: block;
  font-weight: 500;
  color: var(--muted);
  font-size: .8rem;
}
.compare tbody th {
  text-align: left;
  font-weight: 500;
  color: var(--ink-soft);
}
.compare td.yes { color: var(--accent-strong); font-weight: 600; }
.compare td.no { color: #c4c6cc; }
.compare tbody tr:hover { background: var(--bg-alt); }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 88px; }
.legal .wrap { max-width: 760px; }
.legal h1 {
  font-size: 2rem;
  letter-spacing: -.02em;
  margin: 0 0 4px;
}
.legal .updated {
  color: var(--muted);
  font-size: .9rem;
  margin: 0 0 36px;
}
.legal h2 {
  font-size: 1.2rem;
  letter-spacing: -.01em;
  margin: 38px 0 10px;
}
.legal p, .legal li { color: var(--ink-soft); }
.legal ul { padding-left: 20px; }
.legal li { margin: 5px 0; }
.todo {
  background: var(--accent-tint);
  color: var(--accent-strong);
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: .92em;
}
.legal .note {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: .9rem;
  color: var(--muted);
}

/* ---------- Download ---------- */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 48px;
}
.download-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 30px;
  background: var(--bg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.download-ico {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--accent-tint);
  color: var(--accent-strong);
}
.download-ico svg { width: 30px; height: 30px; }
.download-card h3 { margin: 0 0 4px; font-size: 1.22rem; letter-spacing: -.01em; }
.download-card .os-sub { margin: 0; color: var(--muted); font-size: .93rem; }
.download-card .os-ver { margin: 4px 0 24px; color: var(--muted); font-size: .84rem; }
.download-card .price-cta,
.download-card .btn { width: 100%; }
.download-note {
  margin-top: 44px;
  text-align: center;
  color: var(--muted);
  font-size: .95rem;
}
.download-note a { color: var(--accent-strong); font-weight: 600; text-decoration: none; }
.download-note a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #b6b8c2;
  padding: 56px 0 40px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-brand { max-width: 30ch; }
.footer-brand .brand { color: #fff; }
.footer-brand p {
  margin: 14px 0 0;
  font-size: .9rem;
  color: #82858f;
}
.footer-cols {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer-col h4 {
  margin: 0 0 14px;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #82858f;
}
.footer-col a {
  display: block;
  color: #b6b8c2;
  text-decoration: none;
  font-size: .92rem;
  margin: 8px 0;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  margin-top: 28px;
  font-size: .85rem;
  color: #82858f;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .feature-grid, .price-grid, .download-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 18px; }
  .nav-links .nav-hide { display: none; }
  .cta-band { padding: 40px 32px; }
}
@media (max-width: 560px) {
  .hero .wrap { padding-top: 64px; padding-bottom: 72px; }
  .section { padding: 64px 0; }
  .hero-actions .btn, .hero-actions { width: 100%; }
}
@media (max-width: 680px) {
  .nav-text-link { display: none; }
}

/* ---------- Detailed Features Sections ---------- */
.detailed-features {
  padding: 92px 0;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.detailed-features .section-head {
  margin-bottom: 64px;
}
.features-list {
  display: flex;
  flex-direction: column;
}
.feature-section {
  display: flex;
  align-items: center;
  gap: 64px;
  margin-bottom: 96px;
}
.feature-section:last-child {
  margin-bottom: 0;
}
.feature-section:nth-child(even) {
  flex-direction: row-reverse;
}
.feature-info {
  flex: 1.1;
}
.feature-num {
  font-size: .85rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.feature-info h3 {
  font-size: 2rem;
  letter-spacing: -.025em;
  margin: 0 0 18px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
}
.feature-info p {
  color: var(--ink-soft);
  font-size: 1.06rem;
  line-height: 1.62;
  margin: 0;
}
.feature-media {
  flex: 0.9;
  background: radial-gradient(circle at center, #ffffff 0%, var(--accent-tint) 120%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-media:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(20, 21, 26, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: block;
  transition: transform 0.25s ease;
}
.feature-media:hover img {
  transform: scale(1.025);
}
.feature-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e2029 0%, #101116 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #82858f;
  padding: 40px;
  text-align: center;
  position: relative;
}
.feature-placeholder::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(176, 132, 58, 0.08), transparent 70%);
  pointer-events: none;
}
.feature-placeholder svg {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.85;
}
.feature-placeholder span {
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
}
.feature-placeholder p {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: #62646c;
}

@media (max-width: 900px) {
  .feature-section, .feature-section:nth-child(even) {
    flex-direction: column;
    gap: 32px;
    margin-bottom: 72px;
  }
  .feature-info {
    width: 100%;
  }
  .feature-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    padding: 12px;
  }
}

/* ---------- Lightbox Modal ---------- */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 21, 26, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-content {
  max-width: 90%;
  max-height: 85%;
  position: relative;
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-modal.active .lightbox-content {
  transform: scale(1);
}
.lightbox-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: block;
}
.lightbox-caption {
  color: #fff;
  margin-top: 18px;
  font-size: 1.05rem;
  font-weight: 500;
  text-align: center;
  opacity: 0.9;
  letter-spacing: -0.01em;
}
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  font-size: 26px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  z-index: 1010;
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: scale(1.05);
}
.lightbox-close:active {
  transform: scale(0.95);
}
@media (max-width: 600px) {
  .lightbox-close {
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}
