/* ================================
   CLASSI GENERALI SILKTIDE
   ================================ */
#silktide-wrapper #silktide-banner .silktide-banner-title{
  display: flex;
  align-items: center;
  color: var(--primaryColor);
  padding-bottom: 5px;
  margin: 0;
}

#silktide-banner .silktide-banner-title svg {
  margin-right: 12px;
  flex-shrink: 0;
}

#silktide-modal h1 {
  font-size: 22px;
  color: var(--primaryColor);
}

#silktide-modal legend {
  margin-bottom: 6px;
}

.align-children-center {
    display: inline-flex !important;
    align-items: center;
}



/* Footer della modale delle preferenze */
#silktide-modal footer.modal-footer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid #d3d3d3;
}


/* Raggruppamento pulsanti */
#silktide-modal .left-buttons {
  display: flex;
  gap: 10px;
}

#silktide-modal .right-buttons {
  margin-left: auto;
}


/* Pulsante "Salva e continua" */
#silktide-modal .preferences-save-close {
  min-width: 150px;
}

#silktide-modal .cookie-type-description p {
  font-size: 15px;
}

.svg-me-1 {
  margin-right: .25rem;
}

.svg-me-2 {
  margin-right: .5rem;
}


/* VERSIONE MOBILE: max 600px */
/* Pulsante apertura banner più piccolo */
@media (max-width: 600px) {
    #silktide-cookie-icon {
      width: 32px !important;    /* desktop 45px */
      height: 32px !important;
    }

    #silktide-cookie-icon svg {
        width: 24px !important;
        height: 24px !important;
    }
}





/* ================================
  EMBED DEI VIDEO YOUTUBE NELLE PAGINE DEL SITO
   ================================ */
   
.youtube-embed {
  /* position: relative; */
  display: inline-block;
  width: 100%;
  /* max-width: 560px; */
  background: #000;
}
.youtube-thumbnail {
  width: 100%;
  display: block;
}
.youtube-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.6);
  color: #fff;
  text-align: center;
  padding: 1em;
}
.youtube-overlay button {
  margin-top: 0.5em;
  padding: 0.6em 1em;
  border: none;
  background: #f00;
  color: white;
  font-weight: bold;
  cursor: pointer;
  border-radius: 5px;
}




/* ================================
   QBICO COOKIE / PRIVACY POLICY MODAL + BACKDROP
   ================================ */

/* --- Modale --- */
#qbico-policy-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  flex-direction: column;
  justify-content: flex-start;
  width: 90%;
  max-width: 1000px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--backgroundColor);
  color: var(--textColor);
  border-radius: 10px;
  padding: 1.5em 2em;
  z-index: 1000000;
  opacity: 0;
  transform: translate(-50%, -60%);
  transition: opacity 0.3s ease, transform 0.25s ease;
}

#qbico-policy-modal.visible {
  opacity: 1;
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}


/* --- Header --- */
#qbico-policy-modal header.qbico-policy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  /* border-bottom: 1px solid #e5e5e5; */
  padding-bottom: 0.5em;
}

#qbico-policy-modal header.qbico-policy-header h1 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0;
  color: var(--primaryColor);
}


/* --- Contenuto --- */
#qbico-policy-modal .qbico-policy-content {
  margin-top: 1em;
  line-height: 1.6;
  color: #333;
}

#qbico-policy-modal .qbico-policy-content a {
  color: var(--primaryColor, #2c6dd5);
  text-decoration: underline;
}

#qbico-policy-modal h2 {
  margin: 0;
}

#qbico-policy-modal h3 {
  margin: 0;
}

.qbico-policy-content hr { 
	border: none; 
	border-top: 1px solid #ccc; 
	height: 0; 
	margin: 16px 0; 
	display: block; 
	width: 100% !important; 
	max-width: 100% !important; 
}


/* --- Backdrop --- */
#qbico-policy-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 999998;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#qbico-policy-backdrop.visible {
  display: block;
  opacity: 1;
}


/* --- Pulsante Chiudi --- */
#qbico-policy-modal button.close-policy {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 2.5em;
  cursor: pointer;
  color: var(--primaryColor);
  line-height: 1;
  transition: color 0.2s ease, transform 0.1s ease;
}

#qbico-policy-modal button.close-policy:hover {
  color: #000;
  transform: scale(1.1);
}


/* --- Effetto focus visivo per accessibilità --- */
#qbico-policy-modal button.close-policy:focus {
  outline: 2px solid var(--primaryColor);
  outline-offset: 2px;
}


/* contenuto html della cookie policy */
#qbico-content-policy {
  font-size: 14px;
}

#qbico-content-policy h2 {
  font-size: 1.20rem;
  font-weight: 500;
  color: var(--primaryColor);
}

#qbico-content-policy h3 {
  font-size: 1rem;
  font-weight: 400;
}

#qbico-content-policy hr {
  padding-bottom: 20px;  
}

.policy-footer {
  text-align: center;
  margin-top: 24px;
}

.policy-close-btn {
  color: var(--backgroundColor);
  background-color: var(--primaryColor);
  border: 2px solid var(--primaryColor);
  padding: 10px 20px;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
  border-radius: 5px;
}


.policy-close-btn:hover {
  background-color: var(--backgroundColor);
  color: var(--primaryColor);
}

.icon-arrow {
  width: 1em;
  height: 1em;
  vertical-align: middle;
  stroke: var(--textColor);
  fill: var(--textColor);
  opacity: 0.65;
}




/* ================================
   SELETTORE DELLE LINGUE
   ================================ */

.st-language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 999;
}

.st-lang-trigger {
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 4px;
    border-radius: 5px;
    cursor: pointer;
    color: var(--primaryColor);
}

.st-lang-menu {
    position: absolute;
    top: 30px;
    right: 0;
    background: rgba(0,0,0,0.35);
    border-radius: 10px;
    padding: 5px;
    display: none;
    width: 150px;
    backdrop-filter: blur(4px);
}

.st-language-selector.open .st-lang-menu {
    display: block;
}

.st-lang-item {
    display: flex;
    gap: 8px;
    padding: 8px;
    cursor: pointer;
    color: white;
    align-items: center;
    font-size: 14px;
}

.st-lang-item:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
}