@import url('https://fonts.googleapis.com/css2?family=Avenir:ital,wght@0,100;0,300;0,400;0,500;0,700;0,800;0,900;1,100;1,300;1,400;1,500;1,700;1,800;1,900&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Avenir", "Helvetica Neue", Arial, sans-serif;
  background: #ffffff;
  color: #2f3546;
  line-height: 1.6;
}

a {
  color: #2f3546;
}

a:hover {
  text-decoration: underline;
}

/* Logo testuale RBLEX in card smussata con sfondo #2f3546 */
.logo-container {
  margin-bottom: 20px;
  text-align: center;
}

.logo-text {
  display: inline-block;
  border: 1px solid #2f3546;
  border-radius: 18px;
  padding: 12px 16px;
  background: #2f3546;
  color: #ffffff;
  font-family: "Avenir", sans-serif;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  text-align: center;
  line-height: 1.1;
}

.logo-text span {
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  display: block;
}

/* Layout */
.layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  border-right: 3px solid #2f3546;
  background: #ffffff;
}

.sidebar-inner {
  padding: 24px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-info p {
  font-weight: 300;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: #2f3546;
}

.sidebar-info strong {
  font-weight: 500;
}

.sidebar-nav {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
}

.sidebar-nav a {
  font-weight: 300;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  color: #2f3546;
}

.sidebar-nav a.active {
  font-weight: 500;
  border-left: 2px solid #2f3546;
  padding-left: 6px;
}

.content {
  flex: 1;
  padding: 32px 32px 24px 32px;
  overflow-y: auto;
}

/* LINKEDIN nella colonna destra */
.linkedin-section {
  text-align: center;
  margin: 40px 0;
}


.linkedin-btn-large {
  display: inline-block;
  width: 200px;
  height: 100px;
  border: 1px solid #2f3546;
  border-radius: 18px;
  padding: 16px;
  background: #ffffff;
  transition: all 0.2s ease;
  text-decoration: none;
}

.linkedin-btn-large:hover {
  box-shadow: 0 4px 12px rgba(47, 53, 70, 0.3);
}

.linkedin-btn-large img {
  max-width: 168px;
  max-height: 68px;
  filter: grayscale(100%);
  display: block;
  margin: 0 auto;

}

/* INTRODUZIONE */
.introduzione {
  margin-bottom: 40px;
}

.introduzione h1 {
  font-weight: 900;
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.intro-text {
  font-weight: 300;
  font-size: 1.1rem;
  color: #2f3546;
}

/* Sezioni */
.section {
  margin-bottom: 32px;
}

.section h1,
.section h2 {
  font-weight: 800;
  color: #2f3546;
}

/* CHI SONO */
.chi-sono {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}

.chi-sono-photo img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #2f3546;
  filter: grayscale(100%);
}

.chi-sono-text h2 {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.chi-sono-text p {
  font-weight: 300;
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: #2f3546;
}

.chi-sono-text p:first-child {
  font-weight: 500;
}

/* COLUMNS - Card smussate */
.columns {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.column {
  flex: 1 1 240px;
  font-size: 0.95rem;
  border: 1px solid #2f3546;
  border-radius: 18px;
  padding: 20px 16px 18px 16px;
  background: #ffffff;
  transition: box-shadow 0.2s ease;
}

.column:hover {
  box-shadow: 0 4px 12px rgba(47, 53, 70, 0.1);
}

.column h3 {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.05em;
  color: #2f3546;
}

.column p {
  font-weight: 300;
  color: #2f3546;
}

.collaboration {
  text-align: center;
}

.collab-photo {
  margin-bottom: 12px;
}

.collab-photo img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: grayscale(100%);
  border-radius: 50%;
  border: 2px solid #2f3546;
}

.collaboration h3 {
  font-weight: 500;
}

.collaboration p a {
  font-weight: 300;
  font-size: 0.85rem;
}

.section.narrow {
  max-width: 640px;
}

.section.narrow h1 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.section.narrow h2 {
  margin-top: 24px;
}

.section.narrow p {
  font-weight: 300;
  margin-bottom: 12px;
  color: #2f3546;
}

.site-footer {
  border-top: 1px solid #2f3546;
  color: #2f3546;
}

/* RESPONSIVO - Tutto centrato su mobile */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 3px solid #2f3546;
    position: static;
    height: auto;
  }

  .sidebar-inner {
    position: static;
    height: auto;
    padding: 20px;
    text-align: center;
  }

  .logo-container {
    margin: 0 auto 20px auto;
  }

  .sidebar-info {
    margin-bottom: 20px;
  }

  .sidebar-info p {
    text-align: center;
  }

  .sidebar-nav {
    align-items: center;
  }

  .sidebar-nav a {
    padding: 8px 0;
  }

  .content {
    padding: 24px 16px;
  }

  .linkedin-section {
    margin: 40px auto;
  }

  .linkedin-btn-large {
    width: 180px;
    height: 90px;
  }

  .columns {
    flex-direction: column;
  }

  .column {
    flex: 1 1 auto;
  }

  .chi-sono {
    flex-direction: column;
    text-align: center;
  }

  .chi-sono-photo {
    margin: 0 auto 16px auto;
  }
}

/* Tablet */
@media (max-width: 1024px) and (min-width: 769px) {
  .content {
    padding: 24px 20px;
  }
}
