/* ============================
   RESET DI BASE (NON DISTRUTTIVO)
============================ */

html,
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li {
    margin: 0;
    padding: 0;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

/* ============================
   VARIABILI GLOBALI — PALETTE NWR&V
============================ */

:root {
    --primary: #4d798b;
    --primary-dark: #355866;
    --primary-light: #e3edf0;
    --text-dark: #1e2f36;
    --text-light: #e6eef1;
    --bg-light: #ffffff;
    --bg-soft: #f7f9fa;
}

/* ============================
   BASE GENERALE
============================ */

body {
    font-family: "Quicksand", sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ============================
   LINK
============================ */

a {
    text-decoration: none;
    color: inherit;
    transition: 0.25s ease;
}

/* ============================
   SCROLL TOP BUTTON — VERSIONE CORRETTA
============================ */

.scroll-top {
    position: fixed;
    right: calc(15px + env(safe-area-inset-right));
    bottom: calc(15px + env(safe-area-inset-bottom));
    z-index: 99999;

    width: 46px;
    height: 46px;
    border-radius: 10px;

    background-color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;

    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease, visibility 0.35s ease;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.scroll-top.active {
    visibility: visible;
    opacity: 1;
}

.scroll-top i {
    font-size: 26px;
    color: #ffffff;
    line-height: 1;
    transform: translateY(-1px);
    filter: drop-shadow(0 0 2px #fff);
    transition: color 0.25s ease, filter 0.25s ease;
}

.scroll-top:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.30);
    transform: translateY(-3px);
}

@supports not (bottom: env(safe-area-inset-bottom)) {
    .scroll-top {
        bottom: 15px;
        right: 15px;
    }
}

@media (max-width: 768px) {
    .scroll-top {
        width: 48px;
        height: 48px;
    }

    .scroll-top i {
        font-size: 32px;
    }
}

/* ============================
   FEEDBACK BOX
============================ */

.feedback-box {
    margin: 40px auto;
    padding: 25px;
    max-width: 600px;
    background: var(--primary-light);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 15px 0;
}

.fb-btn {
    padding: 10px 20px;
    font-size: 20px;
    border: none;
    background: #eaeaea;
    border-radius: 8px;
    cursor: pointer;
}

.fb-btn.active {
    background: var(--primary);
    color: white;
}

#fb-commento {
    width: 100%;
    height: 80px;
    font-size: 16px;
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.fb-send {
    margin-top: 15px;
    padding: 10px 25px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 17px;
}

.fb-msg {
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary);
}

.feedback-box h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Elimina lo scatto delle frecce */
.glightbox .gbtn,
.glightbox .gbtn:hover {
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: opacity 0.3s ease !important;
}

.glightbox .gbtn {
    transition: opacity 0.3s ease !important;
}