/* Omega Group sagl — stili condivisi (prefisso og- per evitare conflitti con WordPress) */

:root {
  --og-primary: #0b5c6b;
  --og-primary-dark: #084552;
  --og-accent: #1fa88b;
  --og-accent-light: #e8f7f3;
  --og-text: #1e2a32;
  --og-text-muted: #5a6b75;
  --og-bg: #ffffff;
  --og-bg-alt: #f3f8fa;
  --og-border: #d8e6ec;
  --og-radius: 12px;
  --og-shadow: 0 8px 30px rgba(11, 92, 107, 0.08);
  --og-max: 1120px;
  --og-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.og-body {
  margin: 0;
  font-family: var(--og-font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--og-text);
  background: var(--og-bg);
}

.og-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--og-primary);
  color: #fff;
  text-decoration: none;
}

.og-skip:focus {
  left: 1rem;
  top: 1rem;
}

.og-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--og-border);
  backdrop-filter: blur(8px);
}

.og-header__inner {
  max-width: var(--og-max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.og-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.og-logo img {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(220px, 52vw);
  object-fit: contain;
}

.og-hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.og-hero__brand {
  width: min(280px, 70vw);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: var(--og-radius);
}

.og-app-card__img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 16px;
  margin-bottom: 0.5rem;
  background: var(--og-bg-alt);
  padding: 0.35rem;
}

.og-about-brand {
  display: block;
  width: min(200px, 60vw);
  margin: 0 0 1.5rem;
  border-radius: var(--og-radius);
}

.og-footer__logo {
  height: 40px;
  width: auto;
  margin-bottom: 0.75rem;
  opacity: 0.95;
}

.og-store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 0.25rem;
}

.og-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  border: 2px solid var(--og-border);
  color: var(--og-text);
  background: #fff;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.og-store-badge:hover,
.og-store-badge:focus {
  border-color: var(--og-primary);
  color: var(--og-primary);
}

.og-store-badge--play::before {
  content: "▶";
  color: var(--og-accent);
  font-size: 0.75rem;
}

.og-store-badge--apple::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='black' d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.9 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.4-61.7-90-61.7-91.9zm-56.1-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='black' d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.9 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.4-61.7-90-61.7-91.9zm-56.1-164.2c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.og-nav-toggle {
  display: none;
  border: 1px solid var(--og-border);
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--og-primary);
}

.og-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
}

.og-nav a {
  color: var(--og-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.og-nav a:hover,
.og-nav a:focus,
.og-nav a.og-nav--active {
  color: var(--og-primary);
  border-bottom-color: var(--og-accent);
}

.og-main {
  min-height: 50vh;
}

.og-container {
  max-width: var(--og-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.og-section {
  padding: 4rem 0;
}

.og-section--alt {
  background: var(--og-bg-alt);
}

.og-section__head {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.og-section__head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--og-primary-dark);
  line-height: 1.25;
}

.og-section__head p {
  margin: 0;
  color: var(--og-text-muted);
}

.og-hero {
  padding: 4.5rem 0 4rem;
  background: linear-gradient(160deg, var(--og-bg-alt) 0%, #fff 55%);
}

.og-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: center;
}

.og-eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.75rem;
  background: var(--og-accent-light);
  color: var(--og-primary);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.og-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  color: var(--og-primary-dark);
}

.og-hero__lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: var(--og-text-muted);
  max-width: 36rem;
}

.og-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.og-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.og-btn--primary {
  background: var(--og-primary);
  color: #fff;
}

.og-btn--primary:hover,
.og-btn--primary:focus {
  background: var(--og-primary-dark);
  color: #fff;
}

.og-btn--secondary {
  background: #fff;
  color: var(--og-primary);
  border-color: var(--og-border);
}

.og-btn--secondary:hover,
.og-btn--secondary:focus {
  border-color: var(--og-primary);
}

.og-hero__card {
  background: #fff;
  border: 1px solid var(--og-border);
  border-radius: var(--og-radius);
  padding: 1.75rem;
  box-shadow: var(--og-shadow);
}

.og-hero__card h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--og-primary);
}

.og-hero__card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.og-hero__card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--og-border);
  color: var(--og-text-muted);
  font-size: 0.95rem;
}

.og-hero__card li:last-child {
  border-bottom: none;
}

.og-hero__card strong {
  color: var(--og-text);
}

.og-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.og-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.og-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.og-card {
  background: #fff;
  border: 1px solid var(--og-border);
  border-radius: var(--og-radius);
  padding: 1.5rem;
  height: 100%;
}

.og-section--alt .og-card {
  box-shadow: var(--og-shadow);
}

.og-card__icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  background: var(--og-accent-light);
  color: var(--og-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.og-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--og-primary-dark);
}

.og-card p {
  margin: 0 0 1rem;
  color: var(--og-text-muted);
  font-size: 0.95rem;
}

.og-card a.og-link {
  font-weight: 600;
  color: var(--og-primary);
  text-decoration: none;
}

.og-card a.og-link:hover,
.og-card a.og-link:focus {
  text-decoration: underline;
}

.og-app-card {
  display: flex;
  flex-direction: column;
}

.og-app-card .og-tag {
  align-self: flex-start;
  margin-bottom: 0.5rem;
  padding: 0.25rem 0.6rem;
  background: var(--og-bg-alt);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--og-primary);
}

.og-list-check {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.og-list-check li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--og-text-muted);
  font-size: 0.95rem;
}

.og-list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--og-accent);
  font-weight: 700;
}

.og-cta-band {
  background: linear-gradient(135deg, var(--og-primary) 0%, var(--og-primary-dark) 100%);
  color: #fff;
  padding: 3rem 0;
  text-align: center;
}

.og-cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}

.og-cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  opacity: 0.92;
}

.og-cta-band .og-btn--secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.og-cta-band .og-btn--secondary:hover,
.og-cta-band .og-btn--secondary:focus {
  background: #fff;
  color: var(--og-primary);
  border-color: #fff;
}

.og-cta-band .og-btn--primary {
  background: #fff;
  color: var(--og-primary);
}

.og-cta-band .og-btn--primary:hover,
.og-cta-band .og-btn--primary:focus {
  background: var(--og-accent-light);
}

.og-page-hero {
  padding: 3rem 0 2rem;
  background: var(--og-bg-alt);
  border-bottom: 1px solid var(--og-border);
}

.og-page-hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  color: var(--og-primary-dark);
}

.og-page-hero p {
  margin: 0;
  max-width: 40rem;
  color: var(--og-text-muted);
  font-size: 1.1rem;
}

.og-prose {
  max-width: 42rem;
}

.og-prose p {
  color: var(--og-text-muted);
}

.og-prose h2 {
  color: var(--og-primary-dark);
  margin-top: 2rem;
}

.og-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.og-contact-box {
  background: var(--og-bg-alt);
  border-radius: var(--og-radius);
  padding: 1.75rem;
  border: 1px solid var(--og-border);
}

.og-contact-box h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: var(--og-primary);
}

.og-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.og-contact-list li {
  margin-bottom: 0.85rem;
}

.og-contact-list a {
  color: var(--og-primary);
  font-weight: 600;
  text-decoration: none;
}

.og-contact-list a:hover,
.og-contact-list a:focus {
  text-decoration: underline;
}

.og-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.og-form input,
.og-form select,
.og-form textarea {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--og-border);
  border-radius: 8px;
  font: inherit;
}

.og-form textarea {
  min-height: 120px;
  resize: vertical;
}

.og-form-note {
  font-size: 0.85rem;
  color: var(--og-text-muted);
  margin-top: 0.5rem;
}

.og-map {
  margin-top: 2rem;
  border-radius: var(--og-radius);
  overflow: hidden;
  border: 1px solid var(--og-border);
  min-height: 280px;
  background: var(--og-bg-alt);
}

.og-map iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

.og-footer {
  background: var(--og-primary-dark);
  color: rgba(255, 255, 255, 0.88);
  padding: 2.5rem 0 1.5rem;
  font-size: 0.9rem;
}

.og-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.og-footer h3 {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  color: #fff;
}

.og-footer a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.og-footer a:hover,
.og-footer a:focus {
  text-decoration: underline;
}

.og-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.og-footer li {
  margin-bottom: 0.4rem;
}

.og-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .og-hero__grid,
  .og-contact-grid,
  .og-footer__grid {
    grid-template-columns: 1fr;
  }

  .og-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .og-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .og-nav-toggle {
    display: block;
  }

  .og-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--og-border);
    padding: 1rem 1.25rem;
  }

  .og-nav.og-nav--open {
    display: block;
  }

  .og-nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .og-header {
    position: relative;
  }

  .og-header__inner {
    flex-wrap: wrap;
    position: relative;
  }

  .og-grid-4,
  .og-grid-2 {
    grid-template-columns: 1fr;
  }

  .og-section {
    padding: 2.75rem 0;
  }
}
