html {
    font-size: 16px;
}

body {
    font-family: 'Atkinson Hyperlegible', sans-serif;
    margin: 0;
    display: flex;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.container {
    display: flex;
    flex-direction: column;
}

footer {
    border-top: 1px solid #ddd;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

h1 {
    text-align: center;
    font-size: 2rem;
    color: #333;
    margin-top: 20px;
}

.sectionProdotti {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0 auto;
}

.cardList {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0;
    width: 100%;
}

.itemProdotto {
    list-style: none;
    flex: 1 0 30%;
    min-width: 250px;
    max-width: 300px;
    transition: visibility 0.3s ease;
}

    .itemProdotto article {
        border: 1px solid #ccc;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        height: 100%;
        display: flex;
        flex-direction: column;
    }

.prodottoCard {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.hidden {
    display: none !important;
}

.itemProdotto:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.nomeProdotto {
    color: darkcyan;
    font-size: 1.1rem;
}

article h2 {
    font-size: 1.2rem;
    color: lightsteelblue;
    margin-bottom: 10px;
}

.dettagliProdotto {
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 3px 0;
}

strong {
    color: #bca97f;
}

hr {
    border: 0;
    border-top: 1px solid #eee;
    margin: 15px 0;
}

.titoloProdotti {
    font-weight: bold;
    font-family: 'Century Schoolbook';
    color: #661b1b;
}

.sectionCreaProdotto {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: auto;
}

h2.titoloCreazioneProdotto {
    text-align: center;
    color: #333;
    font-size: 24px;
    font-weight: bold;
}

label {
    font-weight: bold;
    color: #555;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
}

    select option[value=""] {
        color: gray;
    }

button {
    width: 100%;
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s, transform 0.3s;
}

    button:hover {
        background-color: #0056b3;
        transform: scale(1.05);
    }

.text-danger {
    font-size: 14px;
    font-weight: bold;
}

.button-container {
    text-align: center;
}

button {
    width: auto;
    padding: 12px 20px;
}

.success-message {
    text-align: center;
    margin: auto;
    max-width: 600px;
    margin-top: 100px;
}

.titoloSuccesso {
    text-align: center;
}

.form-control-option {
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 5px;
    border: 1px solid #ddd;
    margin-right: 10px;
    width: 65%;
}

.conteiner-newoption {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-content: center;
    text-align: center;
    height: 80vh;
}

.inputAdd {
    width: 50%;
}

.bottoneAggiungi {
    margin-top: 30px;
    margin-left: 80px;
    position: relative;
    width: 150px;
    height: 150px;
    border: 1px solid #ccc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stilebottoneAggiungi {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: #28a745;
    color: white;
    font-size: 24px;
    text-align: center;
    line-height: 50px;
    border-radius: 10px;
    text-decoration: none;
    transition: 0.3s;
}

    .stilebottoneAggiungi:hover {
        background-color: #218838;
        color: aliceblue;
    }

.optionChoose {
    text-align: center;
    text-align-last: center;
}

.home-container {
    height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.home-title {
    margin-top: 5rem;
    margin-bottom: 3rem;
    font-weight: bold;
    font-family: 'Century Schoolbook';
    color: #671919;
}

.styleNavBrand {
    font-weight: bold;
    font-family: 'Century Schoolbook';
    color: #671919 !important;
}

.styleNavComponent {
    font-weight: bold;
    font-family: 'Atkinson Hyperlegible', sans-serif;
    color: #bca97f !important;
}

.styleNavComponent:hover{
    text-decoration: underline;
}

.home-logo {
    width: 500px;
    height: 500px;
}

.home-welcome {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    color: #555;
}

.home-button {
    padding: 12px 24px;
    font-size: 1.2rem;
    border-radius: 8px;
    background-color: #661b1b;
    color: white;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s;
    margin-top: -100px;
}

    .home-button:hover {
        background-color: #9c6b67;
        transform: scale(1.05);
    }

.btn-primary {
    background-color: #a47c1a;
    border: none;
    text-decoration: none;
}

    .btn-primary:hover {
        background-color: #bca97f;
        border: none;
    }
    .btn-primary:focus,
    .btn-primary:active {
        outline: none;
        box-shadow: none;
    }


.titoloGenerico {
    font-family: 'Atkinson Hyperlegible', sans-serif;
    color: #a47c1a;
}
.select2 {
    width:100%!important;
}
.barraRicerca {
    text-align: right;
    margin-bottom: 20px;
}

    .barraRicerca input {
        width: 200px;
        padding: 8px;
        font-size: 14px;
    }

.tableProdotti {
    width: 100%;
    border-collapse: collapse;
}

    .tableProdotti th, .tableProdotti td {
        padding: 8px 12px;
        border: 1px solid #ddd;
    }

    .tableProdotti thead th {
        background-color: #bebca4 !important;
        color:#FFF;
    }

.productRow {
    cursor: pointer;
}

.productDetails {
    background-color: #f9f9f9;
    padding: 10px;
    margin-top: 10px;
}

.addProductText {
    cursor: pointer;
}

.svg-search{
    align-items: center;
    justify-content:center;
    justify-items: center;
    bottom:-2px;
}

.categoria-ambito {
    background-color: #e3f2fd;
    color: #0d47a1;
    border-color: #90caf9;
}

.btn-outline-primary {
    border-color: #90caf9;
    color: #0d47a1;
}

    .btn-outline-primary:hover {
        background-color: #90caf9;
        color: #0d47a1;
        border-color: #42a5f5;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

.categoria-tipologia {
    background-color: #fce4ec;
    color: #880e4f;
    border-color: #f48fb1;
}

.btn-outline-danger {
    border-color: #f48fb1;
    color: #880e4f;
}

    .btn-outline-danger:hover {
        background-color: #f48fb1;
        color: #880e4f;
        border-color: #f06292;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

.categoria-supporto {
    background-color: #e8f5e9;
    color: #1b5e20;
    border-color: #a5d6a7;
}

.btn-outline-dark {
    border-color: #a5d6a7;
    color: #1b5e20;
}

    .btn-outline-dark:hover {
        background-color: #a5d6a7;
        color: #1b5e20;
        border-color: #66bb6a;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

.categoria-partner {
    background-color: #e0e0e0;
    color: #424242;
    border-color: #bdbdbd;
}

.btn-outline-info {
    border-color: #bdbdbd;
    color: #424242;
}

    .btn-outline-info:hover {
        background-color: #bdbdbd;
        color: #424242;
        border-color: #9e9e9e;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

.categoria-territorio {
    background-color: #ede7f6;
    color: #4527a0;
    border-color: #b39ddb;
}

.btn-outline-secondary {
    border-color: #b39ddb;
    color: #4527a0;
}

    .btn-outline-secondary:hover {
        background-color: #b39ddb;
        color: #4527a0;
        border-color: #7e57c2;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

.categoria-prodotti {
    background-color: #e0f7fa; 
    color: #00695c;
    border-color: #80deea;
}

.btn-light {
    background-color: #e0f7fa;
    border-color: #80deea;
    color: #00695c;
}

    .btn-light:hover {
        background-color: #80deea;
        color: #00695c;
        border-color: #4dd0e1;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }



.btn:hover {
    opacity: 0.9;
    transform: scale(1.04);
}

.select2-container .select2-selection__choice__remove {
    position: relative;
    margin-top:11px; 
    transform: translateY(-50%);
}

.select2-container .select2-selection__choice {
    padding-left: 25px; 
}


.custom-dropzone {
    border: 2px dashed #a47c1a;
    border-radius: 12px;
    background: #fff8e1;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

    .custom-dropzone:hover {
        background-color: #f9f2cc;
        border-color: #c09f2b;
    }

    .custom-dropzone.dz-drag-hover {
        background-color: #fff4b3;
        border-color: #d4af37;
    }

    .custom-dropzone .dz-message {
        color: #6b5700;
    }

    .custom-dropzone i.bi-cloud-arrow-up {
        color: #a47c1a;
        font-size: 3.5rem;
    }

    .custom-dropzone small {
        font-size: 0.85rem;
        color: #8a7b3a;
    }

.icon {
    color: #8c5253;
}

.file-preview-box {
    width: 300px;
    height: 350px;
}

.file-preview-content {
    width: 100%;
    height: 100%;
}


.loader-content {
    text-align: center;
}


.btn-custom {
    color: #f9f9f9;
    background-color: #bebca4;
}

    .btn-custom:hover {
        background-color: #d6d3b5; 
        color: #2c2c2c; 
    }

.card-custom {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 12px;
}

    .card-custom:hover {
        transform: translateY(-10px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

.hover-zoom:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        transform: translateX(-100%);
        position: fixed;
        top: 0;
        left: 0;
    }

    .main-wrapper {
        margin-left: 0; 
    }

    .menu-toggle {
        display: block;
    }

    .sidebar a {
        padding: 10px 15px;
    }

    footer img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 100%;
    }

    .menu-toggle {
        font-size: 1.5rem;
        top: 8px;
        left: 8px;
    }

    footer img {
        width: 35px;
        height: 35px;
    }
}

.main-content-wrapper {
    transition: margin-left 0.3s ease-in-out;
    padding: 20px;
    margin-left: auto;
    margin-right: 0;
    align-content:center;
}

@media (min-width: 769px) {
    .main-content-wrapper {
        margin-left: 250px;
        align-content: center;
    }
}

@media (max-width: 768px) {
    .main-content-wrapper {
        margin-left: 0;
        align-content: center;
        padding: 20px 0;
    }
}

.social-icons {
    font-size: 30px;
    display: flex;
    gap: 15px;
    margin-top: 10px; 
}

.social-icon {
    color: #bca97f;
    transition: color 0.3s ease;
}

    .social-icon:hover {
        color: #9f8c6c;
    }

.animate-border {
    width: 40px;
    height: 40px;
    font-size: 16px;
    border: 2px solid #007bff;
    animation: borderPulse 2.5s infinite;
    border-radius: 6px;
}

@keyframes borderPulse {
    0% {
        border-color: #007bff;
        box-shadow: 0 0 0 0 rgba(0, 123, 255, 0.7);
    }

    50% {
        border-color: #6f42c1; 
        box-shadow: 0 0 10px 4px rgba(111, 66, 193, 0.4);
    }

    100% {
        border-color: #6c757d;
        box-shadow: 0 0 0 0 rgba(108, 117, 125, 0.3);
    }
}

.bottone-torna-su {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #bca97f!important;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
}

    .bottone-torna-su:hover {
        background-color: #a47c1a;
    }

