/*
Theme Name: Silcap
Theme URI: https://www.pentatechnologies.it
Template: kadence
Author: Gianvito Pentassuglia
Author URI: https://www.pentatechnologies.it
Description: Template personalizzato per Silcap
Version: 1.0
Updated: 2023-12-06 11:26:57

*/

a img {
  -webkit-transition: opacity .15s ease-in-out;
  -moz-transition: opacity .15s ease-in-out;
  -ms-transition: opacity .15s ease-in-out;
  -o-transition: opacity .15s ease-in-out;
  transition: opacity .15s ease-in-out;
}

a img:hover {
  opacity: 0.8;
}

footer h1,
footer h2,
footer h3,
footer h4,
footer h5,
footer h6 {
	color: var(--global-palette9);
}

.site-main-header-wrap {
  box-shadow: 5px 5px 10px #0000004a;
}

footer {
 box-shadow: 0px -5px 10px #0000004a; 
}

footer ul {
  display: flex;
}

#menu-policy a {
  padding-left: calc(1.2em / 2);
  padding-right: calc(1.2em / 2);
  padding-top: calc(0.6em / 2);
  padding-bottom: calc(0.6em / 2);
}

@media (max-width: 1024px) {
  #menu-policy {
    justify-content: center;
  }
}

.wp-block-kadence-image:not(:last-child) {
  margin-bottom: 0 !important;
}

.round10 {
  border-radius: 10px;
  overflow: hidden;
}

.round5 {
  border-radius: 5px;
  overflow: hidden;
}

.center {
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.lightborder {
  border-color: rgba(255,255,255,0.5);
  border-width: 5px;
  border-style: solid;
    -webkit-background-clip: padding-box; /* for Safari */
    background-clip: padding-box; /* for IE9+, Firefox 4+, Opera, Chrome */
}

.lightshadow {
  box-shadow: 3px 3px 9px 0px rgb(0 0 0 / 15%);
}

.data-list ul {
  margin-bottom: 0px !important;
}

.single-content .wp-block-columns {
  margin-bottom: 0px;
}

.xoo-el-username-menu img.avatar,
.xoo-el-firstname-menu img.avatar {
  display: none;
}

.area-riservata {
  font-weight: 600;
}

/* Formattazione lista file nell'area riservata */

.file-download-list {
    list-style-type: none;
    padding: 0 !important;
    margin: 0;
}

.file-item {
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
    background: #f9f9f9;
    transition: background-color 0.3s;
    cursor: pointer;
    border-radius: 5px;


    display: flex;
    justify-content: space-between;
    align-items: center;
}

.file-item a {
  text-decoration: none;
}

.file-item:hover {
    background-color: #f0f0f0;
}

.file-item:last-child {
    border-bottom: none;
}

.file-name {
    font-weight: bold;
    color: #0073aa;
}

.file-info {
    font-size: 0.9em;
    color: #555;
    margin-left: 10px;
}

.file-icon {
    font-family: "Font Awesome 5 Free";
    font-size: 30px;
    display: inline-block;
    margin-right: 10px;
}

.file-icon i {
    font-style: normal;
}

.file-info {
  margin-right: 1em;
}

.file-action {
  border-radius: 3px;
  background: var(--global-palette-btn-bg);
  color: var(--global-palette-btn);
  padding: 0.4em 1em;

  font-size: 1.125rem;
  line-height: 1.6;
  display: inline-block;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.file-action:hover {
    color: var(--global-palette-btn-hover);
    background: var(--global-palette-btn-bg-hover);
}

.file-print-button {
  margin-right: 0.5em;
}

.file-email-button {
  margin-right: 0.5em;
}

.file-item .left {
    display: flex;
    align-items: center;
}

.file-item .right {
    display: flex;
    align-items: center;
    text-align: right;
    font-size: 0.9em;
    color: #555;
    justify-content: center;
    min-width: 150px;
}

/* Email Overlay styling */
#emailOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 9998;
}

/* Email Popup container styling */
#emailPopup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 9999;
}

/* Content inside popup */
#popupContent {
    text-align: center;
}

#emailPopup label {
  display: block;
  text-align: left;
}

#emailPopup button[type=submit] {
  margin-top: 10px;
}

/* Close button styling */
#closeEmailPopup {
    background: var(--global-palette1);
    color: white;
    border: none;
    padding: 0px;
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
    border-radius: 30px;
    width: 30px;
    height: 30px;
    margin-top: -10px;
    margin-right: -10px;
    z-index: 2;
}

#closeEmailPopup:hover {
    background: var(--global-palette2);
}

.progress-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  z-index: 1;
}

.progress-indicator {
    font-size: 16px;
    color: #555;
    text-align: center;
    margin: 20px 0;
}

.success-message {
    font-size: 16px;
    color: #28a745; /* Green color for success */
    text-align: center;
    margin: 20px 0;
}

.error-message {
    font-size: 16px;
    color: #dc3545; /* Red color for errors */
    text-align: center;
    margin: 20px 0;
}

.file-download-pagination {
  display: flex;
  justify-content: space-between;
  background: #f9f9f9;
  padding: 10px;
  margin-bottom: 10px;
}

.file-download-previous {
  text-decoration: none; /* Optional: Customize link styles */
  margin-right: auto;
}

.file-download-next {
  text-decoration: none; /* Optional: Customize link styles */
  margin-left: auto; 
}