a:visited{
    color: black;
}

a{
    text-decoration: none;
    color: black;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    /*background-color: #8a8a8a;*/
}

h1 {
    font-family: 'Great Vibes', cursive;
    font-weight: 0.1cm;
    font-size: 1cm;
}

header {
    color: #fff;
    background-color: #000000;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 9999;
}

.background-image {
  position: fixed;          /* <-- invece di absolute */
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;            /* sempre tutta la viewport */
  background-image: url('../Grafiche/BackGround_WebSite.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;              /* sta dietro a tutto */
  opacity: 0.90;
  pointer-events: none;     /* non blocca click/selezione */
}

/*.background-image {
    position: absolute;
    top: calc(20px + 1cm); 
    left: 0;
    width: 100vw;
    height: calc(100vh - (20px + 1cm)); 
    background-image: url('../Grafiche/BackGround_WebSite.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.83; 
}*/

/* Assicurati che header e prodotti stiano sopra*/
.products {
    position: relative;
    z-index: 1;
}

.logo-box {
    position: absolute;
    left: 1cm;
    top: 50%;
    transform: translateY(-50%);
    width: calc(50px + 1cm);
    height: calc(50px + 1cm);
    background-color: #fff;
    background-image: url('../Grafiche/Logo.jpeg');
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

.dropdown {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.dropdown-btn {
    background-color: transparent;
    color: #fff;
    padding: 10px 20px;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 25px;
    transition: color 0.3s;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    font-size: 0.5cm;
    font-weight: 0.2cm;
    font-family: 'Great Vibes', cursive;
    background-color: #000000;
    color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    z-index: 1000;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
    /*width: 220px;*/
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.logo {
    width: 50px;
    height: 50px;
    background-color: #333;
    border-radius: 4px;
}

.product-box {
    background-color: #fff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.product-name {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.product-price {
    font-size: 20px;
    color: #d9534f;
    font-weight: bold;
}

.products {
    display: flex;
    justify-content: center;
    align-items: center;        /* centro verticale */
    min-height: calc(100vh - 100%); /* fallback */
    padding: 20px;
}

.product-item {
    width: 300px;
    border: 2px solid #000; /* Aggiunto contorno */
    padding: 4px; /* Aggiunta distanza dal contenuto */
    border-radius: 8px; /* Angoli arrotondati */
    transition: transform 0.3s; /* Transizione per effetto zoom */
}

.product-item:hover {
    transform: scale(1.05); /* Effetto zoom al passaggio del mouse */
}

.product-image-container {
    position: relative;
    overflow: hidden;
}

.product-image-primary {
    display: block;
    width: 100%;
    transition: opacity 0.3s;
}

.product-image-secondary {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-image-container:hover .product-image-primary {
    opacity: 0;
}

.product-image-container:hover .product-image-secondary {
    opacity: 1;
}

.product-item h2 {
    margin: 10px 0;
}

header {
    overflow: visible;
}

.dropdown {
    overflow: visible;
}

.product-info {
    color: white;
}