:root {
  --c1: #000;
  --c2: #fff;
  --acc: #00cfc8;
  --bg2: #f8f8f8;
  --bg3: #eee;
  --line: 1px solid #ddd;
  --hh: 130px;
}

body {
  font-family: 'Source Serif 4', serif;
  color: var(--c1);
  background: var(--c2);
  margin: 0;
  padding-top: var(--hh);
  line-height: 1.7;
  scroll-behavior: smooth;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  :root { --hh: 110px; }
  body { font-size: 1.15rem; line-height: 1.6; padding-top: var(--hh); }
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

strong {
  font-weight: 700;
  color: var(--acc);
}

.section-title-accento {
  color: var(--acc);
}

section {
  padding: 80px 0;
  border-top: var(--line);
  scroll-margin-top: calc(var(--hh) + 10px);
}

header {
  background: #000;
  border-bottom: 1px solid #333;
  padding: 20px 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

header .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
}

.header-left {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.header-portrait-wrapper {
  width: 80px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--bg2);
  border: 3px solid var(--acc);
  margin-right: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.header-portrait-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 768px) {
  .header-portrait-wrapper {
    width: 60px;
    border: 2px solid var(--acc);
  }
}

.logo-text .name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  display: block;
}

.logo-text .tagline {
  font-size: 1rem;
  color: var(--acc);
  display: block;
  font-weight: 500;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav ul li a {
  font-family: 'Poppins', sans-serif;
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  font-size: 1.05rem;
  transition: color .3s;
  display: inline-flex;
  align-items: center;
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--acc);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
}

.text-box {
  background: var(--bg2);
  padding: 25px;
  margin: 20px 0;
  border-radius: 4px;
}

.box-flottante {
  background: #e0f7fa;
  padding: 30px;
  border-left: 5px solid var(--acc);
  margin: 40px 0;
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 600;
  line-height: 1.5;
  color: #212121;
}

.cta-button {
  display: inline-block;
  background: var(--acc);
  color: #000;
  padding: 18px 35px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 4px;
  margin-top: 20px;
  border: 2px solid var(--acc);
  transition: background .3s, transform .2s;
  font-family: 'Poppins', sans-serif;
  letter-spacing: .5px;
}

.cta-button:hover {
  background: #00a09b;
  transform: translateY(-2px);
}

.portrait-home {
  width: 100%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--acc);
  display: block;
  margin: 40px auto 60px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, .1);
}

.list-columns {
  columns: 2;
  column-gap: 30px;
  margin: 15px 0;
  padding-left: 20px;
}

.list-columns li {
  margin-bottom: 8px;
  break-inside: avoid;
}

.sector-block { margin-bottom: 35px; }
.sector-block h3 { margin-bottom: 12px; font-size: 1.15rem; }

@media (max-width: 768px) {
  .list-columns {
    columns: 1;
  }
}

.contatti-info {
  margin-top: 20px;
  font-size: 1rem;
  color: #444;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.service-card {
  background: #fff;
  border: var(--line);
  border-radius: 4px;
  padding: 20px;
}

.faq-item {
  border: var(--line);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 4px;
  background: #fff;
}

.faq-item summary {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  color: #000;
  cursor: pointer;
  list-style: none;
  font-size: 1.1rem;
}

.faq-item summary::after {
  content: '+';
  float: right;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--acc);
}

.faq-item details[open] summary::after {
  content: '-';
}

.faq-item p {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #eee;
}

.case-study {
  padding-top: 0;
}

.case-study .text-box {
  background: #fff;
  border: var(--line);
}

footer {
  text-align: center;
  padding: 30px 0;
  border-top: var(--line);
  font-size: .95rem;
  color: #666;
  margin-top: 40px;
  line-height: 1.8;
  background: var(--bg2);
}

footer a {
  color: #666;
  text-decoration: none;
  margin: 0 10px;
}

footer a:hover {
  color: var(--acc);
}

.footer-contacts {
  margin: 12px 0 0;
  font-size: 1.05rem;
}

.hamburger-button {
  display: none;
}

@media (max-width: 768px) {
  .hamburger-button {
    display: block;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
  }

  .hamburger-line {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s, opacity .3s;
  }

  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--hh);
    right: 0;
    background: #000;
    width: 100%;
    padding: 10px 0;
    border-top: 1px solid #333;
  }

  nav.is-open {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    text-align: center;
  }

  nav ul li a {
    padding: 16px 20px;
    display: block;
    justify-content: center;
  }
}

@media (min-width: 769px) {
  .hamburger-button {
    display: none;
  }
}

@media (max-width: 768px) {
  body { font-size: 1.2rem; }
  footer { font-size: 1rem; }
  .footer-contacts { font-size: 1.1rem; }
}
