/* --- Reset & Base Styles --- */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

:root {
  --qa-blue: #0070f3;
  --qa-blue-dark: #0056b3;
  --qa-cyan-glow: rgba(0, 224, 255, 0.7);
  --qa-bg: #f8faff;
  --qa-dark-text: #0d1117;
  --qa-light-text: #586069;
  --qa-grid-line-color: rgba(0, 112, 243, 0.15);
}

/* --- Main Structure & Layout --- */
.qa-container {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 95vh;
  min-height: 800px;
  background-color: var(--qa-bg);
  font-family: 'Poppins', sans-serif;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.qa-grid-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 0, 0, 0.04) 1px, transparent 0);
  background-size: 30px 30px;
  opacity: 0.7;
}

.qa-main-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  animation: qa-fade-in 1s ease-out;
}

@keyframes qa-fade-in {
  from { opacity: 0; transform: translateY(20px); }
}

/* --- Text & Content Area --- */
.qa-text-area {
  flex: 0 0 45%;
  text-align: left;
  padding-right: 2rem;
  z-index: 1;
}

.qa-title {
  font-size: 4.2rem;
  font-weight: 800;
  color: var(--qa-dark-text);
  margin: 0 0 1.5rem;
  line-height: 1.15;
}

.qa-subtitle {
  font-size: 1.2rem;
  color: var(--qa-light-text);
  line-height: 1.7;
  margin: 0 0 2.5rem;
  max-width: 500px;
}

/* --- Features List --- */
.qa-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
}

.qa-feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--qa-dark-text);
}

.qa-feature-icon {
  margin-right: 0.8rem;
  color: var(--qa-blue);
  display: inline-flex;
}

/* --- CTA Button --- */
.qa-cta-button {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff !important;
  background-color: var(--qa-blue);
  padding: 18px 35px;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 10px 30px -10px var(--qa-blue);
}

.qa-cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px -10px var(--qa-blue);
}

/* --- Graphic Area & Hi-Tech Radar --- */
.qa-graphic-area {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 500px;
}

.qa-radar-graphic {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.qa-radar-grid {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-image:
    linear-gradient(var(--qa-grid-line-color) 1px, transparent 1px),
    linear-gradient(to right, var(--qa-grid-line-color) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(circle, white 70%, transparent 70.5%);
  mask-image: radial-gradient(circle, white 70%, transparent 70.5%);
}

.qa-radar-grid::before, .qa-radar-grid::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid var(--qa-grid-line-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.qa-radar-grid::before { width: 50%; height: 50%; }
.qa-radar-grid::after { width: 25%; height: 25%; }

.qa-radar-sweep {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, var(--qa-cyan-glow) 30%, transparent 30%);
  animation: qa-sweep-rotate 4s linear infinite;
  -webkit-mask-image: radial-gradient(circle, white 70%, transparent 70.5%);
  mask-image: radial-gradient(circle, white 70%, transparent 70.5%);
}

@keyframes qa-sweep-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.qa-radar-core {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--qa-blue);
  box-shadow: 0 0 30px var(--qa-blue), inset 0 2px 5px rgba(255,255,255,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  animation: qa-core-pulse 2s infinite alternate;
}

@keyframes qa-core-pulse {
    from { box-shadow: 0 0 25px var(--qa-blue), 0 0 40px var(--qa-cyan-glow), inset 0 2px 5px rgba(255,255,255,0.3); transform: scale(1); }
    to { box-shadow: 0 0 35px var(--qa-blue), 0 0 55px var(--qa-cyan-glow), inset 0 2px 5px rgba(255,255,255,0.3); transform: scale(1.05); }
}

.qa-radar-core-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.1em;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
  .qa-container {
    padding-top: 120px; /* Spazio per la navbar del tema */
    height: auto;
    min-height: initial;
  }
  .qa-main-content { flex-direction: column; }
  .qa-text-area {
    flex: 1;
    text-align: center;
    padding-right: 0;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .qa-subtitle { max-width: none; }
  .qa-graphic-area { height: 400px; margin-top: 2rem; }
  .qa-radar-graphic { transform: scale(0.9); }
}

@media (max-width: 768px) {
  .qa-title { font-size: 2.8rem; }
  .qa-subtitle { font-size: 1.1rem; }
  .qa-cta-button { padding: 16px 30px; font-size: 1rem;}
  .qa-graphic-area { height: 350px; }
  .qa-radar-graphic { transform: scale(0.75); }
}