body {
  padding-top: 70px;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  font-weight: 400;
  color: #111;
  line-height: 1.7;
  background-color: #fff;
}

h1, h2, h3, h4, h5 {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 0.6em;
}

h1 {
  font-size: 2.6rem;
  font-weight: 600;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.4rem;
}

p {
  font-size: 1rem;
  margin-bottom: 1em;
}

/* HERO */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.logo {
  width: 420px;
  max-width: 90%;
  margin: 0 auto;
  display: block;
}

.tagline {
  font-size: 1.4rem;
  max-width: 720px;
  margin: 15px auto 0;
}

/* FOOTER */
.site-footer {
  background-color: #f5f5f5;
  font-size: 0.95rem;
  line-height: 1.6;
}

.site-footer strong {
  font-weight: 600;
}

.site-footer p {
  margin-bottom: 0.5rem;
}

/* HEADER */
.site-header {
  background-color: #f5f5f5;
}

.site-header .nav-link,
.site-header .navbar-brand {
  color: #000000;
}

.site-header .nav-link:hover {
  color: #000000;
}

#ieri-e-oggi img {
  border-radius: 4px;
}

/* CERTIFICAZIONI */
.certificato-img {
  max-height: 180px;
  width: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.certificazioni p {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 0.6rem;
}

.certificazioni ul {
  margin-bottom: 0.6rem;
  padding-left: 1.2rem;
}

.certificazioni li {
  font-size: 0.95rem;
}

.certificazioni h2,
.certificazioni h3,
.certificazioni h4 {
  font-weight: 600;
}

.homepage-intro {
  font-size: 1.25rem;
  font-weight: 400;
  max-width: 860px;
  margin: 0 auto;
  line-height: 1.6;
  color: #333;
}

.homepage-highlight {
  font-size: 1.25rem;
  font-weight: 600;
  max-width: 860px;
  margin: 1.25rem auto 0;
  line-height: 1.6;
  color: #111;
}

/* FORM CONTATTO */
.contact-form .form-control,
.contact-form .form-select {
  border-radius: 0;
  border-color: #ccc;
  font-size: 0.95rem;
  padding: 0.6rem 0.85rem;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: #111;
  box-shadow: none;
}

.contact-form label {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form .form-note {
  font-size: 0.82rem;
  color: #888;
}

.contact-form-success {
  display: none;
  padding: 1.5rem;
  background: #f5f5f5;
  border-left: 3px solid #111;
  font-size: 0.95rem;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.newsletter-page {
  padding: 80px 0;
}

.page-title {
  text-align: center;
  margin-bottom: 20px;
}

.page-intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
  line-height: 1.6;
}

.news-item {
  border-top: 1px solid #ddd;
  padding: 30px 0;
}

.news-item:first-of-type {
  border-top: none;
}

.news-date {
  font-size: 0.9rem;
  color: #777;
}

.news-title {
  margin: 10px 0;
  font-size: 1.3rem;
}

.news-text {
  line-height: 1.6;
  max-width: 900px;
}

.text-content {
  max-width: 850px;
  margin: 0 auto;
}

.text-justify p {
  text-align: justify;
  hyphens: auto;
}

.text-justify h3,
.text-justify h4 {
  text-align: center;
}

.text-justify h4 {
  margin-bottom: 15px;
}

button {
  background-color: #000;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

button:hover {
  background-color: #333;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

button:active {
  transform: translateY(0);
}

.footer-logo {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin: -40px auto 0;
}

.page-servizi .subtitle {
  margin-bottom: 70px;
}

.footer-copy {
  font-size: 0.8rem;
  color: #666;
  margin-top: 10px;
}

/* HAMBURGER */
.custom-toggler {
  border: none;
  padding: 8px;
  background: transparent;
}

.toggler-line {
  display: block;
  width: 26px;
  height: 2px;
  background-color: #000;
  margin: 6px 0;
  transition: all 0.35s ease;
}

.custom-toggler:hover .toggler-line {
  background-color: #555;
}

.custom-toggler.active .toggler-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.custom-toggler.active .toggler-line:nth-child(2) {
  opacity: 0;
}

.custom-toggler.active .toggler-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* PAGINA RADICI */
.radici-dedica {
  border-top: 1px solid #ddd;
  padding-top: 30px;
  margin-top: 50px;
}

.navbar-brand img {
  height: 38px;
}

.back-arrow {
  position: absolute;
  left: 60px;
  top: 30px;
  font-size: 34px;
  text-decoration: none;
  color: #333;
  transition: 0.2s;
}

.back-arrow:hover {
  transform: translateX(-4px);
  color: #000;
}

.referente-page {
  position: relative;
}

/* RESPONSIVE */
@media (max-width: 768px) {

  .hero {
    min-height: auto !important;
    padding: 70px 0 18px !important;
  }

  .logo {
    width: 240px;
    max-width: 85%;
    margin: 0 auto !important;
    display: block;
  }

  .tagline {
    font-size: 1.05rem;
    line-height: 1.25;
    margin: 12px auto 0 !important;
    max-width: 92%;
  }

  .homepage-intro {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 92%;
  }

  .homepage-highlight {
    font-size: 1rem;
    max-width: 92%;
  }

  .home-cta {
    margin-top: 5px;
    padding: 10px 22px;
    font-size: 0.9rem;
  }

  .radici-dedica {
    margin-top: 40px;
    padding-top: 25px;
  }

  .back-arrow {
    position: relative;
    display: block;
    margin-top: 10px;
    margin-bottom: 35px;
    margin-left: -40px;
    margin-right: auto;
    width: fit-content;
    font-size: 28px;
  }

  .certificazioni h2,
  .certificazioni h3,
  .certificazioni h4 {
    text-align: center;
  }

}
