  :root {
    --black: #000;
    --white: #fff;
    --red: #e3001b;
    --grey: #777;
    --line: #2a2a2a;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: "Source Sans 3", Arial, sans-serif;
    font-size: 17px;
    color: #222;
    background: #fff;
    -webkit-font-smoothing: antialiased;
  }
  a { color: inherit; text-decoration: none; }
  img { display: block; max-width: 100%; }
  .wrap { width: 1424px; max-width: calc(100% - 40px); margin: 0 auto; }

  /* Testata nera, come il logo */
  header.site {
    background: var(--black);
    color: var(--white);
    text-align: center;
  }
  .topbar { height: 40px; }
  .topbar .wrap {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
  }
  .search {
    background: none;
    border: 0;
    color: var(--red);
    cursor: pointer;
    padding: 4px;
  }
  .search svg { width: 16px; height: 16px; display: block; }
  .sep { color: var(--line); font-size: 14px; }
  .social { display: flex; gap: 16px; }
  .social a { color: var(--red); display: block; transition: opacity .2s; }
  .social a:hover { opacity: .7; }
  .social svg { width: 18px; height: 18px; display: block; fill: currentColor; }

  .brand { padding: 6px 0 12px; }
  .brand .logo { width: 406px; max-width: 80%; height: auto; margin: 0 auto; }
  .site-title {
    font-family: "Kaushan Script", cursive;
    font-weight: 400;
    font-size: 78px;
    line-height: 1;
    margin-top: 14px;
    color: var(--white);
  }

  nav.main {
    border-top: 1px solid var(--line);
    padding: 30px 0;
  }
  nav.main span {
    display: inline-block;
    margin: 0 28px;
    font-size: 18px;
    color: var(--white);
  }

  /* Banda portfolio */
  .hero {
    background: var(--black);
    height: 156px;
    position: relative;
  }
  .hero::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    width: 470px;
    height: 1px;
    background: #ddd;
  }
  .portfolio-btn {
    z-index: 2;
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translate(-50%, -50%);
    width: 156px;
    height: 156px;
    border-radius: 50%;
    background: #ff0000;
    border: 4px solid var(--white);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.15;
    font-weight: 400;
    text-align: center;
    transition: transform .2s;
  }
  .portfolio-btn:hover { transform: translate(-50%, -50%) scale(1.04); }

  .info {
    text-align: center;
    padding: 180px 20px 60px;
  }
  .info h2 {
    font-family: "Noto Serif", Georgia, serif;
    font-weight: 400;
    font-size: 34px;
    letter-spacing: .02em;
    color: #222;
    margin-bottom: 26px;
  }
  .info p { color: var(--grey); line-height: 2; font-size: 17px; }
  .info a.mail { color: var(--red); }

  .gallery {
    width: 318px;
    height: 250px;
    margin: 40px auto 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border: 1px solid #eee;
  }
  .gallery div {
    border-left: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .gallery div:first-child { border-left: 0; }
  .gallery img { width: 50px; height: 50px; object-fit: cover; }

  .legal { margin-top: 40px; font-size: 17px; color: var(--grey); }

  /* Footer */
  footer {
    background: #333;
    color: #bbb;
    padding: 22px 0;
    text-align: center;
    font-size: 17px;
  }
  footer span { margin: 0 14px; }

  @media (max-width: 1100px) {
    nav.main span { margin: 0 12px; font-size: 16px; }
    .site-title { font-size: 52px; }
  }
