:root {
  --bg-body: #0a0a0a;
  --bg-elevated: #141414;
  --bg-elevated-alt: #1b1b1b;

  --accent: #e63946;
  --accent-hover: #b3001b;
  --accent-soft: rgba(230, 57, 70, 0.15);

  --text-main: #ffffff;
  --text-muted: #e6e6e6;

  --border-subtle: rgba(255, 255, 255, 0.08);

  --radius-lg: 14px;
  --radius-full: 999px;

  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.65);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1a1a1a 0, #0a0a0a 55%);
  color: var(--text-main);
  line-height: 1.6;
}

/* Layout base */

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.92), transparent);
  border-bottom: 1px solid var(--border-subtle);
}

/* Desktop: logo – like-wrapper – nav */
.header-content {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 14px 0;
  gap: 12px;
}

/* Like wrapper: testo + cuore + counter */
.like-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  text-align: center;
}

/* Cuore */
.heart {
  transition: transform 0.25s ease, color 0.25s ease, text-shadow 0.25s ease;
  color: #ffffff;
  cursor: pointer;
  user-select: none;
}

.heart.liked {
  color: var(--accent);
  transform: scale(1.25);
  text-shadow: 
    0 0 12px rgba(230, 57, 70, 0.8),
    0 0 24px rgba(230, 57, 70, 0.6),
    0 0 36px rgba(230, 57, 70, 0.4);
  animation: heartPulse 0.8s ease-in-out infinite;
}

@keyframes heartPulse {
  0%   { transform: scale(1.15); }
  50%  { transform: scale(1.32); }
  100% { transform: scale(1.15); }
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 30% 30%, #ffb3b8, #e63946 45%, #7a0d14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 18px;
}

.logo-text {
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--text-muted);
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

.nav a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

/* Hero */

.hero {
  padding: 72px 0 48px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-text h1 {
  font-size: 34px;
  margin: 0 0 10px;
  color: var(--accent);
}

.hero-text p {
  margin: 0 0 20px;
  max-width: 540px;
  color: var(--text-muted);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #e63946, #b3001b);
  color: white;
  font-weight: 500;
  font-size: 14px;
  border: none;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

/* Sezioni */

.section {
  padding: 40px 0;
}

.section-alt {
  background: radial-gradient(circle at top left, rgba(230, 57, 70, 0.08), transparent 60%),
              linear-gradient(to bottom, rgba(20, 20, 20, 0.98), rgba(10, 10, 10, 1));
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section h2 {
  margin-top: 0;
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--accent);
}

.section p {
  margin-top: 0;
  color: var(--text-muted);
}

/* Cards / Grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  padding: 16px 16px 14px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
  color: var(--accent);
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Contatti */

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.social-links a {
  text-decoration: none;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  background: rgba(20, 20, 20, 0.95);
  color: var(--text-muted);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.social-links a:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--text-main);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 16px 0 18px;
  font-size: 13px;
  color: var(--text-muted);
  background: rgba(10, 10, 10, 0.96);
}

/* Email link styling */

a[href^="mailto:"] {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

a[href^="mailto:"]:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* MOBILE FIX */
@media (max-width: 640px) {

  .header-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 14px;
  }

  .logo {
    justify-content: center;
  }

  .like-wrapper {
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
    white-space: normal;
  }

  .heart {
    font-size: 22px;
  }

  .nav {
    justify-content: center;
    gap: 14px;
  }

  .nav a {
    font-size: 13px;
  }
}
