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

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

/* Font base */
body {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  background-color: #ffffff;
  color: #1E3D5C;
  line-height: 1.6;
}

h1, h2 {
  font-family: "Roboto", sans-serif;
  color: #1E3D5C;
  text-align: center;
}

p {
  font-size: 1.2rem;
  padding-bottom: 20px;
}

.center {
  text-align: center;
}

section {
  padding: 60px 20px;
  margin: 0 auto;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

ul {
  padding-left: 20px;
}

footer {
  background-color: #1E3D5C;
  color: white;
  text-align: center;
  padding: 30px 20px;
  font-size: 0.9em;
}


/* Header */
.navbar {
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
  height: 150px;
}

.logo img {
  height: 80px;
}

/* Right section */
.right-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1.1rem;
}

.arrow-down {
  font-size: 0.6rem;
}

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  display: none;
  flex-direction: column;
  min-width: 120px;
  z-index: 20;
}

.lang-menu div {
  padding: 0.5rem 1rem;
  cursor: pointer;
  white-space: nowrap;
  color: #002B45;
}

.lang-menu div:hover {
  background-color: #f0f0f0;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 20px;
  height: 14px;
  cursor: pointer;
}

.hamburger span {
  height: 2px;
  width: 100%;
  background-color: #002B45;
}

/* Fullscreen menu */
.fullscreen-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  background: #002B45;
  color: white;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.fullscreen-menu ul {
  list-style: none;
  text-align: center;
}

.fullscreen-menu li {
  margin: 1.5rem 0;
}

.fullscreen-menu a {
  text-decoration: none;
  color: white;
  font-size: 2rem;
  font-weight: 300;
  transition: opacity 0.3s;
}

.fullscreen-menu a:hover {
  opacity: 0.6;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
}

/* Project */
.projects-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding: 3rem 4rem;
  align-items: center;
}

.left-image img,
.small-image img {
  width: 100%;
  height: auto;
}

.center-text {
  text-align: center;
}

.section-label {
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: #4a4a4a;
  margin-bottom: 1rem;
}

.main-title {
  font-size: 2.8rem;
  line-height: 1.2;
  color: white;
}

.right-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.description {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #3e3e3e;
}

.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #1E3D5C;
  color: white;
  text-decoration: none;
  font-weight: 500;
  border-radius: 80px;
  width: fit-content;
  transition: background 0.3s;
  text-align: center;
}

.cta-button:hover {
  background-color: #1e271f;
}

.cta-button-white {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: whitesmoke;
  color: #1E3D5C;
  text-decoration: none;
  font-weight: 500;
  border-radius: 80px;
  width: fit-content;
  transition: background 0.3s;
  text-align: center;
}

.cta-button-white:hover {
  background-color: black;
  color: white;
}

.tabs-container {
  background-color: #1E3D5C;
  padding: 2rem 2rem 4rem;
}

.projects-container h4 {
  color: white;
}

.right-content p {
  color: white;
} 

.tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.tab {
  background: none;
  border: none;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  color: #1E3D5C;
  border-bottom: 2px solid transparent;
  transition: border 0.3s;
}

.tab-content.hidden {
  display: none;
}

.tab-content {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  position: absolute;
  width: 100%;
  left: 0;
  top: 0;
}

.tab-content.show {
  opacity: 1;
  visibility: visible;
  position: relative;
}

.tabs-container {
  position: relative;
  overflow: hidden;
  min-height: 850px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.tab {
  position: relative;
  background: none;
  border: 2px solid transparent;
  padding: 1rem 1.2rem 0.7rem;
  font-size: 1rem;
  color: #2c392f;
  cursor: pointer;
  border-radius: 8px;
  background-color: #f0f4f8;
  min-width: 140px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tab:hover,
.tab.active {
    background-color: lightgrey;
    color: white;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.tab {
  background: none;
  border: 1px solid #ccc;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  color: #2c392f;
  cursor: pointer;
  border-radius: 8px;
  background-color: #fff;
  min-width: 140px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

/* Etichette minimal */
.label-minimal {
  font-size: 0.65rem;
  font-weight: 500;
  color: #666;
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Varianti per settore */
.label-minimal.food {
  background: #fefefe;
  border-color: #ddd;
}

.label-minimal.property {
  background: #fefefe;
  border-color: #ccc;
}

.label-minimal.retail {
  background: #fefefe;
  border-color: #ccc;
}

.vintage-label {
  display: inline-block;
  font-size: 0.7rem;
  font-family: "Roboto", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.3rem 0.6rem;
  margin-bottom: 0.4rem;
  border-radius: 6px;
  border: 1px solid rgba(0,0,0,0.1);
  background-color: #1E3D5C;
  color: #3e342c;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
  transition: all 0.3s ease;
}

/* Varianti colore soft vintage */
.vintage-label.food {
  background-color: #f5e1cf;
  border-color: #e0cdb4;
  color: #4e3b2a;
}

.vintage-label.property {
  background-color: #d9e1d3;
  border-color: #b5c2ae;
  color: #374032;
}

.vintage-label.retail {
  background-color: #f1dfe0;
  border-color: #d6c1c2;
  color: #4b3334;
}

/* Tab base */
.tab {
  background: none;
  border: 1px solid #ddd;
  padding: 0.8rem 1.2rem;
  font-size: 1rem;
  color: #2c392f;
  cursor: pointer;
  border-radius: 8px;
  background-color: #fff;
  min-width: 140px;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.tab:hover,
.tab.active {
  border-color: #2c392f;
}

/* Sezione Investimenti */
.investment-criteria {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background-color: #f8f5f2;
  align-items: center;
}

.criteria-text {
  max-width: 600px;
  color: #1E3D5C;
  padding-left: 60px;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-family: "Roboto", sans-serif;
  color: #1E3D5C;
}

.criteria-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.criteria-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.strategy-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.strategy-image img {
  height: 500px;
  padding: 20px;
}

.subsidiaries-section {
  padding: 4rem 2rem;
  text-align: center;
}

.subsidiaries-title {
  font-size: 2rem;
  color: #1f3c5a;
  margin-bottom: 2rem;
}

.subsidiaries-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}

.subsidiaries-logos img {
  max-height: 80px;
  max-width: 160px;
  object-fit: contain;
  filter: grayscale(0%);
  transition: transform 0.3s ease;
}

.subsidiaries-logos img:hover {
  transform: scale(1.05);
}

.chi-siamo img {
  width: 100%;
}
/* Founder */
.founding-section {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #fff;
  color: #1E3D5C;
}

.founding-image img {
  width: 50%;
  max-height: 800px;
  object-fit: cover;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.founding-text {
  margin-top: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.2rem;
  line-height: 1.6;
  padding: 0 1rem;
}

.year-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-family: "Roboto", sans-serif;
  color: #1E3D5C;
}

/* Animazione fade */
.fade-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease-out;
}

.fade-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.cta-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #1E3D5C;
  color: white;
  text-decoration: none;
  font-weight: 500;
  border-radius: 80px;
  font-size: 1rem;
  transition: background 0.3s ease;
}

.cta-button:hover {
  background-color: #1e271f;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .founding-text {
    font-size: 1rem;
  }

  .year-title {
    font-size: 1.5rem;
  }
}

.latest-articles {
  background-color: #f9f6f2;
  padding: 4rem 2rem;
  text-align: center;
  color: #2c392f;
}

.articles-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-family: "Roboto", sans-serif;
}

.articles-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.article-preview {
  background: #fff;
  border: 1px solid #eee;
  padding: 2rem;
  border-radius: 8px;
  text-align: left;
  transition: box-shadow 0.3s ease;
}

.article-preview:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.article-title {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: #1e3d5c;
}

.article-excerpt {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #444;
  margin-bottom: 1rem;
}

.read-more {
  font-size: 0.9rem;
  color: #2c392f;
  text-decoration: underline;
}

.all-articles {
  margin-top: 3rem;
}

.all-articles-link {
  font-weight: 500;
  color: #2c392f;
  text-decoration: none;
  border-bottom: 1px solid #2c392f;
  padding-bottom: 2px;
}

.all-articles-link:hover {
  opacity: 0.7;
}

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

.article-preview {
  background: #fff;
  border: 1px solid #eee;
  padding: 2rem;
  border-radius: 8px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.article-preview:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.article-preview:hover .read-more {
  color: #1e3d5c;
  text-decoration: none;
}

.read-more {
  display: inline-block;
  font-size: 0.9rem;
  color: #2c392f;
  text-decoration: underline;
  transition: transform 0.3s ease, color 0.3s ease;
  transform: translateX(0);
}

.article-preview:hover .read-more {
  transform: translateX(4px);
  color: #1e3d5c;
}

.timeline {
  position: relative;
  margin: 0 auto;
  max-width: 900px;
  padding: 2rem 0;
}

.event {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0;
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.event.visible {
  opacity: 1;
  transform: translateY(0);
}

.event:nth-child(even) {
  flex-direction: row-reverse;
}

.event::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 14px;
  height: 14px;
  background-color: #d6c3a8;
  border-radius: 50%;
  border: 3px solid white;
  z-index: 1;
}

.line {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: #d6c3a8;
  transform: translateX(-50%);
  z-index: 0;
}

.event-content {
  width: 45%;
  padding: 1rem;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 2;
}

.event-thumbnail img {
  width: 100%;
  padding: 10px;
  transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

.event-date {
  font-weight: bold;
  color: #7a6448;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.event-text {
  font-size: 1rem;
  line-height: 1.6;
}

.year-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.year-nav a {
  background-color: #fff;
  border: 1px solid #d6c3a8;
  padding: 0.4rem 0.8rem;
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 4px;
  color: #7a6448;
  transition: background 0.3s;
}

.year-nav a:hover {
  background-color: #1E3D5C;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background-color: #7a6448;
  width: 0;
  z-index: 9999;
  transition: width 0.25s;
}
.vision-mission {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.founder-section {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 60px 20px;
}

.founder-image,
.founder-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 60%;
  padding: 10px;
}

.founder-image img {
  max-width: 100%;
  height: auto;
}

.founder-text p {
  text-align: center;
  max-width: 600px;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .founder-section {
    flex-direction: column;
    text-align: center;
  }

  .founder-image,
  .founder-text {
    width: 100%;
  }

  .founder-image img {
    max-width: 100%;
    height: auto;
  }
}

.vision-mission {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  padding: 60px 20px;
  background-color: #ffffff;
}

.vision-mission .text-block {
  flex: 1 1;
  max-width: 600px;
}

.vision-mission h2 {
  font-family: "Roboto", sans-serif;
  font-size: 2em;
  color: #1E3D5C;
  margin-bottom: 20px;
}

.vision-mission p {
  font-family: "Roboto", sans-serif;
  font-size: 1.1em;
  line-height: 1.6;
}

.hero-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background-color: #1E3D5C;
}

.hero-section-white {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background-color: white;
  gap: 40px;
}

.hero-section-white p {
  text-align: center;
  font-size: 1.2rem;
  padding-top: 20px;
  width: 50%;
}

.hero-image img {
  width: 100%;
  max-width: 500px;
}

.hero-text {
  font-size: 1rem;
  max-width: 600px;
  padding: 2rem;
}

.hero-logo {
  text-align: center;
  padding-bottom: 30px;
}

.hero-logo img {
  width: 150px;
  background-color: white;
  padding: 10px;
}

.hero-text h1 {
  font-family: "Roboto", sans-serif;
  font-size: 2.5em;
  color: white;
  margin-bottom: 20px;
}

.hero-text p {
  font-family: "Roboto", sans-serif;
  font-size: 1.1em;
  line-height: 1.6;
  color: white;
}

.values-section {
  padding: 60px 20px;
  background-color: #f9f6f0;
  text-align: center;
}

.values-section h2 {
  font-family: "Roboto", sans-serif;
  font-size: 2em;
  margin-bottom: 30px;
  color: #1E3D5C;
}

.values-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.values-list li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  font-family: "Roboto", sans-serif;
  font-size: 1.1em;
  background: #ffffff;
  padding: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.values-list li:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.values-list .icon {
  font-size: 1.5em;
  color: #1E3D5C;
  flex-shrink: 0;
}

.values-list p {
  margin: 0;
  color: #333;
  text-align: left;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .event {
    flex-direction: column !important;
    align-items: flex-start;
  }

  .event-content {
    width: 100%;
  }

  .event::before, .line {
    left: 10px;
    transform: none;
  }

  .line {
    left: 6px;
  }

  .founder-section {
    display: inline-block;
    width: 100%;
    padding: 40px;
  }
}

.contact-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 60px 20px;
  background-color: #f9f6f0;
  gap: 40px;
}

.contact-info, .contact-form {
  flex: 1 1 400px;
  max-width: 500px;
}

.contact-info h2, .contact-form h2 {
  font-family: "Roboto", sans-serif;
  font-size: 2em;
  color: #1E3D5C;
  margin-bottom: 20px;
}

.contact-info p {
  font-family: "Roboto", sans-serif;
  font-size: 1.1em;
  line-height: 1.6;
  color: #333;
  margin-bottom: 10px;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 12px;
  font-size: 1em;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: "Roboto", sans-serif;
}

.contact-form button {
  padding: 12px;
  font-size: 1em;
  background-color: #1E3D5C;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  transition: background 0.3s;
}

.contact-form button:hover {
  background-color: #14304a;
}

.site-footer {
  background-color: #1E3D5C;
  color: white;
  padding: 3rem 1.5rem;
  font-family: "Roboto", sans-serif;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.3s ease;
}

.footer-nav a:hover {
  opacity: 0.7;
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.8;
}

@media (max-width: 768px) {
  .investment-criteria {
    grid-template-columns: 1fr;
  }
  .founding-image img {
    width: 100%;
  }
  .projects-container {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
  .main-title {
    font-size: 1.8rem;
  }
}

/* Slider */
.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  display: flex;
  flex: 0 0 100%;
  width: 100%;
  height: 70%;
  flex-direction: row;
}

.slide-image {
  width: 100%;
  height: 100%;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-text h2 {
  font-size: 2.2rem;
  max-width: 600px;
  color: #222;
}

/* Controls */
.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 20px;
}

.slider-controls button {
  background-color: rgba(0, 0, 0, 0.4);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 10px 15px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.slider-controls button:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.slide-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f6f6f6;
  padding: 40px;
  text-align: center;
}

.brand-logo {
  margin-bottom: 20px;
}

.brand-logo img {
  max-height: 120px;
  width: auto;
  object-fit: contain;
}

.slide-text h2 {
  font-size: 2.2rem;
  max-width: 600px;
  color: #222;
}

/* Responsive layout */
@media (max-width: 768px) {
  .slide {
    flex-direction: column;
  }

  .slide-image,
  .slide-text {
    width: 100%;
    height: 50%;
    padding: 20px;
  }

  .slider-controls {
    top: auto;
    bottom: 20px;
    transform: none;
  }

  .brand-logo img {
    max-height: 50px;
  }

  .slide-text h2 {
    font-size: 1.5rem;
  }
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  z-index: 10;
}

.slider-dots button {
  height: 12px;
  width: 12px;
  margin: 0 6px;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s;
}

.slider-dots button.active {
  background-color: lightgray;
}

/* Scrolling stop */
.scroll-text-container {
  position: relative;
  height: 200vh;
}

.scroll-text {
  position: sticky;
  top: 0;
  padding: 60px 20px;
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  text-align: center;
}

.scroll-text h2 {
  margin-top: 40px;
  font-size: 2rem;
}

.tab img.tab-logo {
  height: 40px;
  margin-bottom: 8px;
  object-fit: contain;
}

.tab-logo-wrapper {
  background-color: #fff;
  padding: 8px;
  border-radius: 12px;
  margin-bottom: 8px;
  display: inline-block;
}

.tab-logo {
  height: 40px;
  width: 80px;
  display: block;
  object-fit: contain;
}

.slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
}

.slides {
  display: flex;
  transition: transform 1s ease-in-out;
  width: 400%;
}

.slide {
  width: 100%;
  height: 80vh;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.caption {
  background: rgba(255,255,255,0.7);
  padding: 20px 30px;
  font-size: 1rem;
  font-weight: 900;
  max-width: 900px;
  margin: 0 auto 10px;
  z-index: 2;
  position: relative;
}

    .nav {
      position: absolute;
      top: 50%;
      left: 0;
      width: 100%;
      display: flex;
      justify-content: space-between;
      transform: translateY(-50%);
      pointer-events: none;
    }

    .nav button {
      pointer-events: all;
      background-color: rgba(255,255,255,0.9);
      border: none;
      font-size: 2rem;
      padding: 10px 20px;
      margin: 0 10px;
      border-radius: 5px;
      cursor: pointer;
      color: #1E3D5C;
      transition: background 0.3s;
    }

    .nav button:hover {
      background-color: lightgrey;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .caption {
        font-size: 1rem;
        padding: 15px;
      }

      .nav button {
        font-size: 1.5rem;
        padding: 8px 14px;
      }

      .slides {
        width: 100%;
      }
    }

    @media (min-width: 1600px) {
      .caption {
        font-size: 1.5rem;
      }

      .nav button {
        font-size: 2.5rem;
        padding: 12px 24px;
      }
    }

    .portfolio-section {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      padding: 80px 15%;
      gap: 40px;
      background-color:#1E3D5C;
    }

    .portfolio-text {
      flex: 1 1 500px;
      color: white;
    }

    .portfolio-text h2 {
      font-size: 2.5rem;
      margin-bottom: 20px;
      color: white;
    }

    .portfolio-text p {
      font-size: 1.2rem;
      margin-bottom: 30px;
      line-height: 1.6;
    }

    .portfolio-text ul {
      list-style: none;
      padding: 0;
    }

    .portfolio-text li {
      margin-bottom: 15px;
      font-size: 1.2rem;
    }

    .portfolio-text li a {
      text-decoration: underline;
    }

    .portfolio-text li:nth-child(1) a {
      color: #8B0000; /* rosso */
    }

    .portfolio-text li:nth-child(2) a {
      color: #b77d2b; /* ocra */
    }

    .portfolio-text li:nth-child(3) a {
      color: #e2b866; /* beige chiaro */
    }

    .portfolio-chart {
      flex: 1 1 400px;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    canvas {
      max-width: 300px;
      max-height: 300px;
    }

    @media (max-width: 768px) {
      .portfolio-section {
        flex-direction: column;
        padding: 40px 20px;
      }

      .portfolio-text h2 {
        font-size: 2rem;
      }

      .portfolio-text p, .portfolio-text li {
        font-size: 1rem;
      }
    }

.hero-header-alt {
  position: relative;
  background-image: url('assets/img/capua-mani.webp');
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 40px;
  overflow: hidden;
}

.hero-header-alt::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 120px;
  background-color: white;
  border-top-left-radius: 100% 100%;
  border-top-right-radius: 100% 100%;
  transform: scaleY(0.4);
  transform-origin: top;
  z-index: 1;
}

.topbar-alt {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
  position: relative;
}

.logo-alt img {
  max-height: 60px;
}

.controls-alt {
  display: flex;
  align-items: center;
  gap: 20px;
}

.lang-toggle-alt {
  position: relative;
  cursor: pointer;
}

.lang-menu-alt {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background-color: white;
  border: 1px solid #ccc;
  padding: 5px;
  z-index: 99;
}

.lang-menu-alt div {
  padding: 5px 10px;
  cursor: pointer;
}

.lang-menu-alt div:hover {
  background-color: #eee;
}

.burger-alt {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.burger-alt span {
  width: 25px;
  height: 2px;
  background-color: white;
  display: block;
}

.text {
  width: 80%;
  padding: 50px 50px;
}

.text .title {
  font-size: 1.3rem;
  font-weight: 500;
  padding-top: 20px;
}

.text-legal {
  width: 80%;
  padding: 50px 50px;
  text-align: justify;
}

.text-legal .title {
    padding-top: 20px;
    font-weight: 900;
}