*,
body {
    font-family: "DM Sans", sans-serif;
    font-optical-sizing: auto;
}
main > .container, main > .container-fluid
{
    padding: 70px 15px 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container, .footer > .container-fluid {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th,
.grid-view td:last-child {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.navbar form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .navbar form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.navbar form > button.logout:focus,
.navbar form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.navbar form > button.logout:focus {
    outline: none;
}

/* style breadcrumb widget as in previous bootstrap versions */
.breadcrumb {
    background-color: var(--bs-gray-200);
    border-radius: .25rem;
    padding: .75rem 1rem;
}

.breadcrumb-item > a
{
    text-decoration: none;
}


.bg-light {
    --bs-bg-opacity: 1;
    background-color: #fffcf9 !important;
}

.nav-link {
    display: block;
    padding: var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);
    font-size: var(--bs-nav-link-font-size);
    font-weight: var(--bs-nav-link-font-weight);
    color: var(--bs-nav-link-color);
    text-decoration: none;
    background: none;
    border: 0;
    font-size: 14px;
    transition: color 0.15s
ease-in-out, background-color 0.15s
ease-in-out, border-color 0.15s
ease-in-out;
}


.btn-link {
    --bs-btn-font-weight: 400;
    --bs-btn-color: #ff6a00;
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: #ff6a00;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-color: #ff6a00;
    --bs-btn-active-border-color: transparent;
    --bs-btn-disabled-color: #6c757d;
    --bs-btn-disabled-border-color: transparent;
    --bs-btn-box-shadow: 0 0 0 #000;
    --bs-btn-focus-shadow-rgb: 49, 132, 253;
    text-decoration: underline;
    font-size: 14px;
}


.w-100 {
    width: 100% !important;
    height: auto; /* di default */
}

@media (max-width: 768px) {
    .w-100 {
        height: 600px !important;
        object-fit: cover; /* opzionale, per riempire senza deformarsi */
    }
}

.btn-lg, .btn-group-lg > .btn {
    --bs-btn-padding-y: 0.5rem;
    --bs-btn-padding-x: 1rem;
    --bs-btn-font-size: 1.25rem;
    background-color: #ff6a00;
    border-color: #ff6a00;
    font-size: 14px;
    border-radius: 50px;
    --bs-btn-border-radius: var(--bs-border-radius-lg);
}


.card-title {
    margin-bottom: var(--bs-card-title-spacer-y);
    color: var(--bs-card-title-color);

    font-size: 16px;
    font-weight: 600;
}


h6, .h6, h5, .h5, h4, .h4, h3, .h3, h2, .h2, h1, .h1 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--bs-heading-color);

}

small, .small {
    font-size: 0.875em;

    font-size: 14px;
}

.bg-dark {
    --bs-bg-opacity: 1;
    background-color: #ff6a00 !important;
}

.max-width-600 {
    max-width: 600px !important;
}

.max-width-720 {
    max-width: 720px !important;
}

.has-error .form-label,
.has-error .help-block {
    color: #dc3545;
    font-weight: bold;
}
.has-error .help-block {
    font-size: 0.9em;
}


.card img {
  border-radius: 12px;
  object-fit: cover;
  width: 100%;
  height: auto;
}

/* Wishlist: cerchio trasparente con bordo bianco e cuore bianco */
.wishlist-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0); /* trasparente */
  cursor: pointer;
}

.wishlist-btn i {
  color: #fff;
  font-size: 1.2rem;
}

.align-items-center {
    align-items: flex-start;
}
