:root {
  --bg-gradient: linear-gradient(135deg, #6a11cb, #2575fc);
  --bg-dark: #000;
  --header-bg: #111;
  --card-bg: #1a1a1a;
  --text-light: #fff;
  --text-muted: #ccc;
  --accent: #00fff7;
  --radius: 12px;
  --max-width: 1170px;
  --shadow: 0 0 25px rgba(0, 0, 0, 0.4);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* === HEADER === */
.site-header {
  width: 100%;
  background: var(--header-bg);
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.header-inner {
  width: 100%;
  max-width: var(--max-width);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-left {
  display: flex;
  align-items: center;
  font-weight: bold;
  font-size: 1.1rem;
  color: var(--text-light);
}

.header-left img {
  height: 30px;
  margin-right: 0.5rem;
}

.search-bar {
  flex: 1;
  display: flex;
  margin-left: 2rem;
  max-width: 500px;
  background: #1d1d1d;
  border-radius: 2rem;
  padding: 0.4rem 1rem;
}

.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 0.95rem;
}

/* === LINGUA SELECTOR === */
.language-selector {
  text-align: center;
  padding: 0.6rem;
  background: #1a1a1a;
  font-size: 0.9rem;
}

.language-selector a {
  color: var(--accent);
  text-decoration: none;
  margin: 0 12px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: 0.2s ease-in-out;
}

.language-selector a:hover {
  border-bottom: 2px solid var(--accent);
}

/* === CONTENUTO === */
.container {
  background: var(--bg-dark);
  max-width: var(--max-width);
  margin: 2rem auto;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  flex: 1;
}

.container h1 {
  margin-top: 0;
}

h2 {
  margin-top: 2rem;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.tool-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-decoration: none;
  color: var(--text-light);
  transition: all 0.2s ease-in-out;
}

.tool-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
}

.tool-card h3 {
  margin: 0 0 0.5rem 0;
}

.tool-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* === SEO TEXT === */
.seo-text {
  margin-top: 3rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.seo-text h2 {
  color: var(--text-light);
  font-size: 1.2rem;
}

/* === FOOTER === */
footer {
  background: var(--header-bg);
  color: var(--text-muted);
  text-align: center;
  padding: 1rem;
  font-size: 0.85rem;
  margin-top: auto;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .search-bar {
    margin: 0;
    width: 100%;
  }

  .language-selector {
    font-size: 0.85rem;
    padding: 0.5rem;
  }

  .container {
    margin: 1rem;
    padding: 1.5rem;
  }
}
