:root {
    --bg-color: #050505;
    --bg-alt: #0d0d0d;
    --primary-text: #ffffff;
    --muted-text: #aaaaaa;
    --accent-color: #00ff9d;
    --border-color: #333333;
    --card-bg: #1e1e1e;
    --transition-fast: 0.3s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    background: radial-gradient(circle at top left, #111 0, #050505 40%, #000 100%);
    color: var(--primary-text);
    line-height: 1.6;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* HEADER */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 10;
}

.logo a {
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent-color);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

nav a {
    color: var(--primary-text);
    font-size: 0.95rem;
    font-weight: 400;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

nav a:hover {
    opacity: 1;
}

.lang-switch {
    border: 1px solid var(--accent-color);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.8rem;
}

/* HAMBURGER */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--primary-text);
}

/* HERO */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 20px 80px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 15px;
}

.tagline {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.accent {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--muted-text);
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
    justify-content: center;
}

/* BUTTON */

.btn {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 999px;
    background: var(--accent-color);
    color: #000;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast),
        background var(--transition-fast);
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 255, 157, 0.35);
    text-decoration: none;
    background: #37ffb4;
}

/* SECTIONS */

.section {
    padding: 100px 20px;
    background: #000;
}

.section-alt {
    padding: 100px 20px;
    background: #000;
}

#about {
    background: radial-gradient(circle at bottom right, #111 0, #050505 40%, #000 100%);
}

#projects {
    background: radial-gradient(circle at top right, #111 0, #050505 40%, #000 100%);
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section-inner-narrow {
    max-width: 780px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.4rem;
    margin-bottom: 25px;
    color: var(--accent-color);
}

.section-intro {
    color: var(--muted-text);
    margin-bottom: 40px;
}

.section p {
    color: #cccccc;
    margin-bottom: 15px;
}

.section h3 {
    font-size: 1.2rem;
    margin-top: 35px;
    margin-bottom: 12px;
}

/* TAG LIST */

.tag-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-list li {
    border-radius: 999px;
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    padding: 6px 14px;
    font-size: 0.85rem;
}

/* APPROACH LIST */

.approach-list {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 20px;
}

.approach-list li {
    margin-bottom: 10px;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.6s ease-out forwards;
}

.approach-list li:nth-child(1) { animation-delay: 0.1s; }
.approach-list li:nth-child(2) { animation-delay: 0.2s; }
.approach-list li:nth-child(3) { animation-delay: 0.3s; }
.approach-list li:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* PROJECTS */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    padding: 24px 22px;
    transition: transform var(--transition-fast), border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.project-card h3 {
    margin-bottom: 12px;
    color: var(--accent-color);
}

.project-card p {
    color: var(--muted-text);
    margin-bottom: 18px;
}

.project-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.project-links a {
    font-size: 0.9rem;
    font-weight: 600;
}

.project-links .secondary-link {
    color: var(--muted-text);
    font-weight: 400;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
}

/* CONTACT */

.contact-block {
    text-align: center;
}

.contact-block p {
    color: var(--muted-text);
    margin-bottom: 25px;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

.contact-main {
    font-size: 1.2rem;
    font-weight: 600;
}

.contact-secondary {
    font-size: 1rem;
    color: var(--muted-text);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 15px;
}

.social-links a {
    color: var(--primary-text);
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.85;
}

.social-links a:hover {
    opacity: 1;
}

/* FOOTER */

footer {
    padding: 30px 20px;
    text-align: center;
    background: #000;
    border-top: 1px solid var(--border-color);
}

footer p {
    color: #777777;
    font-size: 0.85rem;
}

.footer-privacy {
    margin-top: 8px;
}

.footer-privacy a {
    color: #777777;
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-privacy a:hover {
    text-decoration: underline;
}

/* PRIVACY PAGE HEADER (riutilizza header standard, basta margine top) */

.updated-date {
    color: var(--muted-text);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

/* RESPONSIVE */

@media (max-width: 768px) {
    header {
        padding: 0 16px;
        justify-content: space-between;
    }

    nav ul {
        position: absolute;
        top: 70px;
        right: 0;
        background: #050505;
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 15px 20px;
        border-left: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);
        display: none;
    }

    nav ul.open {
        display: flex;
    }

    .hamburger {
        display: flex;
        margin-left: auto; /* lo spinge tutto a destra */
    }

    .hero {
        padding-top: 110px;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .tagline {
        font-size: 1.4rem;
    }
}
.hero-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--accent-color);
    overflow: hidden;
    margin-bottom: 20px;
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 20px 80px;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 50px;
}

.hero-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    overflow: hidden;
    flex-shrink: 0;
}

.hero-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    max-width: 650px;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 15px;
}
.hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 25px;
}

.hero-content {
    max-width: 100%;
}
.project-image {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 18px;
    background: #111;
    border: 1px solid var(--border-color);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-fast);
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.logo-img {
  height: 120px !important;   /* Navbar: alto e dominante */
  max-width: 260px !important;
  width: auto !important;
}

.hero-inner {
  display: grid !important;
  grid-template-columns: auto 220px 1fr !important; /* Logo | Foto | Testo */
  gap: 4rem !important;
  align-items: start !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

/* NAVBAR LOGO */
.logo img {
  height: 50px !important;
  max-width: 220px !important;
  width: auto !important;
}

/* HERO LAYOUT */
.hero-inner {
  display: flex !important;
  gap: 4rem !important;
  align-items: center !important;
}

.footer-logo {
  height: 45px !important;
  max-width: 200px !important;
}





.approach-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 20px;
}

.approach-list li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 18px;
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInLeft 0.6s ease-out forwards;
}

.approach-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.6;
}

.approach-list li {
  padding-left: 35px;
  margin-bottom: 18px; /* da 10px a 18px */
  line-height: 1.8; /* migliora leggibilità */
}

.approach-list li {
  transition: transform 0.2s ease, color 0.2s ease;
  cursor: default;
}

.approach-list li:hover {
  transform: translateX(8px);
  color: #ffffff;
}

.approach-list li:hover::before {
  color: #37ffb4; /* versione più chiara dell'accent */
}

.approach-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-size: 1.2rem;
  font-weight: bold;
  width: 24px;
  height: 24px;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
