body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #fafafa;
}

h1 {
    text-align: center;
    font-size: 1.5rem;
    margin-top: 16px;
}

h2 {
    margin-top: 20px;
    text-align: center;
    width: 100%;
    font-size: 2em;
    color: #fff;
    /* testo bianco */
    text-shadow: 2px 2px 8px #188aff, 0 0 4px #000;
    /* ombra blu e nera */
    background: rgba(24, 138, 255, 0.5);
    /* sfondo blu trasparente */
    padding: 12px 0;
    border-radius: 8px;
}

#table-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#table {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    height: 120px;
    background: #c2b280;
    border-radius: 20px;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#table-image {
    max-width: 220px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 16px auto;
    border-radius: 8px;
    opacity: 0.9;
    /* 0.0 = completamente trasparente, 1.0 = opaco */
}

.seats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    justify-items: center;
}

.seat {
    width: 32px;
    height: 32px;
    background: #e0e0e0;
    border: 2px solid #bdbdbd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.seat:hover {
    background: #b3e5fc;
}

.booked {
    background: #e53935 !important;
    border-color: #b71c1c !important;
}

.seat-name {
    font-size: 0.6em;
    text-align: center;
    word-break: break-word;
}

/* 6 posti lato lungo sopra */
.seat[data-id="1"] {
    top: 90px;
    left: 140px;
}

.seat[data-id="2"] {
    top: 90px;
    left: 180px;
}

.seat[data-id="3"] {
    top: 90px;
    left: 220px;
}

.seat[data-id="4"] {
    top: 90px;
    left: 260px;
}

.seat[data-id="5"] {
    top: 90px;
    left: 300px;
}

.seat[data-id="6"] {
    top: 90px;
    left: 340px;
}

/* 2 posti lato corto destro */
.seat[data-id="7"] {
    top: 130px;
    left: 390px;
}

.seat[data-id="8"] {
    top: 320px;
    left: 390px;
}

/* 6 posti lato lungo sotto */
.seat[data-id="9"] {
    top: 370px;
    left: 140px;
}

.seat[data-id="10"] {
    top: 370px;
    left: 180px;
}

.seat[data-id="11"] {
    top: 370px;
    left: 220px;
}

.seat[data-id="12"] {
    top: 370px;
    left: 260px;
}

.seat[data-id="13"] {
    top: 370px;
    left: 300px;
}

.seat[data-id="14"] {
    top: 370px;
    left: 340px;
}

/* 2 posti lato corto sinistro */
.seat[data-id="15"] {
    top: 130px;
    left: 90px;
}

.seat[data-id="16"] {
    top: 320px;
    left: 90px;
}

@media (max-width: 500px) {
    #table-container {
        max-width: 100%;
        padding: 4px;
    }

    h1 {
        font-size: 1rem;
    }

    .seat {
        width: 14px;
        height: 14px;
    }

    .seats {
        gap: 4px;
    }

    #table-image {
        max-width: 60px;
        margin-bottom: 8px;
    }
}

.home-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(103, 58, 183, 0.8);
    backdrop-filter: blur(5px);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.home-btn:hover {
    background: #5E35B1;
    transform: translateY(-2px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    min-height: 100vh;
    background: url('img/logo_deepaiug_mani_escher.jpg') no-repeat center center fixed;
    background-size: contain;
    background-color: rgb(0, 0, 0);
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #188aff;
    opacity: 0.2;
    /* Lowered opacity */
    z-index: -1;
}

ul {
    position: relative;
    margin: 0;
    padding: 20px;
    width: 300px;
    background: rgba(255, 255, 255, 0.1);
    /* Lowered opacity */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5),
        inset 0 0 15px rgba(255, 255, 255, 0.5);
    z-index: 1;
}

ul li {
    position: relative;
    list-style: none;
}

ul li:before {
    content: '';
    position: absolute;
    top: 26px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: 0.5s ease-in-out;
}

ul li:hover:before {
    background: #b618ff;
}

ul li a {
    text-decoration: none;
    display: flex;
}

ul li a .icon {
    width: 60px;
    height: 40px;
    text-align: center;
    overflow: hidden;
    margin: 10px;
}

ul li a .icon .fa {
    width: 100%;
    height: 100%;
    line-height: 40px;
    font-size: 34px;
    transition: 0.5s ease-in-out;
    color: #333;
}

ul li a .icon .fa:last-child {
    color: #b618ff;
}

ul li a:hover .icon .fa {
    transform: translateY(-100%);
}

ul li a .name {
    position: relative;
    top: 20px;
    height: 20px;
    width: 100%;
    display: block;
    overflow: hidden;
}

ul li a .name span {
    display: block;
    position: relative;
    color: #333;
    font-size: 18px;
    font-weight: 500;
    line-height: 20px;
    transition: 0.5s ease-in-out;
}

ul li a .name span:before {
    content: attr(data-text);
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    color: #b618ff;
}

ul li a:hover .name span {
    transform: translateY(20px);
}

.content {
    width: 80%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.);
    /* Lowered opacity */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 20px;
}

.content h1 {
    color: #673AB7;
    margin-bottom: 20px;
}

.content p {
    color: #fdf6f6;
    line-height: 1.6;
    margin-bottom: 15px;
}

.home-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(103, 58, 183, 0.8);
    backdrop-filter: blur(5px);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: 0.3s;
}

.home-btn:hover {
    background: #5E35B1;
    transform: translateY(-2px);
}

#container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.info-msg {
    color: #fff;
    text-align: center;
    font-size: 1em;
    margin: 8px 0 18px 0;
    text-shadow: 1px 1px 6px #188aff, 0 0 4px #000;
    /* ombra blu e nera */
    background: rgba(24, 138, 255, 0.5);
    /* sfondo blu trasparente */
    padding: 12px 0;
    border-radius: 8px;
}