
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Syne', sans-serif;
    background-color: #010114;
    color: #ffffff;
}

body {
    padding-top: 90px; /* Compensa l'altezza della navbar fissa */
}

/* ========== NAVBAR STYLES ========== */
.navbar{
    list-style:none;
    background:  #010319;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    margin-bottom: 0 !important;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    margin-top: 0px !important;
}

.logo {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding-bottom: 0 !important;
    transition: all 0.3s ease;
}

.logo img {
    height: 90px;
    width: auto;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(1); /* Rende l'immagine bianca */
}

.logo:hover img {
    transform: scale(1.1);
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(0, 255, 255, 0.8)); /* Glow cyan al hover */
}

.menu-items {
    display: flex;
    margin-left: auto;
}

.navbar li{
    display:inline-block;
    position:relative;
}

.navbar li a{
    display:block;
    padding:20px ;
    font-family: 'Syne', sans-serif;
    color:white !important;
    text-decoration:none;
    text-align: center;
    font-size: 20px;
    position: relative;
    transition: all 0.3s ease;
}




/* Effetto linee tech al bottom della navbar */
.navbar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg,
        #7c0bce 0%,
        #00ffff 25%,
        #7c0bce 50%,
        #00ffff 75%,
        #7c0bce 100%);
    background-size: 200% 100%;
    animation: techLine 3s linear infinite;
    box-shadow: -2px 3px 6px #7c0bce;
}

@keyframes techLine {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

/* Linea tech al hover */
.navbar li a::before {
    content: '';
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, #00ffff);
    transition: width 0.4s ease;
    box-shadow: #00ffff;
}

.navbar li a:hover::before {
    width: 100%;
}

.navbar li a:hover {
    color: #00ffff !important;
}

/* Stile per la voce attiva */
.navbar li a.active {
    color: #00ffff !important;
}

.navbar li a.active::before {
    width: 100%;
}
.navbar a ion-icon {
    font-size: 1.5rem;
    vertical-align: middle;
}
/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: #121212 0px 0px 20px 10px;
}


.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}



#parallax-image {
    background-image: url("../image/hi-tech.jpg");
    height: 500px;
    background-attachment: fixed;
    background-size: cover;
}

#parallax-image > div > div > h1 {
    color: white !important;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1s ease;
}

.hero-text {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
    animation: fadeInUp 1.2s ease;
}

.hero-content .btn {
    animation: fadeInUp 1.4s ease;
    box-shadow: 0 0 20px rgba(124, 11, 206, 0.8);
}


/*EFFETTO SCROLLING CARD appears from bottom*/
@keyframes appear{
    from{
        opacity: 0;
        scale:0.5;
    }
    to{
        opacity: 1;
        scale:1;
    }

}
.block-1{
    background-color: #121212;
    animation: appear 5s linear;
    animation-timeline: view(); /* fa l'animnazione quando è presente nello schermo*/
    animation-range: entry 0% cover 40%; /* da quando entra a quando esce dallo schermo */
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(124, 11,206, 0.8);
    margin-bottom: 20px;
}

/*Appears from lefts*/
@keyframes appearLeft{
    from{
        opacity: 0;
        transform:translateX(-200px);
    }
    to{
        opacity: 1;
        transform:translateX(0px);
    }

}

.block-2{
    background-color: #121212;
    animation: appearLeft 5s linear;
    animation-timeline: view(); /* fa l'animnazione quando è presente nello schermo*/
    animation-range: entry 0% cover 40%; /* da quando entra a quando esce dallo schermo */
    color: white;
    padding: 20px;
    border:none !important;
    border-radius: 10px;
    box-shadow: inset -1px 1px 20px 9px #21f0ec;
    margin-bottom: 20px;
}

/*Appears from right*/
@keyframes appearRight{
    from{
        opacity: 0;
        transform:translateX(200px);
    }
    to{
        opacity: 1;
        transform:translateX(0px);

    }

}

.block-3{
    background-color: #121212;
    animation: appearRight 5s linear;
    animation-timeline: view(); /* fa l'animnazione quando è presente nello schermo*/
    animation-range: entry 0% cover 40%; /* da quando entra a quando esce dallo schermo */
    color: white;
    padding: 20px;
        border:none !important;
    border-radius: 10px;
        box-shadow: inset -1px 1px 20px 9px rgba(124, 11, 206, 0.8);
    margin-bottom: 20px;
}

 .header-section-prima{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 2%;
  margin-top: 4%;

}




.container {
  width: 1200px !important;
  padding: 0 !important;
  margin-right: auto;
  margin-left: auto;

  @media screen and (min-width: 992px) and (max-width: 1439px) {
    max-width: 1279px !important;
    padding: 0 !important;
    margin: 0 80px !important;
    width: auto !important;
  }

  @media screen and (max-width: 991px) {
    max-width: 959px !important;
    margin: 0 16px !important;
    padding: 0 !important;
    width: auto !important;
  }
}

.gradient-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  padding: 30px;
  @media screen and (max-width: 991px) {
    grid-template-columns: 1fr;
  }
}

.container-title {
  font-family: "Syne", sans-serif;
  text-align: center;
  padding: 0 !important;
  font-size: 40px;
  color: #fff;
  font-weight: 600;
}
.testo{
  font-family: "Syne", sans-serif;
  text-align: center;
  padding: 0 !important;
  font-size: 20px;
  color: #fff;
  font-weight: 400;
  margin-bottom: 50px;

}
@media (max-width: 600px) {

    .container-title {
        font-size: 32px;
        font-weight: 700;
        margin-top: 2rem;
    }

    .testo {

        font-size: 17px;

    }

    .card {
    min-width: auto;
    }


    .gradient-cards{

    padding: 0px;
    }

    .container-card {
        padding: 20px;
        padding-bottom: 10%;
        box-shadow: 0px -4px 4px 0px purple;

    }

    /* Disabilita TUTTI gli effetti hover su mobile */
    .bordo-1 {
        cursor: default;
        pointer-events: none; /* Disabilita completamente le interazioni */
    }
    
    .bordo-1::before {
        display: none; /* Disabilita il bordo luminoso */
    }
    
    .bordo-1:hover {
        transform: none !important; /* Disabilita il translateY al hover */
    }
    
    .bordo-1:hover::before {
        opacity: 0;
    }
    
    /* Riattiva i click sui link/bottoni dentro le card */
    .bordo-1 * {
        pointer-events: auto;
    }
}

/* Sezione parallax statica su mobile */
@media (max-width: 768px) {

    .navbar 
    /* Disabilita effetto parallax */
    .dx-fixed-background__container {
        min-height: auto;
        height: auto;
    }
    
    .dx-fixed-background__media-wrapper {
        position: relative; /* Da absolute a relative */
        height: 300px; /* Altezza fissa */
        transform: none !important;
    }
    
    .dx-fixed-background__media-asset {
        position: static;
        transform: none !important; /* Disabilita zoom */
        filter: brightness(0.5) contrast(1.1); /* Più scura per leggibilità */
    }
    
    .stats-overlay-content {
        position: relative; /* Da absolute a relative */
        padding: 30px 15px;
        background: transparent;
    }
    
    /* Semplifica gli step */

    .ai-step {
        width: 100%;
        max-width: 100%;
        height: auto;
        padding: 20px 15px;
    }
    
    .ai-arrow {
        transform: rotate(90deg);
        font-size: 24px;
        margin: 10px 0;
    }
    
    .stats-title-overlay {
        font-size: 1.8rem;
    }
    
    .stats-subtitle-overlay {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .ai-step-title {
        font-size: 16px;
    }
    
    .ai-step-description {
        font-size: 13px;
    }
    
    .ai-tips-box {
        padding: 20px 15px;
        margin-top: 30px;
    }
    
    .ai-tips-title {
        font-size: 18px;
    }
    
    .ai-tips-list {
        grid-template-columns: 1fr;
        font-size: 14px;
    }
}
.container-title-2 {
  font-family: "Syne", sans-serif;
  text-align: center;
  padding: 0 !important;
  font-size: 30px;
  color: #fff;
  font-weight: 600;
}


.card {

  border: 0;
  width: 100%;
  margin-inline: auto;
  --bs-card-bg: transparent !important;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  perspective: 1000px;
}

.container-card {
  position: relative;
  border: 2px solid transparent;
    background: linear-gradient(233deg, #0e0a53, #371247, #0e0a53);
    /* linear-gradient(233deg, #110F2F, #135468, #110F2F);  background-clip: padding-box; */
  border-radius: 45px;
  backface-visibility: hidden;
  transform-style: preserve-3d;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 300px;
  img {
    margin-bottom: 1%;
    margin-top: 1%;
    transform: translateZ(0);
    backface-visibility: hidden;
  }

}


.card-title {

  font-family: "Syne", sans-serif;
  font-weight: 600;
  color: white;
  letter-spacing: -0.02em;
  line-height: 40px;
  font-style: normal;
  font-size: 28px;
}

.card-description {
  font-weight: 600;
  line-height: 32px;
  color: hsla(0, 0%, 100%, 0.5);
  font-size: 16px;
  max-width: 470px;
}

.btn-card {
background: #33CCCC;
    padding: 10px;
    border: none;
    border-radius: 18px;
}
.btn-card a{
    
    font-family: "Syne", sans-serif;
    font-weight: 600;
    color: rgb(0, 0, 0);
    letter-spacing: -0.02em;
    line-height: 24px;
    font-style: normal;
    font-size: 18px;
}

.btn-card:hover {
    background: #00ffff;
    box-shadow: 0 0 10px #00ffff;
    transition: all 0.3s ease;
}

/* Effetto bordo luminoso con mouse tracking */
.bordo-1 {
  position: relative;
  border-radius: 47px;
  padding: 2px;
  background: transparent;
  transition: transform 0.1s ease-out;
  transform-style: preserve-3d;
  cursor: pointer;
}

.bordo-1::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 47px;
  padding: 2px;
  background: linear-gradient(
    transparent,
    transparent
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.bordo-1:hover::before {
  background: radial-gradient(
    250px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(100, 26, 170, 0.8),
     rgb(77, 224, 230)20%,
    rgba(17, 15, 47, 0.8) 40%,
    transparent 70%
  );
  opacity: 1;
}

.bordo-1 .container-card {
  position: relative;
  z-index: 2;
  /* transition: transform 0.3s ease; */
}

.bordo-1:hover {
  transform: translateY(-5px);
}

/* ========== HAMBURGER MENU ========== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger:hover .hamburger-line {
    background: #00ffff;
    box-shadow: 0 0 10px #00ffff;
}

/* Animazione hamburger attivo */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ========== RESPONSIVE NAVBAR ========== */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .menu-items {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        max-width: 100%;
        background: rgba(1, 3, 25, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 0;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        opacity: 0;
        visibility: hidden;
        overflow-y: auto;
        z-index: 1000;
    }
    
    .menu-items.active {
        opacity: 1;
        visibility: visible;
    }
    
    .menu-items li {
        display: block;
        width: 100%;
        text-align: center;
        border-bottom: none;
        margin: 10px 0;
    }
    
    .menu-items li:last-child {
        border-bottom: none;
    }
    
    .navbar li a {
        padding: 20px;
        text-align: center;
        font-size: 24px;
        display: block;
    }
    
    .navbar li a::before {
        content:none;
    }
    
    .navbar li a:hover::before,
    .navbar li a.active::before {
        width: 60px;
    }
    
    /* Logo più piccolo su mobile */
    .logo img {
        height: 70px;
    }
    
    .logo {
        font-size: 20px;
    }
}

/* Per tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .navbar li a {
        padding: 20px 15px;
        font-size: 18px;
    }
    
    .logo img {
        height: 80px;
    }
}

/* Parallax image index */

  .spacer {
	padding-top: 300px;
}
.tds-layout.dx-fixed-background__layout {
	-webkit-padding-end: 10px;
	-webkit-padding-start: 10px;
	grid-template-areas: "main main";
	grid-template-columns: repeat(2,1fr);
	padding-inline-end: 10px;
	padding-inline-start: 10px;
}
.dx-fixed-background {
	--dx-fixed-bg-section-height: 200vh;
}
.dx-fixed-background__container {
	-webkit-box-pack: center;
	-ms-flex-pack: center;
	-webkit-box-align: center;
	-ms-flex-align: center;
	align-items: center;
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	height: var(--dx-fixed-bg-section-height);
	justify-content: center;
	overflow: clip;
	position: relative;
}
.dx-fixed-background__media {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	height: 100vh;
	margin-top: -100vh;
	overflow: hidden;
	position: sticky;
	top: 0;
}
.dx-fixed-background__media-asset {
	height: 100vh;
	-o-object-fit: cover;
	object-fit: cover;
	width: 100%;
}



.dx-fixed-background {
	--dx-fixed-bg-section-height: 200vh;
}
.dx-fixed-background__media-wrapper {
	height: var(--dx-fixed-bg-section-height);
	inset-inline-start: 0;
	position: absolute;
	top: 0;
	width: 100%;
	transform: scale(1);
	border-radius: 0;
}
.dx-fixed-background .dx-fixed-wrapper {
	padding: 24px;
	background: #fff;
	position: relative;
}



/* Stili per la sezione statistiche overlay */

.dx-fixed-background__media-asset {
    filter: brightness(0.4) contrast(1.1);
}

.dx-fixed-background__container {
    position: relative;
    min-height: 600px;
}

.stats-title-overlay {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    margin-bottom: 15px;
}

.stats-subtitle-overlay {
    font-size: 1.2rem;
    text-align: center;
    color: white;
    margin-bottom: 50px;
    font-weight: 300;
}


/* FIXED BACKGROUND SECTION STYLES */
#tesla_fixed_background_11 {
    position: relative;
    overflow: hidden;
}

.dx-fixed-background {
    position: relative;
    width: 100%;
}

.dx-fixed-background__container {
    position: relative;
    width: 100%;
    min-height: 800px;
    overflow: hidden;
}

.dx-fixed-background__media-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.dx-fixed-background__media {
    width: 100%;
    height: 100%;
    display: block;
}

.dx-fixed-background__media-asset {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2);
    transition: transform 0.5s ease-out;
}

/* Effetto zoom quando l'immagine entra nel viewport */
.dx-fixed-background__media-wrapper.zoomed .dx-fixed-background__media-asset {
    transform: scale(1);
}

.stats-overlay-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;

}



/* Responsive per la sezione istruzioni */
@media (max-width: 768px) {
    .dx-fixed-background__container {
        min-height: auto;
    }

    .stats-overlay-content {
        position: relative;
        padding: 40px 20px;
        

    }

    .stats-title-overlay {
        font-size: 2rem;
    }

    .stats-subtitle-overlay {
        font-size: 1rem;
    }
}

/* ========== FOOTER STYLES ========== */
.footer {
    background: #010319;
    color: white;
    padding: 60px 20px 30px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 30px;
}

/* Colonna 1 - Logo */
.footer-column-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: translateY(-5px);
}

.footer-logo img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 15px;
}

.footer-logo-text {
    font-size: 28px;
    font-weight: bold;
    color: white;
    font-family: 'Syne', sans-serif;
}

.footer-logo-text span {
    color: #33CCCC;
}

.footer-tagline {
    margin-top: 15px;
    font-size: 14px;
    color: #a8a8a8;
    max-width: 250px;
}

/* Colonna 2 e 3 - Links e Contatti */
.footer-column h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
    font-family: 'Syne', sans-serif;
    border-bottom: 2px solid #33CCCC;
    padding-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #d1d1d1;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-column ul li a:hover {
    color: #33CCCC;
    padding-left: 5px;
}

/* Contatti */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    color: #d1d1d1;
    font-size: 14px;
}

.footer-contact-item i {
    color: #33CCCC;
    margin-right: 10px;
    margin-top: 2px;
    font-size: 16px;
}

.footer-contact-item a {
    color: #d1d1d1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: #33CCCC;
}

/* Social Media */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(51, 204, 204, 0.1);
    border-radius: 50%;
    color: #33CCCC;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
}

.footer-social a:hover {
    background: #33CCCC;
    color: #010319;
    transform: translateY(-3px);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 25px;
    text-align: center;
    color: #a8a8a8;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-column-logo {
        order: -1;
    }
}

/* Footer Divider */
.footer-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #7c0bce, #33CCCC);
    border: none;
    margin: 20px auto;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(51, 204, 204, 0.4);
}

/* ========== LOGIN PAGE STYLES ========== */
.login-body {
    font-family: 'Syne', sans-serif;

    /* min-height: 100vh; */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Syne', sans-serif;
    padding-top: 20px;
    padding-bottom: 20px;
}

.login-container {

    border-radius: 20px;
    padding: 10px;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(51, 204, 204, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.login-container-logo {
    text-align: center;
    margin-bottom: 1%;
    justify-content: center;

}

.login-container-logo img {
width: 20% !important;
    height: 20% !important;
}


.login-logo-text {
    font-size: 36px;
    font-weight: bold;
    color: white;
}

.login-logo-text span {
    color: #33CCCC;
}

.login-title {
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
    text-align: center;
}

.login-subtitle {
    color: #a8a8a8;
    font-size: 14px;
    text-align: center;
}

.login-form-group {
    margin: 25px;
}

.login-form-label {
    color: #d1d1d1;
    font-size: 14px;
    margin-bottom: 8px;
    margin-top: 4%;
    display: block;

}

.login-form-input {
    width: 90%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(51, 204, 204, 0.3);
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-family: 'Syne', sans-serif;
    transition: all 0.3s ease;
}

.login-form-input:focus {
    outline: none;
    border-color: #33CCCC;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(51, 204, 204, 0.3);
}

.login-form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.login-div-btn{
    text-align: center;

}

.btn-login {
    width: 50%;
    padding: 14px;
    background: linear-gradient(61deg, #2d064a 0%, #013030 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Syne', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(51, 204, 204, 0.5);
}

.btn-login:active {
    transform: translateY(0);
}
.login-alert {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.5);
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 20px;
    color: #ff6b6b;
    font-size: 14px;
    text-align: center;
    display: none; /* Nascosto per default */
}

.login-alert:not(:empty) {
    display: block; /* Mostra solo se ha contenuto */
}

.login-alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.5);
    color: #28a745;
}

.login-tech-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #7c0bce, #33CCCC);
    margin: 20px auto;
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(51, 204, 204, 0.5);
}

@keyframes login-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


/* ========== ASK PAGE STYLES ========== */
.title-sec-page{
  font-size: 40px;
  color: white;
  text-align: center;
}

.ask-container{
    display: flex;

}

.ask-chat{
    background-color: #0e0e0e47;
    border: 2px #0B2A39 solid;
}

/*====== AI STEP SECTION ======*/

/* AI GUIDE STYLES - Timeline orizzontale */
.ai-guide-steps {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    top: 150px;
    max-width: 1200px;
    padding: 40px 20px;
    
}

/* Linea orizzontale della timeline */
.ai-guide-steps::before {
    content: '';
    position: absolute;
    width: calc(100% - 160px);
    height: 3px;
    background: linear-gradient(to right, #33CCCC, #7c0bce, #33CCCC, #7c0bce);
    top: 50px;
    left: 80px;
    z-index: 0;
}

.ai-step {
    background: #0a0a1f;
    border: none;
    border-left: 5px solid #33CCCC;
    border-radius: 0;
    padding: 30px 20px;
    width: 100%;
    max-width: 250px;
    text-align: left;
    position: relative;
    box-shadow: 
        8px 8px 0px rgba(51, 204, 204, 0.15),
        0 4px 20px rgba(0, 0, 0, 0.3);
    height: auto;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    z-index: 1;
    opacity: 0;
}

/* Attiva animazione solo quando è visibile */
.ai-step.visible {
    animation: show-step 0.8s ease forwards;
}

/* Ritardi per ogni step */
.ai-step.visible[data-step="1"] {
    animation-delay: 0.3s;
}

.ai-step.visible[data-step="2"] {
    animation-delay: 1s;
}

.ai-step.visible[data-step="3"] {
    animation-delay: 1.7s;
}

.ai-step.visible[data-step="4"] {
    animation-delay: 2.4s;
}

@keyframes show-step {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Colori alternati per step */
.ai-step[data-step="1"] {
    border-left-color: #33CCCC;
        top: -63px;
}

.ai-step[data-step="2"] {
        top: -179px;
    border-left-color: #7c0bce;
    box-shadow: 
        8px 8px 0px rgba(124, 11, 206, 0.15),
        0 4px 20px rgba(0, 0, 0, 0.3);
}

.ai-step[data-step="3"] {
        top: -58px;
    border-left-color: #33CCCC;
}

.ai-step[data-step="4"] {
        top: -179px;
    border-left-color: #7c0bce;
    box-shadow: 
        8px 8px 0px rgba(124, 11, 206, 0.15),
        0 4px 20px rgba(0, 0, 0, 0.3);
}

.ai-step-number {
    position: static;
    background: none;
    color: #33CCCC;
    width: auto;
    height: auto;
    border-radius: 0;
    display: block;
    font-size: 56px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 15px;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.3);
    font-family: 'Syne', sans-serif;
}

.ai-step[data-step="2"] .ai-step-number,
.ai-step[data-step="4"] .ai-step-number {
    color: #7c0bce;
}

.ai-step-content {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    flex: 1;
}

.ai-step-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: left;
    line-height: 1.3;
}

.ai-step-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: left;
    flex: 1;
}

.ai-step-icon {
    font-size: 40px;
    margin-top: auto;
    color: #33CCCC;
    opacity: 0.8;
    align-self: flex-end;
}

.ai-step[data-step="2"] .ai-step-icon,
.ai-step[data-step="4"] .ai-step-icon {
    color: #7c0bce;
}

/* Responsive per layout timeline orizzontale */
@media (max-width: 768px) {
    .ai-guide-steps {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding: 40px 20px;
        top: 40px;
    }
    
    .ai-guide-steps::before {
        width: 3px;
        height: calc(100% - 100px);
        background: linear-gradient(to bottom, #33CCCC, #7c0bce, #33CCCC, #7c0bce);
        top: 50px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .ai-step {
        position: relative !important;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .ai-step[data-step="1"] {
    border-left-color: #33CCCC;
        top: -59px;
}

.ai-step[data-step="2"] {
        top: -42px;
    border-left-color: #7c0bce;
    box-shadow: 
        8px 8px 0px rgba(124, 11, 206, 0.15),
        0 4px 20px rgba(0, 0, 0, 0.3);
}

.ai-step[data-step="3"] {
        top: -25px;
    border-left-color: #33CCCC;
}

.ai-step[data-step="4"] {
        top: -8px;
    border-left-color: #7c0bce;
    box-shadow: 
        8px 8px 0px rgba(124, 11, 206, 0.15),
        0 4px 20px rgba(0, 0, 0, 0.3);
}

}

.ai-tips-box {
    background: rgba(51, 204, 204, 0.1);
    border: 2px solid rgba(51, 204, 204, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin-top: 40px;
    backdrop-filter: blur(10px);
}

.ai-tips-title {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.ai-tips-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.ai-tips-list li {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.ai-tips-list li:hover {
    background: rgba(51, 204, 204, 0.2);
    transform: translateX(10px);
}

/* Responsive */
@media (max-width: 768px) {
    .ai-guide-steps {
        flex-direction: column;
    }

    .ai-arrow {
        transform: rotate(90deg);
        margin: 20px 0;
    }

    .ai-step {
        width: 100%;
        max-width: 300px;
    }
}

/* ========== ASK PAGE - CHAT STYLES ========== */

.pdf-list {
    overflow-y: auto;
    max-width: 160px;
}

.pdf-item {
    position: relative;
    padding: 12px 10px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(51, 204, 204, 0.1) 0%, rgba(124, 11, 206, 0.1) 100%);
    border: 2px solid transparent;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 10px;
    word-wrap: break-word;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.pdf-item::before {
    content: '📄';
    position: absolute;
    top: -8px;
    right: -8px;
    font-size: 28px;
    opacity: 0.15;
    transform: rotate(15deg);
    transition: all 0.3s ease;
}

.pdf-item:hover {
    background: linear-gradient(135deg, rgba(51, 204, 204, 0.2) 0%, rgba(124, 11, 206, 0.2) 100%);
    border-color: rgba(51, 204, 204, 0.5);
}

.pdf-item:hover::before {
    transform: rotate(25deg) scale(1.2);
    opacity: 0.25;
}

.pdf-item a {
    text-decoration: none;
    color: #ffffff;
    display: block;
}

.pdf-name {
    font-weight: 700;
    color: #00ffff;
    font-size: 13px;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 140px;
    margin-bottom: 6px;
}

.pdf-item small {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.6);
    display: block;
    line-height: 1.4;
}
.ask-page{
    justify-items: center !important;
    margin-top: 1%;
    margin-bottom: 100px;
}
/* Main container */
.ask-container {
    /* display: grid;
    grid-template-columns: 180px 1fr 400px; */
    gap: 20px;
    max-width: auto;
    /* margin: 0 2%;
    padding: 20px; */
    min-height: 80vh;
}

/* Colonna sinistra - Storico chat */
.ask-chat {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 15px 10px;
    max-width: 180px;
    width: 100%;
        border-radius: 8px;
}


.ask-chat > div:first-child {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
}


.ask-chat > div:first-child h2 {
    text-align: center;
    margin-bottom: 20px;
}

.ask-chat > div:last-child {
    padding: 20px 0;
    text-align: center;
}

.ask-chat button {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    background-color: #007bff;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ask-chat button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.pulsanti-risposta-pdf{
    text-align: center !important;
    display: flex;
    margin-top: 2%;
        justify-self: center;
}

/* .ask-chat button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #7c0bce 0%, #33CCCC 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Syne', sans-serif;
}

.ask-chat button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(51, 204, 204, 0.4);
} */

/* Colonna destra - Risposta */
.ask-risposta {
    background: linear-gradient(180deg, rgba(10, 10, 31, 0.4) 0%, rgba(1, 1, 20, 0.6) 100%);
    padding: 10px;
    border: 1px solid rgba(51, 204, 204, 0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    max-height: 120vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: none; /* Nascosto per default */
}
/* Mostra solo quando contiene un alert */
.ask-risposta:has(.alert) {
    display: block;
}
.ask-check{
display: flex;
    align-items: center;
    justify-content: space-evenly;
    color: white;
    flex-wrap: wrap;
}

.form-check {
    margin-right: 8px; 
}

.ask-risposta .alert {
    background: rgba(51, 204, 204, 0.1);
    border: 2px solid rgba(51, 204, 204, 0.3);
    border-radius: 15px;
    color: #ffffff;
    margin: 0;
}

.ask-risposta .alert h5 {
    color: #33CCCC;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ask-risposta .alert p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-size: 15px;
}

/* Card centrale - Form */
.ask-container .card {
    background: linear-gradient(180deg, rgba(10, 10, 31, 0.5) 0%, rgba(1, 1, 20, 0.7) 100%);
    border: 2px solid rgba(51, 204, 204, 0.2);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.ask-container .card-body {
    padding: 30px;
}

.ask-container .title-sec-page {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
}

.ask-container .form-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-bottom: 15px;
    display: block;
}

/* Select styling */
.ask-container .form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(51, 204, 204, 0.3);
    border-radius: 10px;
    color: #ffffff;
    padding: 12px 15px;
    font-size: 14px;
    font-family: 'Syne', sans-serif;
    transition: all 0.3s ease;
}

.ask-container .form-select optgroup {
    background: #0a0a1a !important;
    color: #33CCCC !important;
    font-weight: 700 !important;
    font-style: normal !important;
}

.ask-container .form-select option {
    background: #1a1a2e !important;
    color: #ffffff !important;
    padding: 10px !important;
    font-weight: 400 !important;
}
.ask-container .form-select:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #33CCCC;
    outline: none;
    box-shadow: 0 0 15px rgba(51, 204, 204, 0.3);
    color: #ffffff;
}

.ask-container .form-select option {
    background: #1a1a2e;
    color: #ffffff;
    padding: 10px;
}

/* Textarea styling */
.ask-container .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(51, 204, 204, 0.3);
    border-radius: 15px;
    color: #ffffff;
    padding: 15px;
    font-size: 15px;
    font-family: 'Syne', sans-serif;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 120px;
}

.ask-container .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #33CCCC;
    outline: none;
    box-shadow: 0 0 20px rgba(51, 204, 204, 0.3);
    color: #ffffff;
}

.ask-container .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* Button styling */
.ask-container .btn-primary {
    --btn-default-bg: #010114;
    --btn-padding: 15px 20px;
    --btn-hover-bg: rgb(0, 0, 0);
    --btn-transition: .3s;
    --btn-letter-spacing: .1rem;
    --btn-animation-duration: 1.2s;
    --btn-shadow-color: rgba(0, 0, 0, 0.137);
    --btn-shadow: 0 2px 10px 0 var(--btn-shadow-color);
    --hover-btn-color: #30b8ee;
    --default-btn-color: #fff;
    --font-size: 16px;
    --font-weight: 600;
    --font-family: Menlo, Roboto Mono, monospace;
    box-sizing: border-box;
    padding: var(--btn-padding);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--default-btn-color);
    font: var(--font-weight) var(--font-size) var(--font-family);
    background: var(--btn-default-bg);
    border: 2px solid rgba(51, 204, 204, 0.3);
    cursor: pointer;
    transition: var(--btn-transition);
    overflow: hidden;
    box-shadow: var(--btn-shadow);
}


.ask-container .btn-primary span {
  letter-spacing: var(--btn-letter-spacing);
  transition: var(--btn-transition);
  box-sizing: border-box;
  position: relative;
  background: inherit;
}

.ask-container .btn-primary span::before {
  box-sizing: border-box;
  position: absolute;
  content: "";
  background: inherit;
}

.ask-container .btn-primary:hover,
.ask-container .btn-primary:focus {
  background: var(--btn-hover-bg);
}

.ask-container .btn-primary:hover span,
.ask-container .btn-primary:focus span {
  color: var(--hover-btn-color);
}

.ask-container .btn-primary:hover span::before,
.ask-container .btn-primary:focus span::before {
  animation: chitchat linear both var(--btn-animation-duration);
}

@keyframes chitchat {
  0% {
    content: "#";
  }

  5% {
    content: ".";
  }

  10% {
    content: "^{";
  }

  15% {
    content: "-!";
  }

  20% {
    content: "#$_";
  }

  25% {
    content: "№:0";
  }

  30% {
    content: "#{+.";
  }

  35% {
    content: "@}-?";
  }

  40% {
    content: "?{4@%";
  }

  45% {
    content: "=.,^!";
  }

  50% {
    content: "?2@%";
  }

  55% {
    content: "\;1}]";
  }

  60% {
    content: "?{%:%";
    right: 0;
  }

  65% {
    content: "|{f[4";
    right: 0;
  }

  70% {
    content: "{4%0%";
    right: 0;
  }

  75% {
    content: "'1_0<";
    right: 0;
  }

  80% {
    content: "{0%";
    right: 0;
  }

  85% {
    content: "]>'";
    right: 0;
  }

  90% {
    content: "4";
    right: 0;
  }

  95% {
    content: "2";
    right: 0;
  }

  100% {
    content: "";
    right: 0;
  }
}
@media (max-width: 768px) {
    .ask-container .btn-primary span::before {
        animation: none !important;
    }
    
    .ask-container .btn-primary:hover span::before,
    .ask-container .btn-primary:focus span::before {
        animation: none !important;
    }
}
.ask-container .btn-outline-secondary {
    border: 2px solid rgba(51, 204, 204, 0.4);
    color: #33CCCC;
    border-radius: 10px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ask-container .btn-outline-secondary:hover {
    background: rgba(51, 204, 204, 0.1);
    border-color: #33CCCC;
    color: #33CCCC;
    transform: translateY(-2px);
}

/* Scrollbar personalizzata */
.ask-risposta::-webkit-scrollbar {
    width: 8px;
}

.ask-risposta::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);

}

.ask-risposta::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #2e183d, #243d3d);
    border-radius: 10px;
}

.ask-risposta::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #33CCCC, #7c0bce);
}

/* ========== RESPONSIVE ASK PAGE ========== */
@media (max-width: 1024px) {
    .ask-page {
        padding: 15px;
    }

    .ask-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 10px;
    }

    /* Sezione PDF - Collapsible tab su mobile */
    .ask-chat {
        order: 1;
        max-width: 100%;
        min-height: auto;
        background: linear-gradient(180deg, rgba(10, 10, 31, 0.5) 0%, rgba(1, 1, 20, 0.7) 100%);
        border: 2px solid rgba(51, 204, 204, 0.2);
        border-radius: 15px;
        padding: 0;
        backdrop-filter: blur(10px);
    }

    .ask-chat > div:first-child {
        padding: 20px;
    }

    .ask-chat > div:first-child h2 {
        font-size: 20px;
        margin-bottom: 0;
        cursor: pointer;
        padding: 15px 50px 15px 15px;
        background: rgba(51, 204, 204, 0.1);
        border-radius: 10px;
        transition: all 0.3s ease;
        user-select: none;
        position: relative;
    }

    .ask-chat > div:first-child h2:hover {
        background: rgba(51, 204, 204, 0.2);
    }

    /* Freccia cicciotta senza effetti luminosi */
    .ask-chat > div:first-child h2::before {
        content: '';
        position: absolute;
        right: 26px;
        top: 50%;
        width: 12px;
        height: 4px;
        background: #33CCCC;
        transform: translateY(-50%) rotate(45deg);
        transform-origin: left center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 2px;
    }

    .ask-chat > div:first-child h2::after {
        content: '';
        position: absolute;
        right: 20px;
        top: 50%;
        width: 12px;
        height: 4px;
        background: #33CCCC;
        transform: translateY(-50%) rotate(-45deg);
        transform-origin: right center;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 2px;
    }

    /* Lista PDF nascosta per default su mobile */
    .ask-chat .pdf-list {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                    margin-top 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s ease;
        margin-top: 0;
        opacity: 0;
    }

    /* Espande quando ha classe expanded */
    .ask-chat.expanded .pdf-list {
        max-height: 600px;
        margin-top: 20px;
        opacity: 1;
    }

    /* Animazione freccia quando aperto */
    .ask-chat.expanded > div:first-child h2::before {
        transform: translateY(-50%) rotate(-45deg);
        background: #33CCCC;
    }

    .ask-chat.expanded > div:first-child h2::after {
        transform: translateY(-50%) rotate(45deg);
        background: #33CCCC;
    }

    .ask-chat.expanded > div:first-child h2 {
        background: rgba(51, 204, 204, 0.15);
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }

    /* Card centrale - Form */
    .ask-container .card {
        order: 2;
        max-width: 100%;
        margin: 0 !important;
    }

    .ask-container .card-body {
        padding: 20px;
    }

    /* Risposta AI sotto */
    .ask-risposta {
        order: 3;
        max-height: none;
        width: 100%;
    }

    .ask-container .title-sec-page {
        font-size: 24px;
    }

    .pulsanti-risposta-pdf {
        flex-direction: column;
        gap: 10px;
    }

    .pulsanti-risposta-pdf a {
        width: 100%;
    }

    .ask-check {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pdf-item {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .ask-container .title-sec-page {
        font-size: 20px;
    }

    .ask-chat > div:first-child h2 {
        font-size: 18px;
    }

    .ask-container .form-control {
        min-height: 100px;
    }
}

/*==========ARCHIVIO=============*/
/* body.archivio-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #010114;
    font-family: 'Syne', sans-serif;
} */

.back-button {
    margin: 20px;
    text-decoration: none;
    color: #33CCCC;
    font-weight: 600;
    display: inline-block;
    transition: color 0.3s ease;
}

.archivio-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 2rem;
    margin: 60px auto;
    padding: 20px 40px;
    max-width: 1600px;
}

@media (max-width: 1200px) {
    .archivio-container {
        gap: 1.5rem;
        padding: 20px 30px;
    }
}

@media (max-width: 768px) {
    .archivio-container {
        flex-wrap: wrap;
        gap: 2.5rem;
        padding: 30px 20px;
        margin: 40px auto;
    }
    .archivio-content{
        text-align: center;
    }
}

@media (max-width: 480px) {
    .archivio-container {
        gap: 2rem;
        padding: 20px 15px;
    }

}



.archivio-container .archivio-card {
    position: relative;
    width: 300px;
    height: 400px;
    background: var(--clr);
    border-radius: 20px;
    border-top-left-radius: 70px;
    overflow: hidden;
    margin-bottom: 5%;
}

.archivio-container .archivio-card .archivio-box {
    position: absolute;
    inset: 10px;
    background: #252525;
    border-radius: 10px;
}

.archivio-container .archivio-card .archivio-box .archivio-icon {
    position: absolute;
    width: 140px;
    height: 140px;
    background: var(--clr);
    border-bottom-right-radius: 50%;
    transition: 0.5s;
}

.archivio-container .archivio-card .archivio-box .archivio-icon::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 30px;
    height: 30px;
    background: transparent;
    border-top-left-radius: 30px;
    box-shadow: -5px -5px 0 5px var(--clr);
}

.archivio-container .archivio-card .archivio-box .archivio-icon::after {
    content: '';
    position: absolute;
    top: 0;
    right: -30px;
    width: 30px;
    height: 30px;
    background: transparent;
    border-top-left-radius: 30px;
    box-shadow: -5px -5px 0 5px var(--clr);
}

.archivio-container .archivio-card .archivio-box .archivio-icon .archivio-iconbox {
    position: absolute;
    inset: 10px;
    background: #252525;
    border-radius: 50%;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

.archivio-container .archivio-card .archivio-box .archivio-icon .archivio-iconbox ion-icon {
    font-size: 4rem;
    color: var(--clr);
    --ionicon-stroke-width: 20px;
}

.archivio-container .archivio-card .archivio-box .archivio-content {
    position: absolute;
    top: 150px;
    padding: 20px;

}

.archivio-container .archivio-card .archivio-box .archivio-content h3 {
    color: var(--clr);
    font-weight: 700;
    text-transform: uppercase;
}

.archivio-container .archivio-card .archivio-box .archivio-content p {
    color: #FAFAFA;
    font-size: 0.95rem;
    opacity: 0.75;
    margin: 0 0 10px;
}

.archivio-container .archivio-card .archivio-box .archivio-content a {
    background: var(--clr);
    display: inline-block;
    padding: 10px 25px;
    text-decoration: none;
    color: #333;
    text-transform: uppercase;
    font-weight: 600;
    border-radius: 30px;
    transition: 0.5s;
}

.archivio-container .archivio-card .archivio-box .archivio-content a:hover {
    letter-spacing: 0.2rem;
    background-color: transparent;
    border: 1px solid var(--clr);
    color: var(--clr);
}

@media only screen and (max-width: 1080px) {
    .archivio-container {
        padding: 2rem 1rem;
    }
}

/* domande aperte*/
.domande_aperte-container {
    max-width: 1400px;
    margin: 10px auto;
    padding: 20px;
}

.domande_aperte-title {
    font-size: 36px;
    color: #0096FF;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 800;
    margin-top: 0;
}

.domande_aperte-table-wrapper {
    background: linear-gradient(180deg, rgba(10, 10, 31, 0.5) 0%, rgba(1, 1, 20, 0.7) 100%);
    border: 2px solid rgba(51, 204, 204, 0.2);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    overflow-x: auto;
}

.domande_aperte-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.domande_aperte-table thead tr {
    background: #0096FF;
}

.domande_aperte-table th {
    color: #000000ff;
    font-weight: 600;
    padding: 15px 20px;
    text-align: left;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.domande_aperte-table th:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.domande_aperte-table th:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.domande_aperte-table tbody tr {
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.domande_aperte-table tbody tr:hover {
    background: rgba(51, 204, 204, 0.1);
    transform: translateX(5px);

}

.domande_aperte-table td {
    padding: 15px 10px;
    color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(51, 204, 204, 0.1);
    border-bottom: 1px solid rgba(51, 204, 204, 0.1);
}

.domande_aperte-table td:first-child {
    border-left: 1px solid rgba(51, 204, 204, 0.1);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.domande_aperte-table td:last-child {
    border-right: 1px solid rgba(51, 204, 204, 0.1);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.domande_aperte-id {
    font-weight: 600;
    color: #33CCCC;
    font-family: monospace;
    font-size: 12px;
}

.domande_aperte-pdf-name {
    color: #ffffff;
    font-weight: 500;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.domande_aperte-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.domande_aperte-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.domande_aperte-badge-obiettivo {
    background: rgba(124, 11, 206, 0.2);
    color: #b87fff;
    border: 1px solid rgba(124, 11, 206, 0.4);
}

.domande_aperte-badge-livello {
    background: rgba(51, 204, 204, 0.2);
    color: #00ffff;
    border: 1px solid rgba(51, 204, 204, 0.4);
}

.domande_aperte-badge-materia {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.domande_aperte-actions {
    display: flex;
    gap: 10px;
}

.domande_aperte-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.domande_aperte-btn-view {
    background: #0096FF;
    color: black;
}

.domande_aperte-btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(51, 204, 204, 0.4);
}

.domande_aperte-btn-delete {
    background: #dc3545;
    color: white;
}

.domande_aperte-btn-delete:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.domande_aperte-no-data {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
}

@media (max-width: 768px) {
    .domande_aperte-table-wrapper {
        padding: 10px;
        background: transparent;
        border: none;
        overflow-x: hidden;
    }

    .domande_aperte-title {
        font-size: 28px;
        font-weight: 700;

    }

    /* Nascondi intestazione tabella */
    .domande_aperte-table thead {
        display: none;
    }

    .domande_aperte-table,
    .domande_aperte-table tbody,
    .domande_aperte-table tr {
        display: block;
        width: 100%;
    }

    /* Card compatta ed elegante */
    .domande_aperte-table tbody tr {
        position: relative;
        margin-bottom: 20px;
        background: linear-gradient(135deg, rgba(0, 150, 255, 0.08) 0%, rgba(124, 11, 206, 0.08) 100%);
        border: 1px solid rgba(0, 150, 255, 0.3);
        border-left: 4px solid #0096FF;
        border-radius: 16px;
        padding: 16px 14px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
        width: 100%;
        box-sizing: border-box;
    }

    .domande_aperte-table tbody tr:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(0, 150, 255, 0.25);
        border-color: rgba(0, 150, 255, 0.5);
    }

    .domande_aperte-table td {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
        padding: 5px 0;
        border: none !important;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .domande_aperte-table td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 9px;
        color: #0096FF;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        min-width: 55px;
        max-width: 55px;
        flex-shrink: 0;
    }

    .domande_aperte-pdf-name {
        flex: 1;
        white-space: normal;
        font-size: 14px;
        line-height: 1.4;
        color: #ffffff;
        font-weight: 600;
        word-break: break-word;
    }

    .domande_aperte-id {
        font-size: 11px;
        opacity: 0.85;
        font-family: monospace;
        word-break: break-all;
    }

    .domande_aperte-date {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.75);
    }

    .domande_aperte-badge {
        font-size: 9px;
        padding: 3px 8px;
        word-break: normal;
    }

    .domande_aperte-actions {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(0, 150, 255, 0.2);
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .domande_aperte-actions::before {
        display: none;
    }

    .domande_aperte-btn-view {
        width: auto;
        min-width: 150px;
        text-align: center;
        padding: 10px 20px;
        font-size: 12px;
        border-radius: 10px;
    }

    .domande_aperte-btn-delete {
        width: auto;
        min-width: 150px;
        text-align: center;
        padding: 10px 20px;
        font-size: 12px;
        border-radius: 10px;
    }
}

/*quiz*/
.quiz-container {
    max-width: 1400px;
    margin: 10px auto;
    padding: 20px;
}

.quiz-title {
    font-size: 36px;
    color: #90EE90;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 800;
    margin-top: 0;
}

.quiz-table-wrapper {
    background: linear-gradient(180deg, rgba(10, 10, 31, 0.5) 0%, rgba(1, 1, 20, 0.7) 100%);
    border: 2px solid rgba(51, 204, 204, 0.2);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    overflow-x: auto;
}

.quiz-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.quiz-table thead tr {
    background: #90EE90;
}

.quiz-table th {
    color: #000000ff;
    font-weight: 600;
    padding: 15px 20px;
    text-align: left;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quiz-table th:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.quiz-table th:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.quiz-table tbody tr {
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.quiz-table tbody tr:hover {
    background: rgba(51, 204, 204, 0.1);
    transform: translateX(5px);
}

.quiz-table td {
    padding: 15px 10px;
    color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(51, 204, 204, 0.1);
    border-bottom: 1px solid rgba(51, 204, 204, 0.1);
}

.quiz-table td:first-child {
    border-left: 1px solid rgba(51, 204, 204, 0.1);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.quiz-table td:last-child {
    border-right: 1px solid rgba(51, 204, 204, 0.1);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.quiz-id {
    font-weight: 600;
    color: #33CCCC;
    font-family: monospace;
    font-size: 12px;
}

.quiz-pdf-name {
    color: #ffffff;
    font-weight: 500;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.quiz-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.quiz-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.quiz-badge-obiettivo {
    background: rgba(124, 11, 206, 0.2);
    color: #b87fff;
    border: 1px solid rgba(124, 11, 206, 0.4);
}

.quiz-badge-livello {
    background: rgba(51, 204, 204, 0.2);
    color: #00ffff;
    border: 1px solid rgba(51, 204, 204, 0.4);
}

.quiz-badge-materia {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.quiz-actions {
    display: flex;
    gap: 10px;
}

.quiz-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.quiz-btn-view {
    background: #90EE90;
    color: black;
}

.quiz-btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(51, 204, 204, 0.4);
}

.quiz-btn-delete {
    background: #dc3545;
    color: white;
}

.quiz-btn-delete:hover {
    background: #c82333;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.quiz-btn-delete:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.quiz-no-data {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
}

@media (max-width: 768px) {
    .quiz-table-wrapper {
        padding: 10px;
        background: transparent;
        border: none;
        overflow-x: hidden;
    }

    .quiz-title {
        font-size: 28px;
        font-weight: 700;

    }

    .quiz-table thead {
        display: none;
    }

    .quiz-table,
    .quiz-table tbody,
    .quiz-table tr {
        display: block;
        width: 100%;
    }

    .quiz-table tbody tr {
        position: relative;
        margin-bottom: 20px;
        background: linear-gradient(135deg, rgba(144, 238, 144, 0.08) 0%, rgba(124, 11, 206, 0.08) 100%);
        border: 1px solid rgba(144, 238, 144, 0.3);
        border-left: 4px solid #90EE90;
        border-radius: 16px;
        padding: 16px 14px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
        width: 100%;
        box-sizing: border-box;
    }

    .quiz-table tbody tr:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(144, 238, 144, 0.25);
        border-color: rgba(144, 238, 144, 0.5);
    }

    .quiz-table td {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
        padding: 5px 0;
        border: none !important;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .quiz-table td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 9px;
        color: #90EE90;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        min-width: 55px;
        max-width: 55px;
        flex-shrink: 0;
    }

    .quiz-pdf-name {
        flex: 1;
        white-space: normal;
        font-size: 14px;
        line-height: 1.4;
        color: #ffffff;
        font-weight: 600;
        word-break: break-word;
    }

    .quiz-id {
        font-size: 11px;
        opacity: 0.85;
        font-family: monospace;
        word-break: break-all;
    }

    .quiz-date {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.75);
    }

    .quiz-badge {
        font-size: 9px;
        padding: 3px 8px;
        word-break: normal;
    }

    .quiz-actions {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(144, 238, 144, 0.2);
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .quiz-actions::before {
        display: none;
    }

    .quiz-btn-view {
        width: auto;
        min-width: 150px;
        text-align: center;
        padding: 10px 20px;
        font-size: 12px;
        border-radius: 10px;
    }

    .quiz-btn-delete {
        width: auto;
        min-width: 150px;
        text-align: center;
        padding: 10px 20px;
        font-size: 12px;
        border-radius: 10px;
    }
}

/*riassunti*/
.riassunti-container {
    max-width: 1400px;
    margin: 10px auto;
    padding: 20px;
}

.riassunti-title {
    font-size: 36px;
    color: #7DF9FF;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 800;
    margin-top: 0;
}

.riassunti-table-wrapper {
    background: linear-gradient(180deg, rgba(10, 10, 31, 0.5) 0%, rgba(1, 1, 20, 0.7) 100%);
    border: 2px solid rgba(51, 204, 204, 0.2);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    overflow-x: auto;
}

.riassunti-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.riassunti-table thead tr {
    background: #7DF9FF;
}

.riassunti-table th {
    color: #030000ff;
    font-weight: 600;
    padding: 15px 20px;
    text-align: left;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.riassunti-table th:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.riassunti-table th:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.riassunti-table tbody tr {
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.riassunti-table tbody tr:hover {
    background: rgba(51, 204, 204, 0.1);
    transform: translateX(5px);

}

.riassunti-table td {
    padding: 15px 10px;
    color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(51, 204, 204, 0.1);
    border-bottom: 1px solid rgba(51, 204, 204, 0.1);
}

.riassunti-table td:first-child {
    border-left: 1px solid rgba(51, 204, 204, 0.1);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.riassunti-table td:last-child {
    border-right: 1px solid rgba(51, 204, 204, 0.1);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.riassunti-id {
    font-weight: 600;
    color: #33CCCC;
    font-family: monospace;
    font-size: 12px;
}

.riassunti-pdf-name {
    color: #ffffff;
    font-weight: 500;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.riassunti-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.riassunti-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.riassunti-badge-obiettivo {
    background: rgba(124, 11, 206, 0.2);
    color: #b87fff;
    border: 1px solid rgba(124, 11, 206, 0.4);
}

.riassunti-badge-livello {
    background: rgba(51, 204, 204, 0.2);
    color: #00ffff;
    border: 1px solid rgba(51, 204, 204, 0.4);
}

.riassunti-badge-materia {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.riassunti-actions {
    display: flex;
    gap: 10px;
}

.riassunti-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.riassunti-btn-view {
    background:#7DF9FF;
    color: black;
}

.riassunti-btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(51, 204, 204, 0.4);
}

.riassunti-btn-delete {
    background: #dc3545;
    color: white;
}

.riassunti-btn-delete:hover {
    background: #c82333;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.riassunti-no-data {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
}

@media (max-width: 768px) {
    .riassunti-table-wrapper {
        padding: 10px;
        background: transparent;
        border: none;
        overflow-x: hidden;
    }

    .riassunti-title {
        font-size: 28px;
        font-weight: 700;

    }

    .riassunti-table thead {
        display: none;
    }

    .riassunti-table,
    .riassunti-table tbody,
    .riassunti-table tr {
        display: block;
        width: 100%;
    }

    .riassunti-table tbody tr {
        position: relative;
        margin-bottom: 20px;
        background: linear-gradient(135deg, rgba(125, 249, 255, 0.08) 0%, rgba(124, 11, 206, 0.08) 100%);
        border: 1px solid rgba(125, 249, 255, 0.3);
        border-left: 4px solid #7DF9FF;
        border-radius: 16px;
        padding: 16px 14px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
        width: 100%;
        box-sizing: border-box;
    }

    .riassunti-table tbody tr:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(125, 249, 255, 0.25);
        border-color: rgba(125, 249, 255, 0.5);
    }

    .riassunti-table td {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
        padding: 5px 0;
        border: none !important;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .riassunti-table td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 9px;
        color: #7DF9FF;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        min-width: 55px;
        max-width: 55px;
        flex-shrink: 0;
    }

    .riassunti-pdf-name {
        flex: 1;
        white-space: normal;
        font-size: 14px;
        line-height: 1.4;
        color: #ffffff;
        font-weight: 600;
        word-break: break-word;
    }

    .riassunti-id {
        font-size: 11px;
        opacity: 0.85;
        font-family: monospace;
        word-break: break-all;
    }

    .riassunti-date {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.75);
    }

    .riassunti-badge {
        font-size: 9px;
        padding: 3px 8px;
        word-break: normal;
    }

    .riassunti-actions {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(125, 249, 255, 0.2);
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .riassunti-actions::before {
        display: none;
    }

    .riassunti-btn-view {
        width: auto;
        min-width: 150px;
        text-align: center;
        padding: 10px 20px;
        font-size: 12px;
        border-radius: 10px;
    }

    .riassunti-btn-delete {
        width: auto;
        min-width: 150px;
        text-align: center;
        padding: 10px 20px;
        font-size: 12px;
        border-radius: 10px;
    }
}

/*approfondimenti*/
.approfondimenti-container {
    max-width: 1400px;
    margin: 10px auto;
    padding: 20px;
}

.approfondimenti-title {
    font-size: 36px;
        font-weight: 800;
    
    color: #D86C90;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 800;
    margin-top: 0;
}

.approfondimenti-table-wrapper {
    background: linear-gradient(180deg, rgba(10, 10, 31, 0.5) 0%, rgba(1, 1, 20, 0.7) 100%);
    border: 2px solid rgba(51, 204, 204, 0.2);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    overflow-x: auto;
}

.approfondimenti-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.approfondimenti-table thead tr {
    background: #d86c90;
}

.approfondimenti-table th {
    color: #030000ff;
    font-weight: 600;
    padding: 15px 20px;
    text-align: left;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.approfondimenti-table th:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.approfondimenti-table th:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.approfondimenti-table tbody tr {
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.approfondimenti-table tbody tr:hover {
    background: rgba(51, 204, 204, 0.1);
    transform: translateX(5px);

}

.approfondimenti-table td {
    padding: 15px 10px;
    color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(51, 204, 204, 0.1);
    border-bottom: 1px solid rgba(51, 204, 204, 0.1);
}

.approfondimenti-table td:first-child {
    border-left: 1px solid rgba(51, 204, 204, 0.1);
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.approfondimenti-table td:last-child {
    border-right: 1px solid rgba(51, 204, 204, 0.1);
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.approfondimenti-id {
    font-weight: 600;
    color: #33CCCC;
    font-family: monospace;
    font-size: 12px;
}

.approfondimenti-pdf-name {
    color: #ffffff;
    font-weight: 500;
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.approfondimenti-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.approfondimenti-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.approfondimenti-badge-obiettivo {
    background: rgba(124, 11, 206, 0.2);
    color: #b87fff;
    border: 1px solid rgba(124, 11, 206, 0.4);
}

.approfondimenti-badge-livello {
    background: rgba(51, 204, 204, 0.2);
    color: #00ffff;
    border: 1px solid rgba(51, 204, 204, 0.4);
}

.approfondimenti-badge-materia {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.4);
}

.approfondimenti-actions {
    display: flex;
    gap: 10px;
}

.approfondimenti-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.approfondimenti-btn-view {
    background:#d86c90;
    color: black;
}

.approfondimenti-btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(51, 204, 204, 0.4);
}

.approfondimenti-btn-delete {
    background: #dc3545;
    color: white;
}

.approfondimenti-btn-delete:hover {
    background: #c82333;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.approfondimenti-btn-delete:hover {
    background: #c82333;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
}

.approfondimenti-no-data {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
}

@media (max-width: 768px) {
    .approfondimenti-table-wrapper {
        padding: 10px;
        background: transparent;
        border: none;
        overflow-x: hidden;
    }

    .approfondimenti-title {
        font-size: 28px;
        font-weight: 700;
    }

    .approfondimenti-table thead {
        display: none;
    }

    .approfondimenti-table,
    .approfondimenti-table tbody,
    .approfondimenti-table tr {
        display: block;
        width: 100%;
    }

    .approfondimenti-table tbody tr {
        position: relative;
        margin-bottom: 20px;
        background: linear-gradient(135deg, rgba(216, 108, 144, 0.08) 0%, rgba(124, 11, 206, 0.08) 100%);
        border: 1px solid rgba(216, 108, 144, 0.3);
        border-left: 4px solid #d86c90;
        border-radius: 16px;
        padding: 16px 14px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        backdrop-filter: blur(10px);
        transition: all 0.3s ease;
        width: 100%;
        box-sizing: border-box;
    }

    .approfondimenti-table tbody tr:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 30px rgba(216, 108, 144, 0.25);
        border-color: rgba(216, 108, 144, 0.5);
    }

    .approfondimenti-table td {
        display: flex;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
        padding: 5px 0;
        border: none !important;
        text-align: left;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .approfondimenti-table td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 9px;
        color: #d86c90;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        min-width: 55px;
        max-width: 55px;
        flex-shrink: 0;
    }

    .approfondimenti-pdf-name {
        flex: 1;
        white-space: normal;
        font-size: 14px;
        line-height: 1.4;
        color: #ffffff;
        font-weight: 600;
        word-break: break-word;
    }

    .approfondimenti-id {
        font-size: 11px;
        opacity: 0.85;
        font-family: monospace;
        word-break: break-all;
    }

    .approfondimenti-date {
        font-size: 12px;
        color: rgba(255, 255, 255, 0.75);
    }

    .approfondimenti-badge {
        font-size: 9px;
        padding: 3px 8px;
        word-break: normal;
    }

    .approfondimenti-actions {
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(216, 108, 144, 0.2);
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .approfondimenti-actions::before {
        display: none;
    }

    .approfondimenti-btn-view {
        width: auto;
        min-width: 150px;
        text-align: center;
        padding: 10px 20px;
        font-size: 12px;
        border-radius: 10px;
    }

    .approfondimenti-btn-delete {
        width: auto;
        min-width: 150px;
        text-align: center;
        padding: 10px 20px;
        font-size: 12px;
        border-radius: 10px;
    }
