/* ! INFO */
/* made with heart by luigipupo.dev */
/* ! ------------------------------------ */

/* FONTS */
@font-face {
  font-family: MavenPro;
  src: url(../fonts/MavenPro-Regular.ttf);
}

@font-face {
  font-family: MavenPro-Medium;
  src: url(../fonts/MavenPro-Medium.ttf);
}

@font-face {
  font-family: MavenPro-SemiBold;
  src: url(../fonts/MavenPro-SemiBold.ttf);
}

@font-face {
  font-family: MavenPro-Bold;
  src: url(../fonts/MavenPro-Bold.ttf);
}

@font-face {
  font-family: MavenPro-ExtraBold;
  src: url(../fonts/MavenPro-ExtraBold.ttf);
}

@font-face {
  font-family: MavenPro-Black;
  src: url(../fonts/MavenPro-Regular.ttf);
}

/* ! ------------------------------------ */

/* ! Reset CSS */
/* ! ------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 20px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent horizontal scrolling on all viewports */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
  margin: 0 !important;
  padding: 0 !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: MavenPro-SemiBold;
  color: #491d46;
  margin: 0;
  padding: 0;
}

p,
ol,
ul,
a {
  font-family: MavenPro;
  margin: 0;
  color: #491d46;
  padding: 0;
  text-decoration: none;
}

img {
  height: auto;
}

/* bs */
.container-fluid {
  padding: 0;
}

form button {
  border: 0;
}

/* ! ------------------------------------ */

/* PALETTE
VIOLA SCURO #2D1F33
VIOLA CHIARO #491D46
GRIGIO BORDI #AAB1B7 OPACITÀ 0.8
*/

/* BASE */
/* ! ------------------------------------ */
/* sizes */

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  font-size: 1rem;
}

/* backgrounds */
.bg-linear {
  background: linear-gradient(
    180deg,
    rgba(223, 202, 87, 1) 25%,
    rgba(223, 198, 87, 0.1) 75%
  );
}

.bg-purple {
  background-color: #491d46 !important;
}

.bg-purple * {
  color: white;
}

.bg-darkPurple {
  background-color: #2d1f33 !important;
}

/* Orario di lavoro styling */
.day-time input[type='time'] {
  border: 1px solid #aab1b7;
  height: 40px;
  padding: 0.5rem;
  border-radius: 5px;
  width: 120px;
  background-color: white;
}

.day-time input[type='time']:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
  opacity: 0.7;
}

.day-time input[type='checkbox'] {
  margin-right: 5px;
}

#work-time-section {
  padding: 20px;
  border-radius: 15px;
  background: #fff;
}

.day-time {
  display: grid;
  grid-template-columns: 95px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 15px;
  margin-bottom: 15px;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.day-time:hover {
  border-color: #491d46;
  box-shadow: 0 2px 4px rgba(73, 29, 70, 0.1);
}

@media (max-width: 992px) {
  .day-time {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .time-slots {
    width: 100%;
  }

  .time-slot {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .time-slot input[type='time'] {
    width: 110px;
  }

  .day-time {
    flex-direction: column;
    align-items: flex-start;
  }

  .day-time label {
    width: 100%;
  }

  .chat-main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #128c7e;
    width: 100%;
  }

  .mobile-view-chat .chat-main-header {
    display: flex !important;
    visibility: visible !important;
  }

  .back-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
  }

  #custom-send-messages {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-height: 60px;
  }

  #custom-messages {
    padding-bottom: 70px;
  }

  .message-input {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 8px;
  }

  #custom-input {
    flex: 1;
    min-height: 40px;
    padding: 8px 40px 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 16px;
  }

  #custom-send {
    position: absolute;
    right: 4px;
    min-width: 32px;
    min-height: 32px;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #128c7e;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
  }
}

@media (max-width: 390px) {
  #custom-send-messages {
    padding: 8px;
  }

  #custom-input {
    font-size: 14px;
    padding-right: 36px;
  }

  #custom-send {
    right: 2px;
    min-width: 28px;
    min-height: 28px;
    width: 28px;
    height: 28px;
  }

  .message-actions {
    gap: 4px;
  }

  .attachment-button {
    width: 32px;
    height: 32px;
  }
}

#work-time-section button[type='submit'] {
  margin-top: 20px;
  padding: 12px 24px;
  background: #491d46;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

#work-time-section button[type='submit']:hover {
  background: #5d2659;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.bg-darkPurple * {
  color: white;
}

.bg-white {
  background-color: white;
}

.text-grey {
  color: rgba(141, 135, 135, 0.8);
}

.text-grey p {
  color: rgba(141, 135, 135, 0.8);
}

.bold {
  font-family: MavenPro-Bold;
}

.semi-bold {
  font-family: MavenPro-SemiBold;
}

.custom-icon {
  width: 16px;
  height: 16px;
}

.custom-icon-double {
  width: 22px;
  height: 22px;
}

img[src*='icon-star.svg'].custom-icon,
img[src*='icon-star.svg'].custom-icon-double {
  opacity: 0.3;
}

img[src*='icon-star-full.svg'].custom-icon,
img[src*='icon-star-full.svg'].custom-icon-double,
img[src*='icon-star-gold.svg'].custom-icon,
img[src*='icon-star-gold.svg'].custom-icon-double,
img[src*='icon-star-dark.svg'].custom-icon,
img[src*='icon-star-dark.svg'].custom-icon-double {
  filter: brightness(0) saturate(100%) invert(45%) sepia(87%) saturate(1116%)
    hue-rotate(334deg) brightness(92%) contrast(95%);
  opacity: 1;
}

.cta > * {
  width: fit-content;
  padding: 0.6rem 1rem;
  border-radius: 10px;

  @media (max-width: 768px) {
    width: auto;
  }
}

.cta-borded-purple,
.cta-purple {
  display: flex;
}

.cta-double > * {
  width: fit-content;
  padding: 0.8rem 2.5rem;
  border-radius: 10px;

  @media (max-width: 768px) {
    width: auto;
  }
}

.cta-borded-purple > *,
.cta-borded > *,
.cta-purple > * {
  display: inline-block;
  width: 100%;
}

.cta-purple > * {
  background-color: #491d46 !important;
  color: white;
  border: 2px solid #491d46;
}

.cta-borded > * {
  border: 2px solid white !important;
  color: white;
}

.cta-borded-purple > * {
  border: 2px solid #491d49 !important;
  color: #491d49;
}

/* forms */
input:not([type='checkbox']),
select {
  border-radius: 10px;
  height: 50px;
  border: 0;
  font-family: MavenPro-SemiBold;
  color: #491d46 !important;
  background-color: white;
  padding: 0.5rem 0.5rem;

  @media (max-width: 768px) {
    font-size: 1.4rem;
    height: 52px;
  }
}

input::placeholder,
select::placeholder {
  color: #8e8e8e !important;
  font-style: italic !important;
}

/* ! ------------------------------------ */
/* ! fine BASE */

/* Custom alert styles */
#filter-message.alert {
  background-color: rgba(217, 97, 72, 0.1);
  border-color: rgb(217, 97, 72);
  color: rgb(217, 97, 72);
  font-weight: 500;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

#filter-message {
  background-color: rgba(217, 97, 72, 0.1);
  border-color: rgb(217, 97, 72);
  color: rgb(217, 97, 72);
  font-weight: 500;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 15px;
}

#filter-message.alert-info {
  background-color: rgba(217, 97, 72, 0.1);
  border-color: rgb(217, 97, 72);
  color: rgb(217, 97, 72);
}

#filter-message.alert-warning {
  background-color: rgba(217, 97, 72, 0.15);
  border-color: rgb(217, 97, 72);
  color: rgb(217, 97, 72);
  font-weight: 600;
}

/* NAVBAR  */
.navbar a {
  font-size: 1.6rem;
  font-family: MavenPro-SemiBold;
}

.navbar .dropdown-item {
  font-size: 1rem;
}

.navbar .nav-link h4 {
  font-size: 1.4rem !important;
}

/* Mobile navbar improvements */
@media (max-width: 992px) {
  .navbar {
    min-height: 85px !important;
    padding: 10px 0 !important;
    position: relative !important;
    overflow: visible !important;
  }

  .navbar .container-fluid {
    padding: 0 20px !important;
    align-items: center !important;
    display: flex !important;
    justify-content: space-between !important;
    position: relative !important;
    min-height: 70px !important;
  }

  .navbar a {
    font-size: 1.4rem;
    padding: 12px 15px !important;
    border-radius: 8px !important;
    margin: 5px 0 !important;
    transition: all 0.2s ease !important;
  }

  .navbar .nav-link h4 {
    font-size: 1rem !important;
    margin: 0 !important;
    font-weight: 600 !important;
  }

  .navbar .nav-link {
    display: block !important;
    text-align: center !important;
  }

  .navbar .nav-link:hover,
  .navbar .nav-link:focus {
    background-color: rgba(73, 29, 70, 0.1) !important;
    color: #491d46 !important;
  }

  .navbar .nav-link.active {
    background-color: rgba(73, 29, 70, 0.15) !important;
    color: #491d46 !important;
  }

  .navbar .navbar-toggler,
  .navbar-toggler {
    padding: 8px 12px !important;
    font-size: 1.1rem !important;
    border: 2px solid #491d46 !important;
    margin: -12px 0 0 0 !important;
    position: relative !important;
    min-height: 40px !important;
    min-width: 40px !important;
    top: -7px !important;
  }

  .navbar-collapse {
    position: absolute !important;
    top: 0 !important;
    left: 14% !important;
    right: 14% !important;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 15px !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    z-index: 1020 !important;
    width: auto !important;
    border: 1px solid #e0e0e0 !important;
  }
}

/* Extra mobile improvements for very small screens */
@media (max-width: 768px) {
  .navbar .navbar-toggler,
  .navbar-toggler {
    padding: 10px 14px !important;
    font-size: 1.2rem !important;
    min-height: 48px !important;
    min-width: 48px !important;
    margin: -15px 0 0 0 !important;
    position: relative !important;
    flex-shrink: 0 !important;
    top: -9px !important;
  }

  .navbar a {
    font-size: 1.4rem;
    padding: 12px 15px !important;
    border-radius: 8px !important;
    margin: 5px 0 !important;
    transition: all 0.2s ease !important;
  }

  .navbar .nav-link h4 {
    font-size: 1.4rem !important;
    margin: 0 !important;
    font-weight: 600 !important;
  }

  .navbar .nav-link {
    display: block !important;
    text-align: center !important;
  }

  .navbar .nav-link:hover,
  .navbar .nav-link:focus {
    background-color: rgba(73, 29, 70, 0.1) !important;
    color: #491d46 !important;
  }

  .navbar .nav-link.active {
    background-color: rgba(73, 29, 70, 0.15) !important;
    color: #491d46 !important;
  }

  /* Fix profileRoute styling */
  #profileRoute {
    font-size: 1.4rem !important;
    padding: 12px 15px !important;
    border-radius: 8px !important;
    margin: 5px 0 !important;
    transition: all 0.2s ease !important;
    display: block !important;
    text-align: center !important;
  }

  #profileRoute h4 {
    font-size: 1.4rem !important;
    margin: 0 !important;
    font-weight: 600 !important;
  }

  #profileRoute:hover,
  #profileRoute:focus {
    background-color: rgba(73, 29, 70, 0.1) !important;
    color: #491d46 !important;
  }

  /* Fix Accedi dropdown styling */
  .navbar .nav-item .nav-link span {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    color: #491d46 !important;
  }
}

.custom-nav {
  height: 72px;
  border-top: solid 2px white;
  position: relative;
  justify-content: space-between;
  margin-top: 4px;

  @media (max-width: 1600px) {
    margin-top: 16px;
  }
  @media (max-width: 768px) {
    margin-top: 22px;
  }
}

.custom-nav .nav-logo {
  position: absolute;
  width: auto;
  height: 136px;
  bottom: 0;
}

.navbar-collapse {
  z-index: 1012;
  isolation: isolate;
}

/* Ensure navbar is always above hero image */
.navbar,
.custom-nav {
  z-index: 1010 !important;
  position: relative;
}

/* Fix navbar positioning on home page */
.home-page .navbar,
.home-page .custom-nav {
  position: relative !important;
  z-index: 1010 !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.1rem;
}

.nav-logo {
  z-index: 1015;
}

body.navbar-expanded .mobile-gear-container {
  opacity: 0;
  transform: translateY(50px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ! fine NAVBAR */
/* ! ------------------------------------ */

/* HOME SECTION */
.home,
.login,
.resetPassword {
  height: 100vh;
}

.sign-up {
  min-height: 100vh;
}

#hero-img {
  width: 100%;
  height: auto;
  cursor: pointer;
  display: block;
}

area {
  cursor: pointer;
}

/* Custom JavaScript tooltip styling - Enhanced for stability */
.image-map-tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  z-index: 99999;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.image-map-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced hover effect for image map areas */
area:hover {
  filter: brightness(1.1);
}

/* Ensure search form stays on top */
.hero-searchForm {
  position: relative;
  z-index: 20;
}

.hero .hero-positioning {
  overflow-x: hidden;
}

.hero {
  flex: 1;
  overflow: visible;
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
}

.hero .hero-positioning {
  position: relative;
  text-align: center;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
}

.hero .hero-searchForm {
  width: 38vw;
  position: absolute;
  top: 10%;
  left: 50%;
  text-align: initial;

  @media (max-width: 992px) {
    width: 100%;
  }
}

.hero .hero-searchForm input::placeholder {
  color: #491d46;
  font-family: MavenPro-SemiBold;
}

.hero .hero-searchForm input {
  color: #491d46;
  font-family: MavenPro-SemiBold;
  padding-left: 2.5rem;
}

#search-categoria {
  width: 100%;
}

#search-location {
  width: 75%;
}

@media (max-width: 992px) {
  .hero .hero-searchForm {
    max-width: 90% !important;
  }

  .hero .hero-searchForm #search-categoria,
  .hero .hero-searchForm #search-location {
    width: 100% !important;
  }
}

.hero .input-positioning {
  position: relative;
  overflow: visible;
  z-index: 50;
}

.hero .input-positioning img {
  position: absolute;
  bottom: 12px;
  left: 12px;
  top: 18px;

  @media (max-width: 768px) {
    bottom: 18px;
    left: 18px;
  }
}

.hero button {
  background-color: transparent;
}

/* ! fine HOME SECTION */
/* ! ------------------------------------ */

.description .card {
  width: 50vw;
}

/* ! RICERCA SERVIZI*/
/* ! ------------------------------------ */
.ricerca_servizi-main {
  min-height: 100vh;
  overflow: visible;
}

#ricerca_servizi {
  background: linear-gradient(
    0,
    rgba(223, 202, 87, 1) 25%,
    rgba(223, 198, 87, 0.1) 75%
  );
  border-radius: 10px;
  -webkit-box-shadow: 5px 5px 10px 0px #491d46;
  -moz-box-shadow: 5px 5px 10px 0px #491d46;
  -o-box-shadow: 5px 5px 10px 0px #491d46;
  box-shadow: 5px 5px 10px 0px #491d46;
}

.slider {
  width: 30%;
  height: 5px;
  background: #491d46;
  outline: none;
  opacity: 0.7;
  -webkit-transition: 0.2s;
  transition: opacity 0.2s;

  @media (max-width: 992px) {
    width: 38%;
  }
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #491d46;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #491d46;
  cursor: pointer;
}

#search-suggestions {
  position: fixed;
  z-index: 9999;
  background-color: #ffffff;
  color: #491d46;
  border: 1px solid #cccccc;
  list-style: none;
  padding: 0;
  margin: 0;
  width: auto;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  max-height: 150px;
  overflow-y: auto;
  overflow-x: hidden;
  isolation: isolate;
  contain: layout;
  display: none;
}

#search-suggestions:not(:empty) {
  display: block;
}

.feed-columns #search-suggestions {
  border: 0;
}

.search-suggestion p {
  color: #491d46;
}

#search-suggestions li {
  padding: 12px 15px;
  cursor: pointer;
  color: #491d46;
  border-bottom: 1px solid #f0f0f0;
  background-color: white;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

#search-suggestions li:first-child {
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
}

#search-suggestions li:last-child {
  border-bottom: none;
  border-bottom-left-radius: 9px;
  border-bottom-right-radius: 9px;
}

#search-suggestions li:hover {
  background-color: #f0f0f0;
}

/* ! fine RICERCA SERVIZI*/
/* ! ------------------------------------ */

/* ! AREA SOCIAL */
/* ! ------------------------------------ */
/*Crea Post*/
#form-crea_post {
  background-color: white;
  border-radius: 10px;
}

.crea_post-image {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(170, 177, 183, 0.8);
  background-color: white;
}

.crea_post-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* icona seleziona immagine */
.file-input-label {
  display: inline-block;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}

.file-input {
  display: none;
}

.social-info-image {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(170, 177, 183, 0.8);
}

.social-info-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* ! ------------------------------------ */

/* SIDE-BOX */
.area-social .side-box {
  border-radius: 10px;
  overflow: hidden;
}

.area-social .search-box-field {
  position: relative;
}

.area-social .search-box-field input {
  width: 100%;
  height: 40px;
  padding-left: 40px;
}

.area-social .search-box-field img {
  position: absolute;
  left: 15px;
  top: 13px;
}

/* cambio icona collapse */
.frequently-searched a[aria-expanded='true'] .icon-closed {
  display: none;
}

.frequently-searched a[aria-expanded='false'] .icon-opened {
  display: none;
}

/* profile stats */
.profile-stats .crea_post-image {
  margin-top: -40px;
  width: 5rem;
  height: 5rem;
}

/* number-stats */
.number-stats div {
  border-bottom: 1px solid #aab1b7;
}

.number-stats div:nth-child(1) {
  border-right: 1px solid #aab1b7;
}

.number-stats div:nth-child(3) {
  border-left: 1px solid #aab1b7;
}

.number-stats .bold {
  font-size: 1.2rem;
}

/* ! fine SIDE BOX */
/* ! ------------------------------------ */

/* feed-box */
.area-social .feed-box {
  border-radius: 10px;
}

#comment-input {
  height: 40px;
  padding: 0.5rem;
}

/* POST */
.area-social .post {
  border-bottom: 1px solid rgba(170, 177, 183, 0.8);
}

.post-header p {
  font-size: 1.2rem;
}

.post-image {
  width: 100%;
  text-align: center;
  margin-bottom: 30px;
  overflow: visible;
  height: auto;
  padding: 15px 0;
  background: #fff;
}

.post-image img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* Carousel styling */
.carousel {
  margin-bottom: 30px;
  position: relative;
  background: #fff;
}

.carousel-inner {
  position: relative;
  width: 100%;
}

.carousel-item {
  position: relative;
  display: none;
  float: left;
  width: 100%;
  margin-right: -100%;
  backface-visibility: hidden;
  transition: transform 0.6s ease-in-out;
  text-align: center;
  background: #fff;
  padding: 30px 0;
}

.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
  display: block;
}

.carousel-item img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* Ensure the active item has no restrictions */
.carousel-item.active {
  overflow: visible;
  height: auto;
}

/* Profilo-div carousel */
.profilo-div .carousel-inner {
  position: relative;
  width: 100%;
}

.profilo-div .carousel-item {
  position: relative;
  background: #fff;
  text-align: center;
  padding: 30px 0;
}

.profilo-div .carousel-inner img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* Media queries för responsivitet */
@media (max-width: 992px) {
  .carousel-item img,
  .profilo-div .carousel-inner img,
  .post-image img {
    max-height: 60vh;
  }
}

@media (max-width: 768px) {
  .carousel-item img,
  .profilo-div .carousel-inner img,
  .post-image img {
    max-height: 40vh;
  }
}

/* fine POST */
/* ! fine AREA SOCIAL */
/* ! ------------------------------------ */

/* ! RISULTATI RICERCA */
/* ! ------------------------------------ */
.risultati-ricerca {
  border-radius: 10px;
  width: 100%;
}

.risultato-ricerca {
  width: 100%;
  height: 400px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  border-bottom: 1px solid rgba(141, 135, 135, 0.8);
  padding: 0.5rem 0;
}

.risultato-ricerca > * {
  height: 100%;
}

.risultato-image-container {
  padding: 1rem;
  overflow: hidden;
  border-radius: 10px;
  background-color: #491d46;
  width: 300px;
  height: 300px;
}

.risultato-image-container a {
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.risultato-image-container img {
  width: auto;
  height: 100%;
  object-position: center;
  object-fit: cover;
}

.risultato-text-container {
  width: 70%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 10px;
}

.risultato-copyAzienda {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.risultato-button-container {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.risultato-ricerca .cta > *,
.profilo-div .cta > * {
  padding: 0.5rem 1rem;
}

.risultato-ricerca .cta-double > *,
.profilo-div .cta-double > * {
  padding: 0.5rem 2rem;
}

/* risultato ricerca singlo */
/* ! fine RISULTATI RICERCA */
/* ! ------------------------------------ */

/* ! PROFILO */
/* ! ------------------------------------ */
.profilo-div {
  border-radius: 10px;
  overflow: hidden;
}

.azienda-indirizzo {
  text-overflow: clip;
  overflow: hidden;
}

.profilo-image-container {
  width: 300px;
  height: 300px;
  overflow: hidden;
  display: flex;
  align-content: center;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(170, 177, 183, 0.8);
}

.profilo-image-container img {
  width: 100%;
  height: auto;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.profilo-copy-container {
  width: 60%;
}

.profilo-copy-container p {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 10;
  line-clamp: 10;
  -webkit-box-orient: vertical;
}

.profilo-requisiti .custom-icon-double {
  width: 22px;
  height: 22px;
}

.profilo-recensioni p {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* Carousel and post image shared styles */
.carousel-item img,
.profilo-div .carousel-inner img,
.post-image img {
  width: 100%; /* Make ALL images use full width */
  height: auto;
  max-height: 80vh;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* Post image container */
.post-image {
  width: 100%;
  text-align: center;
  margin-bottom: 30px;
  overflow: visible;
  height: auto;
  padding: 15px 0;
  background: #fff;
}

/* Carousel styling */
.carousel {
  margin-bottom: 30px;
  position: relative;
  background: #fff;
}

.carousel-inner {
  position: relative;
  width: 100%;
}

.carousel-item {
  position: relative;
  display: none;
  float: left;
  width: 100%;
  margin-right: -100%;
  backface-visibility: hidden;
  transition: transform 0.6s ease-in-out;
  text-align: center;
  background: #fff;
  padding: 30px 0;
}

.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
  display: block;
}

/* Ensure the active item has no restrictions */
.carousel-item.active {
  overflow: visible;
  height: auto;
}

/* Profilo-div carousel */
.profilo-div .carousel-inner {
  position: relative;
  width: 100%;
}

.profilo-div .carousel-item {
  position: relative;
  background: #fff;
  text-align: center;
  padding: 30px 0;
}

/* Media queries för responsivitet */
@media (max-width: 992px) {
  .carousel-item img,
  .profilo-div .carousel-inner img,
  .post-image img {
    max-height: 60vh;
  }
}

@media (max-width: 768px) {
  .carousel-item img,
  .profilo-div .carousel-inner img,
  .post-image img {
    max-height: 40vh;
  }
}

/* --- Carousel caption --- */
.carousel-caption {
  position: relative;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 4px;
}

.carousel-caption p {
  margin: 0;
  color: #491d46;
  font-size: 14px;
  line-height: 1.4;
}

.gallery-description {
  padding: 10px;
  margin: 5px auto;
  max-width: 95%;
  text-align: center;
  color: #666;
  font-size: 13px;
  line-height: 1.4;
}

/* --- Media Queries --- */
@media (min-width: 768px) {
  .carousel-item {
    height: 300px;
  }
  .carousel-control-prev,
  .carousel-control-next {
    width: 40px;
    height: 40px;
  }
  .gallery-description {
    max-width: 90%;
    font-size: 14px;
    padding: 12px;
  }
}

@media (min-width: 992px) {
  .carousel-item {
    height: 350px;
  }
  .gallery-description {
    max-width: 80%;
    font-size: 15px;
  }
}

@media (min-width: 992px) {
  .carousel-item {
    height: 400px;
  }
  .gallery-description {
    max-width: 70%;
    font-size: 16px;
  }
}

@media (hover: none) and (pointer: coarse) {
  .carousel-control-prev,
  .carousel-control-next {
    padding: 15px;
    opacity: 0.7;
  }
  .carousel-item {
    touch-action: pan-y pinch-zoom;
  }
}

.sudinoi-copy {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  line-clamp: 8;
  -webkit-box-orient: vertical;
}

/* ! fine PROFILO */
/* ! ------------------------------------ */

.resetPassword .card {
  transition: all 1s ease;
}

.animated {
  font-size: 24px;
}

main {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

/* Ensure main element doesn't restrict hero width */
main.home {
  padding: 0;
  margin: 0;
  width: 100%;
  overflow-x: hidden;
}

main.home .hero {
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 0 !important;
}

main.home .hero .hero-positioning {
  width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: 0 !important;
}

main.home .hero #hero-img {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.modal-form-control {
  height: 30px;
  width: 10%;
  border: 1px solid #aab1b7;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  border-radius: 0.375rem;
  padding: 0 0.5rem;
}

.update-profilo-div textarea,
.update-profilo-div input[type='text'],
.update-profilo-div input[type='email'] {
  width: 100%;
  border: 1px solid #aab1b7;
  padding: 1rem;
  border-radius: 10px;
}

.update-profilo-div input[type='text'],
.update-profilo-div input[type='email'] {
  height: 50px;
}

.update-profilo-div .data-aboutUsPhotos img,
.update-profilo-div .data-specializationGallery img {
  width: 150px;
  height: 150px;
  margin: 0 1rem;
  object-fit: contain;
}

.update-profilo-div .no-photo {
  max-width: 5rem;
}

/* LOGIN/SIGNUP */
#form-login input,
#form-signup input,
#form-signup select,
#form-reset input,
#form-securityQuestion input,
#form-setPassword input {
  border: 1px solid #aab1b7;
}

#form-signup textarea {
  border: 1px solid #aab1b7;
  padding: 1rem;
  border-radius: 10px;
}

#form-signup select {
  padding: 0.8rem;
}

#form-signup label {
  color: #491d46;
  font-family: MavenPro-SemiBold;
  margin-bottom: 0.3rem;
}

/* FOOTER */
.footer-image {
  margin-bottom: -10px;
  max-width: 100%;
}

#map {
  height: 400px;
  width: 100%;
}

.dashboard-main .container {
  min-height: 60vh !important;
}

.dashboard-main .card {
  min-width: 80vw !important;
}

#favouriteProfessionals .intro {
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* CHAT */

.div-chat {
  border-radius: 8px;
  height: 75vh !important;
}

.colonna-anteprime-messaggi {
  border-right: 1px solid #aab1b7;
}

#anteprime-messaggi {
  max-height: 60vh;
  overflow-y: auto;
}

.preview-image {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(170, 177, 183, 0.8);
  background-color: white;
  margin: 1rem;
}

.preview-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.div-chat .active > div {
  background-color: #491d46;

  border-radius: 8px;
}

.div-chat .active h5 {
  color: white;
}

#messages {
  margin-left: 2rem;
  margin-bottom: 10px;
  height: 60vh;
  overflow-y: scroll;
}

#messages p {
  color: #491d46;
}

#chatDiv input {
  padding-left: 1rem;
  margin-left: 2rem;
  border: 1px solid #aab1b7;
  width: 80%;
  height: 40px;
  border-radius: 8px;
}

#chatDiv button {
  background-color: white;
}

#chatDiv .cta > * {
  padding: 0.5rem 2rem;
  margin-left: 3rem;
}

#chatDiv {
  height: 100%;
}

#sendMessages {
  width: 100%;
}

#sendMessages input {
  max-width: 70%;
}

/* ! ------------------------------------ */
/* ! fine CHAT */

/* CONTAINER */
.container {
  max-width: 98%;
}

/* Laptop */
@media (max-width: 1600px) {
  html {
    font-size: 16px;
  }

  .container {
    max-width: 98%;
  }
}

/* small Laptop */
@media (max-width: 1200px) {
  .container {
    max-width: 98%;
  }
}

/* large Tablet */
@media (max-width: 992px) {
  .description .card {
    width: 80vw;
  }

  .cta-purple > * {
    padding: 0.6rem 1rem;
  }

  /* home */
  #hero-img {
    content: url(../images/logo-mobile.png);
  }

  .hero .hero-positioning,
  .hero .hero-searchForm {
    position: unset;
  }
  .hero .hero-positioning {
    margin-bottom: 50px;
  }

  #search-location {
    width: 100%;
  }

  /* navbar */
  .custom-nav .nav-logo {
    left: 0;
    bottom: 13px;
  }

  .custom-nav {
    justify-content: end;
  }

  /* posts */
  .post-header p {
    font-size: 1.1rem;
  }

  /* RISULTATI RICERCA */
  .filtri {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .risultato-image-container {
    width: 200px;
    height: 200px;
  }

  .risultato-ricerca {
    height: 300px;
  }

  .risultato-copyAzienda {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }

  .risultato-ricerca .cta-double > *,
  .div .cta-double > * {
    white-space: nowrap;
  }

  /* fine RISULTATI RICERCA */

  /* CHAT */
  .div-chat {
    height: unset !important;
  }

  #chatDiv input {
    width: 55%;
  }
}

@media (max-width: 992px) {
  .day-time {
    grid-template-columns: 1fr;
    gap: 15px;
    flex-direction: column;
    align-items: flex-start;
  }

  .day-time label {
    width: 100%;
  }

  .time-slots {
    width: 100%;
  }

  .time-slot {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .time-slot input[type='time'] {
    width: 110px;
  }

  .chat-main-header {
    display: flex;
    position: sticky;
    top: 0;
    background-color: #128c7e;
    color: white;
    padding: 15px 10px;
    height: 60px;
    z-index: 9999;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  }

  .back-button {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px;
    margin-right: 10px;
  }

  .back-button svg {
    width: 24px;
    height: 24px;
    fill: white;
  }

  .mobile-view-chat .chat-main-header {
    visibility: visible;
  }

  .mobile-view-chat .chat-sidebar {
    transform: translateX(-100%);
  }

  .mobile-view-chat .chat-main {
    transform: translateX(0);
  }
}

/* small Tablet */
@media (max-width: 992px) {
  #anteprime-messaggi {
    max-height: 250px;
    overflow-y: auto;
  }

  .mdModal .cta > * {
    padding: 9px 12px !important;
  }

  .mdModal {
    justify-content: flex-start !important;
    flex-direction: column !important;
  }
}

/* smartphone */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  /* RISULTATI RICERCA Mobile Adjustments */
  .risultato-ricerca {
    flex-direction: column; /* Stack image and text vertically */
    height: auto; /* Allow height to adjust */
    padding-bottom: 1rem; /* Add spacing at the bottom */
  }

  .risultato-image-container {
    width: 80%; /* Make image container take most width */
    max-width: 250px; /* But not excessively large */
    height: auto; /* Let height adjust */
    margin: 0 auto 1rem auto; /* Center horizontally and add bottom margin */
    padding: 0.5rem; /* Reduce padding slightly */
  }

  .risultato-image-container img {
    max-height: 250px; /* Limit image height */
    width: 100%; /* Ensure image fills container width */
    height: auto;
    object-fit: cover; /* Cover might look better than contain */
  }

  .risultato-text-container {
    width: 100%; /* Text takes full width */
    text-align: center; /* Center align text content */
    padding: 0 0.5rem; /* Adjust padding */
  }

  .risultato-button-container {
    flex-direction: column; /* Stack buttons vertically */
    gap: 0.5rem; /* Add gap between buttons */
    align-items: stretch; /* Make buttons take full width */
  }

  .risultato-button-container .cta,
  .risultato-button-container .cta-double,
  .risultato-button-container .cta-borded-purple {
    margin: 0 !important; /* Remove horizontal margins */
    width: 100%;
  }
  /* END RISULTATI RICERCA Mobile Adjustments */

  .filtri {
    padding: 1rem !important;
    margin-bottom: 1rem;
    background-color: #491d46;
  }

  .custom-input,
  .custom-select,
  .custom-checkbox,
  .custom-range {
    height: 45px;
  }

  .custom-range {
    position: relative;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    height: 45px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    transition: all 0.2s ease;
  }

  .custom-range:hover {
    border-color: #491d46;
  }

  .custom-range input[type='range'] {
    flex: 1;
    margin: 0 10px;
    accent-color: #491d46;
  }

  /* PROFILO */
  .profilo-image-container {
    width: 100%;
    height: 300px;
  }

  .profilo-copy-container {
    width: 100%;
  }

  .risultato-text-container {
    width: 100%;
    margin-top: 10px;
  }

  .risultato-button-container {
    display: block;
  }

  .mdModal .cta > *,
  .mdModal p {
    padding: 5px 10px !important;
  }

  .md-btn {
    padding: 0 !important;
  }

  .mdModal .cta > * {
    padding: 5px 7px !important;
  }

  .mdModal {
    justify-content: flex-start !important;
  }

  .mdModal .me-2 {
    margin: 0 !important;
  }

  .mdModal a.cta {
    padding: 5px 2px !important;
  }

  .custom-input input,
  .custom-select select {
    font-size: 1rem;
  }
}

.tag-container .tag-input ul {
  padding-top: 2px;
  border-radius: 5px;
}

.tag-container .tag-input li {
  display: inline-block;
  margin: 2px;
  background-color: #f2f2f2;
  border: 1px solid #e3e1e1;
  border-radius: 5px;
  padding: 5px 10px;
}

.tag-container .tag-input li i {
  cursor: pointer;
  margin-left: 8px;
}

.tag-container .btn-hover:focus,
.btn-hover:hover {
  background-color: #2c52ed;
}

.tag-container .form-control:focus {
  border: 2px solid #000000 !important;

  box-shadow: none !important;
}

.tag-container .tag-input input {
  border-radius: 10px !important;
}

@media screen and (max-width: 354px) {
  .mdModal .mx-2 {
    margin-left: 3px !important;
    margin-right: 3px !important;
  }
}

.mdModal .cta p {
  width: 385px;
  height: 60px;
}

@media (max-width: 425px) {
  .mdModal .cta {
    width: calc(100% - 20px);
    padding: 0 10px;
  }
  .mdModal .cta p {
    width: 100% !important;
    height: 60px !important;
  }
}

.photo-container {
  position: relative;
  margin-bottom: 60px;
}

.photo-container label {
  cursor: pointer;
  position: relative;
}

.photo-container .update-photo-input {
  display: none;
}

.photo-container .photo-actions {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 100;
}

.photo-container p {
  width: 80%;
  text-align: center;
  bottom: -35px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  border: 2px solid black;
  border-radius: 10px;
  height: auto;
  position: absolute;
  padding: 5px;
}

#unread-count-badge {
  display: inline;
  width: initial;
  font-size: 0.75rem;
  padding: 0.5em 0.7em;
  transform: translate(-50%, -50%);
  color: white;
  border: unset !important;
}

#footer {
  margin-top: 110px;

  @media (max-width: 1600px) {
    margin-top: 88px;
  }
  @media (max-width: 768px) {
    padding: 0 !important;
  }
  @media (max-width: 460px) {
    margin-top: 77px !important;
  }
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #4b0082;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  margin: 0;
}

.like-button,
.dislike-button {
  cursor: pointer;
  padding: 5px;
  border-radius: 4px;
  transition: all 0.2s;
}

.like-button:hover,
.dislike-button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.like-button.liked img {
  filter: invert(45%) sepia(90%) saturate(2000%) hue-rotate(190deg);
}

.dislike-button.disliked img {
  filter: invert(15%) sepia(90%) saturate(2000%) hue-rotate(350deg);
}

.post-comments {
  max-height: 300px;
  overflow-y: auto;
  padding: 10px;
  border-top: 1px solid #eee;
}

.comment {
  padding: 8px;
  border-radius: 8px;
  background-color: #f8f9fa;
  margin-bottom: 8px;
}

.comment:last-child {
  margin-bottom: 0;
}

.deleteModal {
  color: #dc3545;
  cursor: pointer;
  margin-left: 8px;
}

.deleteModal:hover {
  color: #c82333;
}

.comments-section {
  background: #ffffff;
  border: 1px solid #e4e4e4;
  border-radius: 8px;
  padding: 16px;
  margin-top: 16px;
}

.comment-form {
  background: #f8f9fa;
  padding: 12px;
  border-radius: 8px;
}

.comment-input-wrapper input {
  border: 1px solid #e4e4e4;
  padding: 8px 16px;
  font-size: 14px;
}

.comment-input-wrapper input:focus {
  border-color: #6c757d;
  box-shadow: none;
}

.btn-secondary {
  background-color: #6c757d;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: #5a6268;
  transform: translateY(-1px);
}

.comment-bubble {
  background: #f8f9fa;
  border-radius: 8px;
  font-size: 14px;
  position: relative;
}

.comment-header {
  position: relative;
}

.delete-comment-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  opacity: 0;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.trash-icon {
  width: 16px;
  height: 16px;
  color: #dc3545;
  transition: all 0.2s ease;
}

.comment-item:hover .delete-comment-btn {
  opacity: 0.7;
}

.delete-comment-btn:hover {
  opacity: 1 !important;
}

.delete-comment-btn:hover .trash-icon {
  color: #dc3545;
  transform: scale(1.1);
}

.comment-bubble:hover .delete-comment-btn {
  color: #dc3545;
}

.own-comment .comment-bubble {
  background: #e9ecef;
}

.comment-avatar {
  width: 36px;
  height: 36px;
}

.comment-actions button {
  font-size: 13px;
  color: #dc3545;
}

.comment-actions button:hover {
  color: #c82333;
  text-decoration: none;
}

.btn-secondary .custom-icon {
  opacity: 1;
}

.custom-unread-count {
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 0.8em;
  margin-left: 5px;
  position: absolute;
  right: 45px;
  top: 50%;
  transform: translateY(-50%);
}

.custom-preview-time {
  font-size: 0.8em;
  color: #999;
  margin-right: 40px;
}

.custom-checkbox {
  border: 1px solid #e0e0e0;
  transition: all 0.2s ease;
}

.custom-checkbox:hover {
  border-color: #491d46;
  cursor: pointer;
}

.custom-checkbox input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: #491d46;
}

.custom-checkbox label {
  cursor: pointer;
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.custom-submit-button {
  height: 50px;
  background: #491d46;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.custom-submit-button:hover {
  background: #5d2659;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.custom-submit-button span {
  font-size: 1.1rem;
}

.custom-submit-button img {
  width: 20px;
  height: 20px;
  margin-left: 8px;
}

.custom-input,
.custom-select {
  position: relative;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  transition: all 0.2s ease;
}

.custom-input:hover,
.custom-select:hover {
  border-color: #491d46;
}

.custom-input input,
.custom-select select {
  height: 50px;
  border-radius: 10px;
  border: none;
  background: transparent;
  width: 100%;
  padding: 0 15px 0 45px;
  transition: all 0.2s ease;
}

.custom-select select {
  padding: 0 45px 0 15px;
  appearance: none;
}

.custom-input input:focus,
.custom-select select:focus {
  outline: none;
  box-shadow: none;
}

.custom-input:focus-within,
.custom-select:focus-within {
  border-color: #491d46;
  box-shadow: 0 0 0 2px rgba(73, 29, 70, 0.2);
}

.custom-input img,
.custom-select img {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
}

.custom-input img {
  left: 15px;
}

.custom-select img {
  right: 15px;
  pointer-events: none;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 10px;
  padding: 0 20px;
  border: 1px solid rgba(170, 177, 183, 0.8);
}

.custom-checkbox label {
  display: flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
}

.custom-checkbox .custom-icon {
  width: 20px;
  height: 20px;
}

.filtri {
  background-color: #491d46;
  border-radius: 15px;
  padding: 15px;
  margin-bottom: 20px;
}

.custom-input input:focus,
.custom-select select:focus {
  border-color: #491d46;
  outline: none;
  box-shadow: 0 0 0 2px rgba(73, 29, 70, 0.2);
}

.custom-range input[type='range'] {
  width: 100%;
  max-width: 200px;
}

@media (max-width: 992px) {
  .filtri {
    padding: 10px;
  }

  .custom-input,
  .custom-select,
  .custom-range {
    margin-bottom: 10px;
  }
}

.risultati_ricerca-main .container {
  padding-top: 2rem;
}

@media (min-width: 992px) {
  .risultati_ricerca-main .container {
    padding-top: 3rem;
  }
}

@media (max-width: 768px) {
  .filtri {
    padding: 1rem !important;
    margin-bottom: 1rem;
    background-color: #491d46;
  }

  .custom-input,
  .custom-select,
  .custom-checkbox,
  .custom-range {
    height: 45px;
  }

  .custom-range {
    position: relative;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    height: 45px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    transition: all 0.2s ease;
  }

  .custom-range:hover {
    border-color: #491d46;
  }

  .custom-range input[type='range'] {
    flex: 1;
    margin: 0 10px;
    accent-color: #491d46;
  }

  .custom-checkbox {
    height: 45px;
    display: flex;
    justify-content: center;
  }

  .custom-input img,
  .custom-select img {
    width: 16px;
    height: 16px;
    left: 10px;
  }

  .custom-select img {
    left: auto;
    right: 10px;
  }

  #distance,
  .custom-checkbox label {
    font-size: 0.9rem;
  }
}

.service-type-selection {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
}

.radio-container {
  display: flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  border: 2px solid #491d46;
}

.radio-container:hover {
  background: #f0f0f0;
}

.radio-container input[type='radio'] {
  margin-right: 10px;
  accent-color: #491d46;
  width: 18px;
  height: 18px;
}

.time-slots {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.time-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 8px;

  @media (max-width: 768px) {
    display: inline-block;
    width: 100%;
  }
}

.time-label {
  min-width: 90px;
  color: #491d46;
  font-weight: 600;
}

.time-slot input[type='time'] {
  padding: 8px 12px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  width: 130px;
  color: #491d46;
  font-size: 16px;
  font-family: 'MavenPro-Regular', sans-serif;
  appearance: none;
  background: #fff
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23491d46" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/></svg>')
    no-repeat right 8px center;
  background-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.time-slot input[type='time']:focus {
  outline: none;
  border-color: #491d46;
  box-shadow: 0 0 0 3px rgba(73, 29, 70, 0.1);
}

.time-slot input[type='time']:disabled {
  background-color: #f8f9fa;
  border-color: #e0e0e0;
  cursor: not-allowed;
  opacity: 0.7;
}

.time-slot input[type='time']::-webkit-calendar-picker-indicator {
  display: none;
}

.time-slot input[type='time']::-webkit-datetime-edit {
  padding: 0;
}

.time-slot input[type='time']::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}

.time-slot input[type='time']::-webkit-datetime-edit-hour-field,
.time-slot input[type='time']::-webkit-datetime-edit-minute-field {
  padding: 0 4px;
  border-radius: 2px;
}

.time-slot input[type='time']::-webkit-datetime-edit-hour-field:focus,
.time-slot input[type='time']::-webkit-datetime-edit-minute-field:focus {
  background-color: #491d46;
  color: white;
}

.time-picker-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  &.position-top {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 5px;
  }
}

.day-schedule {
  padding: 15px;
  border-radius: 8px;
  background: #f8f9fa;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.day-schedule.active {
  border: 2px solid #491d46;
}

.day-schedule.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #491d46;
}

.day-schedule h5 {
  color: #491d46;
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 1rem;
  text-align: center;
}

.time-block {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 8px;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.time-block i {
  width: 20px;
  text-align: center;
}

.time-block.h24 {
  background: #e8f5e9;
  color: #2e7d32;
}

.time-block.continued {
  background: #e3f2fd;
  color: #1976d2;
}

.time-block.closed {
  background: #ffebee;
  color: #c62828;
}

.time-slots-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fullscreen-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  cursor: pointer;
}

.fullscreen-modal img {
  max-width: 90%;
  max-height: 90vh;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

.gallery-section {
  margin-bottom: 30px;
  width: 100%;
  position: relative;
}

.post-name.bold {
  cursor: pointer;
  transition: all 0.2s ease;
}

.post-name.bold:hover {
  text-decoration: underline;
  color: #491d46;
}

.filtri .custom-input,
.filtri .custom-select {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: white;
  transition: border-color 0.2s ease;
}

.filtri .custom-input:hover,
.filtri .custom-select:hover {
  border-color: #491d46;
}

.filtri .custom-input:focus-within,
.filtri .custom-select:focus-within {
  border-color: #491d46;
  box-shadow: 0 0 0 2px rgba(73, 29, 70, 0.1);
}

.filtri .custom-range {
  background-color: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.5rem 1rem;
}

.filtri input[type='range'] {
  accent-color: #491d46;
}

.filtri .custom-submit-button {
  border: none;
  background-color: #491d46;
  color: white;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.filtri .custom-submit-button:hover {
  background-color: #5c2657;
}

.custom-input,
.custom-select,
.custom-range,
.custom-submit-button {
  height: 45px !important;
}

@media (max-width: 768px) {
  .custom-range {
    height: 45px !important;
  }
}

.documents-section {
  margin-bottom: 2rem;
}

.documents-container {
  max-height: 350px;
  overflow-y: auto;
  border-radius: 8px;
  background-color: white;
  border: 1px solid #eaeaea;
  padding: 10px 5px;
  scrollbar-width: thin;
  scrollbar-color: #cccccc #f0f0f0;
}

.documents-container::-webkit-scrollbar {
  width: 6px;
}

.documents-container::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}

.documents-container::-webkit-scrollbar-thumb {
  background: #cccccc;
  border-radius: 10px;
}

.documents-container::-webkit-scrollbar-thumb:hover {
  background: #bbbbbb;
}

.document-section {
  margin-bottom: 15px;
}

.document-section:last-child {
  margin-bottom: 0;
}

.document-section-title {
  font-size: 1rem;
  color: #491d46;
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.document-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.document-item {
  display: flex;
  align-items: center;
  background-color: #f9f9f9;
  border-radius: 6px;
  padding: 10px 12px;
  transition: all 0.2s;
  margin-bottom: 6px;
  border: 1px solid transparent;
}

.document-item:hover {
  background-color: #f0f0f0;
  border-color: #e0e0e0;
}

.document-icon {
  margin-right: 12px;
  flex-shrink: 0;
}

.document-icon-bg {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.document-type {
  color: white;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.5px;
  font-family: 'MavenPro-Bold', sans-serif;
}

.document-details {
  flex: 1;
  min-width: 0;
}

.document-name {
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.document-date {
  font-size: 0.8rem;
  color: #666;
}

.document-actions {
  margin-left: 10px;
  flex-shrink: 0;
}

.document-download {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  transition: all 0.2s;
  background-color: #491d46;
  margin-left: 10px;
}

.document-download:hover {
  background-color: #5d2659;
  transform: translateY(-1px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.download-button {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.download-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.documents-empty {
  padding: 2rem;
  text-align: center;
  color: #666;
}

.cta-documenti {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: white;
  border: 2px solid #491d46;
  color: #491d46;
  border-radius: 8px;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
  transition: all 0.2s;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cta-documenti:hover {
  background-color: #f8f4fa;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.icon-select-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

.cta-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cta-documenti.active .icon-select-wrapper {
  transform: rotate(180deg);
}

@media (min-width: 992px) {
  #posts-container .post-image img,
  #feed .post-image img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain;
  }

  .profilo-social-div .feed-box .post {
    max-width: 100%;
    margin-left: 0;
    margin-right: auto;
    margin-bottom: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(73, 29, 70, 0.06);
    padding: 2rem 2rem 1.5rem 2rem;
  }

  .profilo-social-div .feed-box .post-header {
    justify-content: flex-start;
  }

  .profilo-social-div .feed-box .post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .profilo-social-div .feed-box .post-actions > .d-flex:first-child {
    margin-right: auto;
  }

  .social-info.d-md-flex .social-info-actions {
    margin-left: auto;
  }

  .profilo-image-container {
    max-width: 300px;
    margin-bottom: 1rem;
  }

  .carousel-inner img {
    max-width: 100%;
    max-height: 450px;
    width: auto !important;
    height: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
  }
}

.close-modal-btn {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 10000;
}

.close-modal-btn:hover,
.close-modal-btn:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.carousel-control-prev,
.carousel-control-next {
  width: 40px;
  height: 40px;
  background: rgba(73, 29, 70, 0.6);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  margin: 0 10px;
  opacity: 0.7;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(73, 29, 70, 0.8);
  opacity: 0.9;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
  background-size: 100%;
  filter: brightness(0) invert(1);
}

/* Specific fixes for posts.html and profilo-social.html */
.post-image img,
#posts-container .post-image img,
#feed .post-image img,
.profilo-social-div .post-image img {
  width: 100% !important;
  height: auto !important;
  max-height: 80vh !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

/* Override any min-width/max-width constraints */
@media (min-width: 992px) {
  #posts-container .post-image img,
  #feed .post-image img,
  .profilo-social-div .post-image img {
    max-width: none !important;
    width: 100% !important;
  }
}

/* Additional targeted fixes for posts on specific pages */
.profilo-social-div .feed-box .post .post-image,
#posts-container .post .post-image,
#feed .post .post-image {
  width: 100% !important;
  max-width: 100% !important;
  text-align: center !important;
  margin-bottom: 30px !important;
  padding: 0 !important;
}

/* Fix for post images on mobile */
@media (max-width: 992px) {
  .profilo-social-div .feed-box .post .post-image img,
  #posts-container .post .post-image img,
  #feed .post .post-image img {
    max-width: 100% !important;
    width: 100% !important;
    max-height: 60vh !important;
  }
}

/* Fix for media queries that might limit image size */
@media (min-width: 992px) {
  #posts-container .post-image img,
  #feed .post-image img {
    width: 100% !important;
    max-width: 100% !important;
    min-width: unset !important;
    max-height: 80vh !important;
  }

  .profilo-social-div .feed-box .post {
    max-width: 100% !important;
  }
}

/* Video Modal Styles */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.video-close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #fff;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000000;
  background: rgba(0, 0, 0, 0.5);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.video-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

#hero-video {
  display: block;
  max-width: 100%;
  max-height: 80vh;
}

/* Responsive video modal */
@media (max-width: 992px) {
  .video-modal-content {
    max-width: 95%;
    max-height: 80%;
  }

  #hero-video {
    max-height: 60vh;
    width: 100%;
  }

  .video-close {
    font-size: 32px;
    width: 50px;
    height: 50px;
  }
}

/* Mobile Footer Gear */
.mobile-footer-gear {
  display: none !important;
}

#mobile-gear-img {
  width: 100%;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: block;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

#mobile-gear-img:hover {
  transform: scale(1.02);
}

.mobile-gear-container .simple-play-overlay {
  position: absolute;
  top: 61%;
  left: 69%;
  transform: translate(-50%, -50%);
  z-index: 60;
  cursor: pointer;
  width: 60px;
  height: 60px;
  background: transparent;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.6),
    0 0 15px rgba(255, 255, 255, 0.4), 0 0 25px rgba(255, 255, 255, 0.2);
  animation: blinkingBorder 2s ease-in-out infinite;
}

@keyframes blinkingBorder {
  0%,
  100% {
    opacity: 0.7;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.4),
      0 0 15px rgba(255, 255, 255, 0.2), 0 0 25px rgba(255, 255, 255, 0.1);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.8),
      0 0 20px rgba(255, 255, 255, 0.6), 0 0 35px rgba(255, 255, 255, 0.4);
  }
}

@media (max-width: 992px) {
  .mobile-gear-container .simple-play-overlay {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .mobile-gear-container .simple-play-overlay {
    width: 50px;
    height: 50px;
  }
}

.mobile-gear-container {
  display: none;
}

@media (max-width: 992px) {
  .mobile-gear-container {
    display: block !important;
    position: absolute;
    bottom: 0;
    right: 0%;
    width: 40%;
    z-index: 50;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  .hero .hero-searchForm {
    max-width: 60%;
    margin-bottom: 45%;
  }

  .hero {
    padding-bottom: 100px;
    position: relative;
    overflow-x: hidden;
  }

  body {
    overflow-x: hidden;
  }
}

@media (max-width: 992px) and (min-width: 501px) {
  /*.mobile-gear-container {
    top: 80%;
  }*/

  .hero {
    padding-bottom: 120px;
  }
}

@media (max-width: 992px) {
  .mobile-gear-container {
    width: 40%;
    right: 2%;
  }
}

@media (max-width: 480px) {
  .mobile-gear-container {
    width: 45%;
  }
}

/* Compact generic header (exclude custom home header) */
.navbar:not(.custom-nav) {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.navbar:not(.custom-nav) .container-fluid {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

.navbar:not(.custom-nav) .navbar-collapse {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.navbar:not(.custom-nav) .nav-link {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0.15rem !important;
  padding-bottom: 0.15rem !important;
}

.navbar:not(.custom-nav) .nav-link h4 {
  font-size: 1rem;
  line-height: 1.2;
  margin: 0;
}

.navbar:not(.custom-nav) .navbar-toggler {
  padding: 0.15rem 0.35rem;
}

/* Force navbar-toggler position on mobile - override all other rules */
@media (max-width: 992px) {
  button.navbar-toggler {
    margin: -12px 0 0 0 !important;
    top: -7px !important;
    position: relative !important;
    padding: 8px 12px !important;
    border: 2px solid #491d46 !important;
  }
}

@media (max-width: 768px) {
  button.navbar-toggler {
    margin: -15px 0 0 0 !important;
    top: -9px !important;
    position: relative !important;
    padding: 10px 14px !important;
    border: 2px solid #491d46 !important;
  }
}

@media (min-width: 992px) {
  .navbar:not(.custom-nav) .nav-link h4 {
    font-size: 0.95rem;
  }
}

/* Full-viewport hero when following the generic navbar (exclude .custom-nav) */
.navbar:not(.custom-nav) + .hero {
  min-height: calc(100vh - 56px);
}
@media (max-width: 768px) {
  .navbar:not(.custom-nav) + .hero {
    min-height: calc(100vh - 64px);
  }
}

/* Hover effects for generic navbar (exclude custom home header) */
.navbar:not(.custom-nav) .nav-link {
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
  border-radius: 8px;
}
.navbar:not(.custom-nav) .nav-link:hover,
.navbar:not(.custom-nav) .nav-link:focus-visible {
  background-color: rgba(73, 29, 70, 0.08);
  transform: translateY(-1px);
  color: #491d46 !important;
  text-decoration: none;
}
.navbar:not(.custom-nav) .nav-link.active,
.navbar:not(.custom-nav) .nav-link[aria-current='page'] {
  background-color: rgba(73, 29, 70, 0.12);
}

/* Full-bleed hero directly after the generic navbar (exclude .custom-nav) */
.navbar:not(.custom-nav) + .hero {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: calc(100vh - var(--generic-header-h, 60px));
  overflow: visible;
}
@media (max-width: 768px) {
  .navbar:not(.custom-nav) + .hero {
    min-height: calc(100vh - var(--generic-header-h, 68px));
  }
}

/* Ensure hero content and image span the full width without overflow */
.navbar:not(.custom-nav) + .hero .hero-positioning {
  width: 100%;
  height: 100%;
}
.navbar:not(.custom-nav) + .hero #hero-img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - var(--generic-header-h, 60px));
  display: block;
  object-fit: contain;
  object-position: center;
}

/* Desktop: ensure hero image fills full width (no side gutters) */
@media (min-width: 992px) {
  .navbar:not(.custom-nav) + .hero #hero-img {
    object-fit: contain;
    object-position: center;
  }
}

/* Mask potential letterboxing with brand background */
.navbar:not(.custom-nav) + .hero {
  background-color: #2d1f33;
}

/* Normalize profileRoute font size to match other nav links (generic navbar only) */
.navbar:not(.custom-nav) #profileRoute h4 {
  font-size: 1rem;
  line-height: 1.2;
  margin: 0;
}

/* Compact link font-size and spacing in custom header only */
.custom-nav .nav-link h4 {
  font-size: 1rem;
  line-height: 1.2;
  margin: 0;
}
.custom-nav .nav-link {
  padding-top: 0.15rem !important;
  padding-bottom: 0.15rem !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
@media (min-width: 992px) {
  .custom-nav .nav-link h4 {
    font-size: 0.95rem;
  }
}

/* Hover and active feedback for custom header links */
.custom-nav .nav-link,
.custom-nav .profileRoute {
  border-radius: 8px;
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
}
.custom-nav .nav-link:hover,
.custom-nav .nav-link:focus-visible,
.custom-nav .profileRoute:hover,
.custom-nav .profileRoute:focus-visible {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  color: #ffffff !important;
  text-decoration: none;
}
.custom-nav .nav-link:active,
.custom-nav .profileRoute:active {
  background-color: rgba(255, 255, 255, 0.18);
  transform: translateY(0);
}
.custom-nav .nav-link.active,
.custom-nav .nav-link[aria-current='page'] {
  background-color: rgba(255, 255, 255, 0.15);
  font-weight: 700;
}

/* Fix profile icon hover alignment in custom header */
.custom-nav .profileRoute {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  line-height: 0;
}
.custom-nav .profileRoute img {
  display: block;
  width: 22px;
  height: 22px;
}
.custom-nav .profileRoute:hover,
.custom-nav .profileRoute:focus-visible {
  transform: none; /* avoid vertical shift on hover */
  background-color: rgba(255, 255, 255, 0.12);
}

/* ABSOLUTE FULL WIDTH HERO - OVERRIDE EVERYTHING */
.hero,
.hero *,
section.hero,
section.hero * {
  box-sizing: border-box !important;
}

.home-page main {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: none !important;
}

.home-page .hero {
  position: relative !important;
  width: 100vw !important;
  max-width: none !important;
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
  margin: -50px 0 0 0 !important;
  padding: 0 !important;
  left: 0 !important;
  right: 0 !important;
  transform: translateX(calc(-50vw + 50%)) !important;
  overflow: visible !important;
}

.home-page .hero .hero-positioning {
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  left: 0 !important;
  right: 0 !important;
  text-align: center !important;
}

.home-page .hero #hero-img {
  width: 100% !important;
  max-width: none !important;
  min-width: 100% !important;
  height: auto !important;
  max-height: calc(100vh - 80px) !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center !important;
  z-index: 1 !important;
}

/* Remove all spacing between hero and footer */
.home-page .hero {
  margin-bottom: 0 !important;
}

.home-page .hero + .home-footer,
.home-page .hero ~ .home-footer,
.home-page .hero + #footer,
.home-page .hero ~ #footer {
  margin-top: 0 !important;
}

/* Override default footer margin on home page */
.home-page #footer {
  margin-top: 0 !important;
}

/* Ensure no gaps on any device */
@media (max-width: 768px) {
  .home-page .hero {
    margin-bottom: 0 !important;
  }

  .home-page .hero + .home-footer,
  .home-page .hero ~ .home-footer,
  .home-page .hero + #footer,
  .home-page .hero ~ #footer {
    margin-top: 0 !important;
  }

  .home-page #footer {
    margin-top: 0 !important;
  }
}

@media (min-width: 767px) {
  .home-page .hero {
    margin-bottom: 0 !important;
  }

  .home-page .hero + .home-footer,
  .home-page .hero ~ .home-footer,
  .home-page .hero + #footer,
  .home-page .hero ~ #footer {
    margin-top: 0 !important;
  }

  .home-page #footer {
    margin-top: 0 !important;
  }
}

/* Responsive hero positioning and image height adjustments */
@media (max-width: 768px) {
  .home-page .hero {
    margin: -30px 0 0 0 !important;
  }

  .home-page .hero #hero-img {
    max-height: calc(100vh - 60px) !important;
  }
}

@media (min-width: 767px) and (max-width: 992px) {
  .home-page .hero {
    margin: -50px 0 0 0 !important;
  }

  .home-page .hero #hero-img {
    max-height: calc(100vh - 70px) !important;
  }
}

@media (min-width: 993px) {
  .home-page .hero {
    margin: 0 0 0 !important;
  }

  .home-page .hero #hero-img {
    max-height: calc(100vh - 10px) !important;
  }
}
