/* =========================================================
   PALETTE
   Avorio: #f8f5ef
   Blu notte: #0f1b2b
   Oro tenue: #c9a86a
   ========================================================= */

/* ==================== GLOBAL ==================== */
@font-face {
  font-family: "Merriweather-Italic";
  src: url("./fonts/Merriweather-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: "Merriweather";
  src: url("./fonts/Merriweather.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "GreatVibes";
  src: url("./fonts/GreatVibes-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
body {
    margin: 0;
    background: #f8f5ef;
    font-family: 'Merriweather', serif;
    color: #092558;

    /* Pattern siciliano premium */
    background-image: url("images/bg_2.png");
    background-repeat: repeat;
    background-attachment: fixed;
}

/* ==================== HEADER ==================== */
.variante {
    margin-left: 25px;
}
.header {
    text-align: center;
    max-width: 900px;
    padding: 40px 20px 20px;
    display: flex;
    flex-direction: row;
    margin: auto;
    align-items: center;
    justify-content: space-between;
}
.header a {
    text-decoration: none;
    cursor: pointer;
}
.logo {
    width: 150px;
    margin-bottom: 10px;
}

.title {
    font-family: 'GreatVibes', serif;
    font-size: 2.8rem;
    letter-spacing: 1px;
    color: #092558;
}

/* ==================== MENU WRAPPER ==================== */

.menu {
    max-width: 900px;
    margin: auto;
    padding: 20px;
}

/* ==================== CATEGORY (Accordion) ==================== */

.category {
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    overflow: hidden;
    backdrop-filter: blur(4px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category[open] {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}
/* HEADER DELLA CATEGORIA (summary) */
.category summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.category summary::-webkit-details-marker {
    display: none;
}

/* Icona */
.category .icon {
    font-size: 1.6rem;
}

/* Titolo */
.category summary h2 {
    font-family: 'Merriweather', serif;
    font-size: 1.6rem;
    margin: 0;
    color: #092558;
}

/* Bordo superiore oro/blu */
.category summary {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    background: linear-gradient(90deg, #ffffff 0%, #faf8f3 100%);
}

/* Hover elegante */
.category summary:hover {
    background: rgba(201,168,106,0.08);
}

/* Freccia dell’accordion */
.category summary::after {
    content: "›";
    margin-left: auto;
    font-size: 1.4rem;
    color: #092558;
    transition: transform 0.3s ease;
}

.category[open] summary::after {
    transform: rotate(90deg);
}

/* ==================== NOTE ==================== */

.note {
    font-size: 0.9rem;
    opacity: 0.7;
    padding: 0 22px;
    margin-top: 10px;
}

/* ==================== ITEMS ==================== */

.items {
    list-style: none;
    padding: 10px 22px 20px;
    margin: 0;
}

.items li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
    font-size: 1.1rem;
}

.items li:last-child {
    border-bottom: none;
}

.items strong {
    color: #c9a86a;
    font-weight: 600;
    min-width: 65px;
}

/* ==================== FOOTER ==================== */

.footer {
    text-align: center;
    padding: 40px 0;
    font-size: 0.9rem;
    opacity: 0.7;
}
.category .content {
    display: block;   
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition:1s;
}

.category[open] .content {
    max-height: 2000px; /* abbastanza grande per contenere tutto */
    opacity: 1;
    transform: translateY(0);
    transition:1s;
}