:root {
  --atlas: #D5AF4B;
  --identify: #00ffec;
  --produce: #ffff00;
  --plan: #66ff66;
  --disseminate: #ff3300;
  --deposit: #ff9933;
  --indepth: #F1F1F1;
}

body {
  font-family: Helvetica, sans-serif, sans-serif !important;
}

div.page-body {
  padding: 2em;
}

/* ============= NAVBAR =====================*/
/* Base navbar */
.custom-navbar {
  background-color: #191919; /* dark background */
  padding: 1em 2em;
  font-family: 'Rajdhani', sans-serif;
}

/* Force brand and hamburger to stay on the same line */
.custom-navbar .container-fluid {
  display: flex;
  justify-content: space-between; /* brand left, toggler right */
  align-items: center;            /* vertical alignment */
}

/* Brand style */
.custom-navbar .navbar-brand {
  font-weight: 700;
  color: var(--atlas);
  font-size: 1.5em;
  white-space: nowrap; /* prevent text wrapping */
}

/* Nav links */
.custom-navbar .nav-link {
  color: #fff;
  font-weight: 500;
  margin-right: 1em;
  transition: color 0.3s ease, transform 0.2s ease;
}

.custom-navbar .nav-link:hover,
.custom-navbar .nav-link.active {
  color: var(--atlas);
  transform: translateY(-1px);
}

/* Dropdown menu */
.custom-navbar .dropdown-menu {
  background-color: #191919;
  border: 1px solid #444;
  padding: 0.5em 0;
}

.custom-navbar .dropdown-item {
  color: #fff;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.custom-navbar .dropdown-item:hover {
  color: var(--atlas);
  background-color: rgba(213, 175, 75, 0.1);
}

/* Toggler (hamburger button) */
.navbar-toggler {
  border: none; /* remove default border */
  padding: 0.25rem 0.5rem;
  margin-top: 0; /* align vertically with brand */
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%28213,175,75,1%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Expanded mobile menu background */
.custom-navbar .collapse.show {
  background-color: #191919; /* keep dark background */
  padding: 1em 2em;
}

/* Center nav links on mobile */
.custom-navbar .navbar-nav {
  text-align: center;
}

.custom-navbar .navbar-nav .nav-link {
  display: block; /* full width on mobile */
  margin: 0.5em 0;
}

/* Dropdown appearance fix */
.dropdown-menu.show {
  border-radius: 0 !important;
}

/* Active link highlight */
.navbar-nav .nav-link.active, 
.navbar-nav .nav-link.show {
  color: var(--atlas);
}

/* General links */
a {
  color: inherit;
  font-weight: 500;
}

/* ================= HEADER ================= */
header {
  min-height: calc(100vh - 80px);
  padding: 2em 3em; /* aumenta leggermente il padding verticale */
  display: flex;
  align-items: flex-end;
  flex-direction: column; /* più controllabile su mobile */
  justify-content: flex-end;
  background-color: #191919;
}

/* HEADER RESPONSIVE */
@media (max-width: 992px) {
  header {
    min-height: 60vh; /* non troppo grande su tablet e mobile */
    padding: 2em 1.5em;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .page-title {
    font-size: clamp(2rem, 8vw, 50px); /* ridimensionamento fluido */
  }

  .page-subtitle {
    font-size: clamp(1rem, 4vw, 18px);
  }

  .button-container {
    flex-direction: column;
    gap: 0.5em;
    align-items: flex-start;
  }
}

.main-title {
  color: white;
  text-align: left;
  margin-bottom: 2em;
}

.main-title.container {
    position: relative;
}

.main-title > div {
    position: absolute;
    bottom: 0;
}

.page-title {
  font-size: 80px;
  font-weight: bold;
  margin: 0;
  line-height: 1em;
  position: relative;
  font-family: 'Rajdhani', sans-serif;
  text-transform: uppercase;
}

.page-title .dot {
  font-family: 'Rajdhani', sans-serif;
  color: var(--atlas);
  font-size: 1.5em;
  line-height: 0em;
}

.page-body .page-title {
  margin: 1.5em 0 1em 0;
}

.page-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  margin-top: 0.5em;
  margin-bottom: 3.5em;
  line-height: 1.4em;
}

/* ================= BUTTONS ================= */
.button-container {
  display: flex;
  gap: 0.75em;
  margin-top: 1.5em;
}

/* Base button */
.button-glass, .button-atlas, .button-dark {
  --angle: -30deg;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5em 1.2em;
  border: none;
  cursor: pointer;
  z-index: 1;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-size: 16px;
  text-decoration: none;
  overflow: hidden;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 800;
}

/* Glass button */
.button-glass {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(213, 175, 75, 0.15);
}

.button-glass:hover {
  background: rgba(213, 175, 75, 0.25);
  transform: translateY(-2px);
}

/* Atlas button */
.button-atlas {
  color: #070A0F;
  background: var(--atlas);
}

.button-atlas:hover {
  background: #c19a3d;
  transform: translateY(-2px);
}

/* dark button */
.button-dark {
  color: #070A0F;
  border: #bbb 1px solid;
  background: white;
}

.button-dark:hover {
  color: white;
  background-color: #070A0F;
  transform: translateY(-2px);
}

.arrow {
  font-size: 18px !important;
  padding-left: 0.2em;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
  .page-title {
    font-size: 40px;
  }
  .page-subtitle {
    font-size: 16px;
  }
  .button-container {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* MAIN */

hr {
    width: 100%;
    border: none;              /* togli il bordo predefinito */
    border-top: 1px solid #ccc; /* colore e spessore personalizzabili */
    margin: 2em 0 0 0; 
}

article > section {
    padding-top: 100px !important;
    min-height: 100vh;
}

.row:not(.row .row) {
    padding: 3em 4em;
}

.center {
    text-align: center;
}

h1 + p, h2 + p {
    padding-top: 1em;
}

p, li {
    color: #444444;
    font-size: 18px;
    line-height: 30px;
    font-weight: 100;
}

.page-body p, .page-body li {
    font-size: 18px;
}

.reference {
    padding-top: 1em;
    font-size: 20px;
}

.bold {
    font-family: 'Rajdhani', sans-serif;
    text-transform: uppercase;
    font-weight: 700;
}

strong {
  font-weight: 700;
}

.topic {
    font-family: 'Rajdhani', sans-serif;
    font-size: 18px;
    color: var(--atlas);
    line-height: 0;
}

.topic::after {
  content: "";
  display: inline-block;
  width: 40px;
  height: 3px;              
  background-color: currentColor; 
  margin-left: 12px;        
  vertical-align: middle;   
}

.numbered {
    font-family: 'Rajdhani', sans-serif;
    color: var(--atlas);
    font-weight: 800;
    font-size: 1.2em;
}

li:not(nav li) {
    list-style-type: square;
}
li::marker {
    color: var(--atlas);
}

/* acc */
.acc-section {
  position: -webkit-sticky;
  position: sticky;
  top: 1rem;
  align-self: flex-start;
  height: fit-content;
}

div.acc {
  margin-top: 3em !important;
  margin-left: 1em !important;
  border-top: 1px solid #ccc !important;
}

div.acc .acc-item {
  border-bottom: 1px solid #ccc !important;
}

.acc-header {
  font-family: 'Rajdhani', sans-serif;
  font-size: 20px;
  font-weight: 600;
  background: none;
  border: none;
  width: 100%;
  padding: 1em 0;
  text-align: left;
  color: #191919;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.acc-header:hover {
  color: var(--atlas);
}

.acc-header .icon {
  font-size: 1.2em;
  transition: transform 0.2s ease;
  color: var(--atlas);
}

.acc-header.active .icon {
  transform: rotate(45deg);
}

.acc-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  font-size: 16px;
  line-height: 1.5em;
  color: #444;
  padding-left: 0.5em;
}
.acc-content p {
  margin: 1em 0;
}
.acc-content.open {
  max-height: 300px;
}


/* TAGS */
.tag {
  font-weight: bold;
  display: inline-block;
  padding: 0.3em;
  border: 0.5px solid #191919;
  margin: 1em 0.6em 1.2em 0;
}

li > .tag {
    margin: 0.6em;
}

.tag.disseminate { background-color: var(--disseminate); }
.tag.plan { background-color: var(--plan); }
.tag.produce { background-color: var(--produce); }
.tag.deposit { background-color: var(--deposit); }
.tag.identify { background-color: var(--identify); }

/* HEADINGS */
h1 {
    font-size: 60px;
    font-weight: 700;
}

h2 {
  margin-top: 2em;
  font-weight: 600;
  font-size: 28px;
}

h3:not(.recommendation-link > h3) {
    margin-top: 2em;
  font-weight: 800;
  font-size: 22px;
  font-family: 'Rajdhani', sans-serif;
  color: var(--atlas);
}

h4 {
  margin-top: 1.5em;
  margin-bottom: 1.2em;
  font-size: 26px;
  color: black;
}

h5 {
    margin-top: 2em;
  font-weight: 600;
  font-size: 20px;
  font-family: 'Rajdhani', sans-serif;
  color: #191919;
}

/* ANCHOR LINKS */
.anchor-link {
  padding: 0 .175rem;
  font-weight: 500;
  color: var(--atlas);
  text-decoration: none;
  opacity: 1;
}

/* IN-DEPTH BLOCK */
div[type="in-depth"] {
  background-color: var(--indepth);
  padding: 2em 2.5em;
  margin-top: 2em;
  margin-bottom: 2em;
}

/* CAROUSEL */
.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}


.recommendation-link::before {
  font-family: 'Material Symbols Sharp';
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 72;
  position: absolute;
  left: -100px;
  bottom: 0;
  font-size: 20em;
  color: #191919;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
  line-height: 1;
}

.recommendation-link.lightbulb::before {
  content: "lightbulb";
}

.recommendation-link.laptop::before {
  content: "laptop";
}

.recommendation-link.share::before {
  content: "share";
}

.recommendation-link.account-tree::before {
  content: "account_tree";
}

.recommendation-link.menu-book::before {
  content: "menu_book";
}

.recommendation-link.code::before {
  content: "code";
}


.recommendation-link::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 100%;
  height: 100%;
  background-color: rgba(213, 175, 75, 0.6);
  z-index: -1;
}

.recommendation-link a {
  color: white !important;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
}

.recommendation-link:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.recommendation-link.active {
  display: block;
}

.recommendation-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  padding: 2em;
  min-height: 500px;
  width: 80%;
}

.recommendation-link {
  position: relative;
  background-color: var(--atlas);
  padding: 2em 2em 3em 2em; /* più spazio in basso per l'icona */
  margin: 1.5em;
  min-width: 300px;
  max-width: 400px; /* evita che il testo si allunghi troppo */
  text-align: left; /* contrasto con icona a sinistra */
  flex: 0 0 100%;
  display: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  z-index: 1;
  overflow: hidden; /* per contenere l'icona di sfondo */
}

.recommendation-link h3 {
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  font-size: 1.6em;
  margin-bottom: 0.5em;
  color: white;
}

.recommendation-link p {
  font-family: Helvetica, sans-serif;
  font-size: 1.2em;
  line-height: 1.5em;
  color: rgba(255, 255, 255, 0.95); /* leggibile sullo sfondo dorato */
  margin-bottom: 1.5em;
  margin-top: 2em;
  z-index: 1;
  max-width: 300px; /* ottimizza leggibilità */
}

.recommendation-link a.carousel-btn-link {
  display: inline-block;
  margin-top: auto; 
  padding: 0.5em 1.2em;
  background-color: #191919;
  color: white !important;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  position: absolute;
  bottom: 2em;
}

.recommendation-link a.carousel-btn-link:hover {
  background-color: black;
  transform: translateY(-2px);
}

.carousel-btn {
  background: none;
  border: none;
  font-size: 2.5em;
  color: white;
  cursor: pointer;
  padding: 0 0.2em;
  transition: color 0.3s ease;
  z-index: 2;
}

.carousel-btn:hover {
  color: var(--atlas);
}

.carousel-btn-link {
  display: inline-block;
  margin-top: auto;
  padding: 0.5em 1.2em;
  background-color: #191919;
  color: white !important;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.carousel-btn-link:hover {
  background-color: black;
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  header {
    min-height: auto; /* let content define the height */
    padding: 2em 1.5em;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .main-title > div {
    position: static; /* remove absolute positioning */
  }

  .main-title.container,
  .carousel-container {
    width: 100% !important;
    max-width: 100%;
    margin: 0;
  }

  .button-container {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    align-items: flex-start;
    width: 100%;
  }
}

/* LOGOS */
.logos {
  background-color: #191919;
  display: flex;
  flex-direction: row;
  padding: 3em 1em;
  justify-content: space-around;
  margin-top: 4em;
}

.logos img {
  max-height: 70px;
}

.logos .line {
  border-left: 2px solid white;
  height: 70px;
  width: 3px;
}

/* CARDS */
.row-cards {
    margin-top: 2em;
}

.res-card {
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 1.5em;
  margin-bottom: 1.5em;
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;

  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* inizia dall'alto */
  align-items: flex-start;     /* allinea a sinistra */

  height: 220px; /* leggermente più grande per icona e testo maggiori */
}

.res-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.res-card .card-icon {
  font-size: 3em;
  margin-bottom: 0.8em;
}

.res-card .card-title {
  font-size: 1.3em;
  font-weight: 700;
  line-height: 1.4;
  color: #191919;
}

/* Active card */
.res-card.active {
  background-color: #191919;
  color: #fff;
}

.res-card.active .card-icon,  .res-card.active .card-title {
  color: #fff;
}

.card-content-box {
  border: 1px solid #ddd;
  padding: 1.5em;
  min-height: 150px;
}

.card-content {
  display: none;
}

.card-content.active {
  display: block;
}

.row-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* images */
figure.image {
  margin: 2em 0;
  text-align: center;
}

figure.image img {
  max-width: 100%;
  border: 1px solid #ddd;
}

.img_caption {
  display: block;
  margin-top: 0.5em;
  font-size: 14px;
  color: #666;
}

strong.accent {
    font-family: 'Rajdhani', sans-serif;
}


/* Recommendation Block */
.recommendation-block {
    margin-bottom: 5em;
}
