/* ============================================================
   ROYAL GLOBAL NET — home.css
   Homepage-specific sections
   ============================================================ */

/* ---- HERO ------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #0c0c0c;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/royal-global-net-servizio-di-portierato-sicurezza-guardia-giurata-negozi-hotel-shop.jpg');
  background-size: cover;
  background-position: center 20%;
  opacity: 0.65;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(12,12,12,0.15) 0%,
    rgba(12,12,12,0.35) 50%,
    rgba(12,12,12,0.75) 80%,
    rgba(12,12,12,0.95) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 90px 1.5rem 3rem;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1.25rem;
}

.hero-heading {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2.34rem, 5.4vw, 4.5rem);
  color: #fff;
  line-height: 1.1;
  max-width: 700px;
  margin-bottom: 1.5rem;
}

.hero-heading em {
  font-style: normal;
  color: var(--brand);
}

.hero-text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---- STATS BAR ------------------------------------------- */
.stats-bar {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.stat-item {
  padding: 2rem 1rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stat-item:last-child {
  border-right: none;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--brand);
  display: block;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

/* ---- ABOUT SECTION --------------------------------------- */
.about-section {
  padding: 7rem 0;
  background: var(--bg-secondary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text .section-label {
  display: block;
}

.about-text h2 {
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.about-text p {
  margin-bottom: 1.25rem;
  color: var(--text);
}

.about-text .link-arrow {
  margin-top: 0.5rem;
}

.about-image {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 1/1;
}
.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}
.about-image::before {
  content: '';
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  width: 60%;
  height: 60%;
  border: 2px solid var(--brand);
  border-radius: 2px;
  z-index: -1;
}

/* ---- WHY CHOOSE US --------------------------------------- */
.why-section {
  background: var(--brand-alt);
  padding: 6rem 0;
}

.why-header {
  text-align: center;
  max-width: none;
  margin: 0 auto 4rem;
}
.why-crown {
  display: block;
  width: 56px;
  height: auto;
  margin: 0 auto 1rem;
}
.why-header .section-label {
  color: var(--brand);
}
.why-header h2 {
  margin-bottom: 1rem;
  color: #fff;
  white-space: nowrap;
}
.why-header p {
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  margin: 0 auto;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.why-card {
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(255,255,255,0.08);
  transition: background var(--transition), border-color var(--transition);
}
.why-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(201,168,76,0.35);
}

.why-num {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(201,168,76,0.25);
  line-height: 1;
  margin-bottom: 1rem;
}

.why-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: #fff;
}

.why-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.58);
  line-height: 1.65;
}

/* ---- SERVICES SECTION ------------------------------------ */
.services-section {
  padding: 7rem 0;
  background: var(--bg-secondary);
}

.services-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.services-header h2 {
  flex: 1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.service-card {
  background: #fff;
  padding: 2.25rem 2rem;
  transition: background var(--transition);
  position: relative;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 2rem;
  right: 2rem;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  background: var(--bg-primary);
}
.service-card:hover::after {
  transform: scaleX(1);
}

.service-card-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.25rem;
  color: var(--brand);
}
.service-card-icon svg {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-body);
  margin-bottom: 0.75rem;
  color: var(--headings);
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.service-card .link-arrow {
  font-size: 0.78rem;
}

/* ---- EXPERTISE / HOTEL SECTION -------------------------- */
.expertise-section {
  padding: 7rem 0;
  background: #0c0c0c;
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.expertise-content h2 {
  color: #fff;
  margin-bottom: 1.25rem;
}
.expertise-content p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 1rem;
  font-size: 1rem;
}
.expertise-content .btn {
  margin-top: 1rem;
}

.expertise-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.expertise-badge {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 20px;
  padding: 0.35rem 0.9rem;
}

.expertise-image {
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 1/1;
}
.expertise-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---- NCC SECTION ---------------------------------------- */
.ncc-section {
  padding: 7rem 0;
  background: var(--bg-secondary);
}

.ncc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.ncc-image {
  border-radius: 2px;
  overflow: hidden;
  aspect-ratio: 1/1;
}
.ncc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ncc-text .section-label {
  display: block;
}
.ncc-text h2 {
  margin-bottom: 1rem;
}
.ncc-text p {
  margin-bottom: 1.25rem;
}
.ncc-text .link-arrow {
  margin-top: 0.5rem;
}

/* ---- Responsive ----------------------------------------- */
@media (max-width: 1024px) {
  .why-header h2 {
    white-space: normal;
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .about-grid,
  .ncc-grid,
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .expertise-image { order: -1; }
  .about-image::before {
    display: none;
  }
  .stats-inner {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-top: 1px solid rgba(255,255,255,0.08); }
  .stat-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.08); border-right: none; }

  .services-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero-heading { font-size: 1.98rem; }
  .why-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; }
}
