:root {
  --font-size-index: 68px;
  --font-size-section-title: 45.5px;
  --font-size-body: 45.5px;
  --font-size-book: 45.5px;
  --font-size-event: 45.5px;
  --font-size-menu: 22px;
  --font-size-search: 22px;
}

@font-face {
  font-family: "Renato";
  src: url("fonts/Renato-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Renato";
  src: url("fonts/Renato-Italic.otf") format("opentype");
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: "Peso";
  src: url("fonts/Peso-Regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Peso";
  src: url("fonts/Peso-Normal.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Peso";
  src: url("fonts/Peso-Bold.otf") format("opentype");
  font-weight: bold;
  font-style: normal;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

*::-webkit-scrollbar {
  width: 12px;
}

*::-webkit-scrollbar-track {
  background: #e5e5e5 !important;
}

*::-webkit-scrollbar-thumb {
  background-color: #bbb;
  border-radius: 8px;
  border: 2px solid #e5e5e5;
}

/* Globale */
*::-webkit-scrollbar {
  display: none;
}

* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}



html {
  background-color: #e5e5e5;
  visibility: hidden;
}

body {
  margin: 0;
  padding: 60px 60px 180px 60px;
  background-color: #e5e5e5;
  overflow-y: scroll;
  visibility: hidden;
}

i {
  font-family: "Renato", sans-serif;
  font-style: italic;
}

ul.results {
  list-style-type: none; /* rimuove bullet di default */
  margin-left: 0;
  padding-left: 0;
  position: relative; /* necessario per posizionamento assoluto interno */
}

ul.results li {
  margin-left: 0;
  padding-left: 60px; /* larghezza bullet + margine a sinistra per il testo */
  position: relative; /* per il bullet posizionato assolutamente */
}

.bullet::before {
  content: "•";
  font-size: var(--font-size-body);
  line-height: 1.2;
  position: absolute;
  left: 0;
  top: 0;
  width: auto; /* larghezza fissa per allineare */
  text-align: center;
  margin-right: 0; /* tolto perché ora gestito dal padding del li */
  display: inline-block;
}

.page-index {
  font-family: "Renato", sans-serif;
  font-size: var(--font-size-index);
  line-height: 1.2;
  font-weight: normal;
  font-style: normal;
  padding-top: 44px;
}

.page-index p {
  margin: 0 0 1.2em 0;
}

.page-index a {
  color: black;
  text-decoration: underline;
  text-underline-offset: 18px;
  text-decoration-thickness: 4px;
}

.page-index a:hover,
.page-index a:focus,
.page-index a:active {
  text-decoration: none;
  color: black;
}

.page-transparency,
.page-stockists,
.page-search,
.page-book-detail {
  font-family: "Renato", sans-serif;
  font-size: var(--font-size-section-title);
  line-height: 1.2;
  font-weight: normal;
  font-style: normal;
  padding-top: 46px;
}

.page-transparency h1,
.page-stockists h1,
.page-search h1 {
  font-family: "Renato", sans-serif;
  font-size: var(--font-size-section-title);
  line-height: 1.2;
  font-weight: normal;
  font-style: italic;
  margin-bottom: 1.2em;
}

.transparency-table {
  width: 100%;
  font-family: "Renato", sans-serif;
  font-size: var(--font-size-body);
  line-height: 1.2;
  font-weight: normal;
  border-collapse: collapse;
}

.transparency-table td {
  vertical-align: top;
}

.transparency-table td:first-child {
  width: 33%;
  padding-right: 0.5em;
}

.transparency-table td:last-child {
  width: 67%;
  padding-left: 0.5em;
}

.transparency-table a {
  color: black !important;
  text-decoration: none !important;
  cursor: pointer;
}

.transparency-table a:hover,
.transparency-table a:focus,
.transparency-table a:active {
  color: black !important;
  text-decoration: none !important;
}

.page-books {
  font-family: "Renato", sans-serif;
  font-size: var(--font-size-body);
  line-height: 1.2;
  font-weight: normal;
  font-style: normal;
  padding: 0;
}

.books-visual {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.book-visual {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 1em;
  padding-right: 1em;
  padding-bottom: 4px;
  font-family: "Renato", sans-serif;
  font-size: var(--font-size-book);
  line-height: 1.2;
  font-weight: normal;
  font-style: normal;
  color: white;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}

.book-label {
  width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.page-book-detail p {
  margin-bottom: 1.2em;
}

.page-book-detail a {
  text-decoration: underline;
  text-underline-offset: 10px;
  text-decoration-thickness: 3px;
}

.page-book-detail a:hover,
.page-book-detail a:focus,
.page-book-detail a:active {
  text-decoration: none;
}


.book-cover-image {
  height: 600px;
  width: auto;
  display: block;
  margin: 120px auto 120px auto;
  
}

.page-events {
  font-family: "Renato", sans-serif;
  font-size: var(--font-size-event);
  line-height: 1.2;
  font-weight: normal;
  font-style: normal;
}

.events-container {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Due colonne */
  gap: 60px; /* Distanza tra colonne e righe */
}

.ticket {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  transition: transform 0.1s ease; /* animazione fluida */
  cursor: pointer; /* cambia il cursore per indicare cliccabilità */
}

.ticket:hover {
  transform: scale(1.1);
  z-index: 10; /* per sovrapporsi ad altri elementi se serve */
}

.ticket-text {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Verticale */
  align-items: center; /* Orizzontale */
  padding: 0.85em;
  text-align: center;
  pointer-events: none; /* Rende cliccabile solo lo sfondo, se serve */
}

.ticket-line {
  white-space: nowrap; /* No a capo */
  overflow: hidden; /* Nasconde overflow */
  text-overflow: ellipsis; /* Mostra "…" */
  width: 100%;
}

.ticket svg {
  width: 100%;
  height: auto;
}

.main-content {
  margin: 0;
  padding: 0;
}

.site-menu {
  font-size: var(--font-size-menu) !important;
  position: fixed !important;
  bottom: 0.5em !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: transparent;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.375em !important;
  padding: 0 !important;
  z-index: 1000 !important;
}

.menu-row {
  display: flex;
  gap: 0.375em;
  justify-content: center;
}

.site-menu button {
  font-family: "Peso", sans-serif;
  font-weight: 400;
  font-size: var(--font-size-menu);
  padding: 0.75em 1.5em;
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  color: black;
  cursor: pointer;
  user-select: none;
  text-transform: none;
  border-radius: 1.5em;
}

.site-menu button:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.site-menu .menu-row:first-child button {
  position: relative;
  background-position: center 70%;
  background-repeat: no-repeat;
  background-size: 1.75em 1.75em;
}

.site-menu .menu-row:first-child button:nth-child(1):hover {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' height='64' width='64'><text y='50%' x='50%' dominant-baseline='middle' text-anchor='middle' font-size='48'>🏖️</text></svg>");
  color: transparent;
}
.site-menu .menu-row:first-child button:nth-child(2):hover {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' height='64' width='64'><text y='50%' x='50%' dominant-baseline='middle' text-anchor='middle' font-size='48'>📕</text></svg>");
  color: transparent;
}
.site-menu .menu-row:first-child button:nth-child(3):hover {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' height='64' width='64'><text y='50%' x='50%' dominant-baseline='middle' text-anchor='middle' font-size='48'>🪩</text></svg>");
  color: transparent;
}

.search-icon {
  font-size: var(--font-size-search);
  line-height: 1.2;
  display: inline-block;
  vertical-align: middle;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: var(--font-size-search);
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.9);
}

.search-input {
  position: absolute;
  right: 0;
  width: 0;
  opacity: 0;
  border: none;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 1.5em;
  padding: 0.75em 1.5em;
  font-family: "Peso", sans-serif;
  font-weight: 400;
  font-size: var(--font-size-search);
  color: black;
  outline: none;
  pointer-events: none;
  z-index: 1;
  box-sizing: border-box;
  white-space: nowrap;
}

.search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.search-wrapper.expanded .search-input {
  width: 360px;
  opacity: 1;
  pointer-events: auto;
}

.search-wrapper.expanded .search-toggle {
  visibility: hidden;
}



