/* =========================================================
   MYARCHERY.IT - Foglio di stile unico e pulito
   ========================================================= */

:root {
  --bg-dark: #0f172a;
  --bg-light: #ffffff;
  --bg-alt: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #475569;
  --text-light: #f8fafc;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --yellow-brand: #facc15;
  --border-color: #e2e8f0;
  --radius: 14px;
  --shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-light);
  line-height: 1.65;
  font-size: 16px;
}

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

a {
  text-decoration: none;
  color: inherit;
}

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

/* =========================================================
   HEADER CON LOGO A SINISTRA E MENU BEN EVIDENTE A DESTRA
   ========================================================= */
.site-header {
  background-color: #ffffff;
  color: var(--bg-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 82px;
  gap: 20px;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.site-logo {
  height: 48px;
  width: auto;
  display: block;
}
.brand-title {
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--bg-dark);
}

.brand-title span {
  color: var(--accent);
}

.brand-role {
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--text-muted);
  border-left: 2px solid var(--accent);
  padding-left: 10px;
}

/* Menu allineato a destra su una sola riga e ben leggibile */
.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  margin-left: auto;
}

.main-nav > a,
.nav-dropdown-btn {
  font-size: 0.96rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--bg-dark);
  padding: 8px 4px;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
  cursor: pointer;
}

.main-nav > a:hover,
.main-nav > a.active,
.nav-dropdown:hover .nav-dropdown-btn {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Menu a tendina Web App */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #ffffff;
  min-width: 265px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
  padding: 8px 0;
  z-index: 300;
}

.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 11px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--bg-dark);
}

.dropdown-menu a:hover {
  background-color: #fff7ed;
  color: var(--accent-hover);
}

.dropdown-menu a small {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 2px;
}

/* =========================================================
   BARRA IN EVIDENZA
   ========================================================= */
.top-notice {
  background-color: #fff7ed;
  border-bottom: 1px solid #fed7aa;
  padding: 12px 0;
}

.notice-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.notice-text {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--accent-hover);
}

.btn-small {
  background-color: var(--accent);
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 6px;
  transition: background 0.2s;
}

.btn-small:hover {
  background-color: var(--accent-hover);
}

/* =========================================================
   HERO SECTION SU FONDO SCURO
   ========================================================= */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--text-light);
  padding: 72px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-block;
  background-color: rgba(250, 204, 21, 0.15);
  color: var(--yellow-brand);
  border: 1px solid rgba(250, 204, 21, 0.4);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 20px;
  color: #ffffff;
}

.hero-lead {
  font-size: 1.12rem;
  color: #cbd5e1;
  margin-bottom: 30px;
}

.btn-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
}

.hero-image-box {
  background-color: #090e1a;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.hero-image-box img {
  border-radius: 10px;
  width: 100%;
  max-height: 430px;
  object-fit: cover;
}

/* =========================================================
   SEZIONI E GRIGLIE
   ========================================================= */
.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-dark {
  background-color: var(--bg-dark);
  color: #ffffff;
}

.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split-title {
  font-size: 2.15rem;
  line-height: 1.22;
  font-weight: 800;
  color: var(--bg-dark);
  margin-bottom: 18px;
}

.section-dark .split-title {
  color: #ffffff;
}

.split-text {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.section-dark .split-text {
  color: #cbd5e1;
}

.quote-stack {
  border-top: 2px solid var(--bg-dark);
  padding-top: 24px;
}

.quote-stack p {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--bg-dark);
  margin-bottom: 18px;
}

.graphic-emblem {
  max-width: 300px;
  margin: 0 auto;
  text-align: center;
}

.feature-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.feature-photo img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.photo-card,
.info-card {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.info-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.photo-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
}

.photo-card-body {
  padding: 22px;
}

.photo-card-body h3,
.info-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--bg-dark);
}

.photo-card-body p,
.info-card p {
  font-size: 0.96rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  background: #fff7ed;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
  align-self: flex-start;
}

.link-arrow {
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.link-arrow:hover {
  color: var(--accent-hover);
}

.pwa-step-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.pwa-step-box h3 {
  color: var(--bg-dark);
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.pwa-step-box ol {
  padding-left: 20px;
  color: var(--text-main);
}

.pwa-step-box li {
  margin-bottom: 8px;
}

/* =========================================================
   BOX LABORATORIO & SVILUPPO (PROTOTIPO V2)
   ========================================================= */
.rd-box {
  background-color: #fffbeb;
  border: 2px dashed #f59e0b;
  border-radius: var(--radius);
  padding: 40px;
}

.rd-badge {
  display: inline-block;
  background-color: #f59e0b;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 14px;
}

.rd-box h2 {
  font-size: 1.8rem;
  margin-bottom: 14px;
  color: #78350f;
}

.rd-box p {
  color: #451a03;
  margin-bottom: 14px;
}

.photo-placeholder {
  background-color: #fef3c7;
  border: 2px dashed #d97706;
  border-radius: 10px;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: #92400e;
  font-weight: 600;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background-color: #090e1a;
  color: #94a3b8;
  padding: 48px 0 28px 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-title {
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 20px;
  text-align: center;
  font-size: 0.82rem;
}

/* =========================================================
   RESPONSIVE (iPad e iPhone)
   ========================================================= */
@media (max-width: 960px) {
  .nav-wrapper {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .main-nav {
    margin-left: 0;
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero-grid,
  .split-row,
  .grid-2,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero h1 {
    font-size: 2.05rem;
  }
}