/* =========================
   GLOBAL RESET & FONTS
========================= */
@import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Comfortaa', cursive;
    scroll-behavior: smooth;
}

body {
    background-image: url('fondo.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.25);
    background-blend-mode: multiply;
    color: #fff;
}

/* =========================
   GLASSMORPHISM BASE
========================= */
.glass,
header.glass-header,
footer.glass,
.download-section {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* bordino glass */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* =========================
   HEADER
========================= */
header.glass-header {
    background-color: rgba(255, 255, 255, 0.15);
    /* sempre trasparente glass */
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 0.75rem;
    /* leggermente arrotondato */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* bordino glass */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    /* leggera ombra per stacco */
    z-index: 1000;

    /* NUOVO PADDING */
    margin: 10px;
    /* distacco dai bordi finestra */
    transition: all 0.3s ease;
}

/* Navbar icons */
.navbar-nav .nav-link img {
    height: 18px;
    opacity: 0.6;
    transition: 0.2s ease;
    padding: 0 2px;
}

.navbar-nav .nav-link img:hover {
    opacity: 1;
}

.pillola-hover {
    transition: opacity 0.3s ease;
    opacity: 0.8;
}

.pillola-hover:hover {
    opacity: 1;
}

/* =========================
   SECTIONS: TEXT ALIGNMENT
========================= */
.row.align-items-center {
    min-height: 80vh;
}

.col-lg-5,
.col-lg-6 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* centra verticalmente */
    align-items: center;
    /* centra orizzontalmente */
    text-align: center;
}

/* =========================
   SCREENSHOTS: GLASS + TILT + SHADOW
========================= */
.tilt {
    background: rgba(255, 255, 255, 0.0);
    /* glass trasparente */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    overflow: hidden;
}

.tilt:hover {
    transform: scale(1.02);
}

/* =========================
   DOWNLOAD BUTTONS
========================= */
.download-section {
    padding: 3rem 1rem;
}

.btn-outline-light {
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.btn-outline-light:hover {
    transform: scale(1.1);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
}

.btn-outline-light i {
    font-size: 1.3rem;
    transition: transform 0.25s ease;
}

.btn-outline-light:hover i {
    transform: scale(1.2);
}

/* =========================
   FOOTER
========================= */
footer.glass {
    padding: 1rem 0;
    text-align: center;
    border-radius: 0.75rem;
    margin: 10px;
    /* distacco dai bordi finestra */
}

/* =========================
   CODE HASH
========================= */
code {
    font-family: monospace;
    font-size: 0.875rem;
}

/* =========================
   TOOLTIP
========================= */
.tooltip-inner {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.tooltip.bs-tooltip-top .arrow::before,
.tooltip.bs-tooltip-bottom .arrow::before {
    border-top-color: rgba(255, 255, 255, 0.2) !important;
    border-bottom-color: rgba(255, 255, 255, 0.2) !important;
}

/* Testo copyright bianco pieno */
.copyright-text a {
    color: #ffffff !important;
}

/* Disclaimer bianco trasparente 50% */
.disclaimer-text {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* =========================
   OVERLAY STYLES
   ========================= */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.overlay-content {
    max-width: 500px;
    text-align: center;
}

.overflow-hidden {
    overflow: hidden;
}

/* =========================
   DOWNLOAD COMPONENTS
   ========================= */
.download-btn {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.2rem;
    color: white !important;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-bottom: 0.75rem;
    text-align: left;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
}

.download-btn i {
    font-size: 2rem;
    margin-right: 1.25rem;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.download-btn:hover i {
    transform: scale(1.1);
    opacity: 1;
}

.download-btn .btn-text {
    display: flex;
    flex-direction: column;
}

.download-btn .label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0.5;
    font-weight: bold;
}

.download-btn .platform {
    font-size: 1.15rem;
    font-weight: 700;
}

.download-btn .extension {
    margin-left: auto;
    font-size: 0.8rem;
    opacity: 0.4;
    font-family: 'Courier New', Courier, monospace;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.security-badge {
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.security-badge h6 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.security-badge .hash-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
}

.security-badge .hash-item:last-child {
    margin-bottom: 0;
}

.security-badge .hash-label {
    color: rgba(255, 255, 255, 0.8);
}

.security-badge code {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
}