/* Tile moduli — stesso stile di Verdent dashboard */

.pt-dash {
    min-height: calc(100vh - 48px);
    background: #f3f4f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 48px 16px 32px;
}

.pt-dash-hero {
    text-align: center;
    margin-bottom: 40px;
}

.pt-dash-hero h1,
.pt-dash-title {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 700;
    color: #e67800;
}

.pt-dash-title .pt-spark {
    color: #e67800;
}

.pt-powered-by {
    margin: 4px 0 0;
    font-size: 12px;
    color: #9ca3af;
}

.pt-powered-dany {
    color: #e67800;
    font-weight: 600;
}

.pt-powered-email {
    color: #9ca3af;
}

.pt-welcome-msg {
    margin: 0.5rem auto 0;
    max-width: 40rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #374151;
    letter-spacing: 0.01em;
    line-height: 1.45;
}

.pt-welcome-msg .pt-welcome-greet {
    display: block;
}

.pt-welcome-msg .pt-welcome-name {
    font-weight: 700;
    color: #e67800;
}

.pt-welcome-msg .pt-welcome-empathy {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: #6b7280;
}

.pt-help-top {
    margin-top: 0;
    margin-bottom: 10px;
}

.pt-help-top > summary {
    font-size: 13px;
}

.pt-help {
    width: 100%;
    max-width: 48rem;
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px 16px;
}

.pt-help summary {
    cursor: pointer;
    font-weight: 700;
    color: #4b5563;
}

.pt-help-body {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
}

/* Griglia moduli — copia Verdent dashboard (grid-cols-2 md:grid-cols-3 gap-5 max-w-3xl) */
.pt-module-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    max-width: 48rem;
}

@media (min-width: 768px) {
    .pt-module-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .pt-module-grid--hub {
        grid-template-columns: repeat(2, 1fr);
    }
    .pt-module-grid--hub-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.module-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    padding: 32px 16px;
    text-decoration: none;
    color: #fff;
    min-height: 150px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    border: none;
    font: inherit;
}

a.module-tile:hover,
button.module-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    filter: brightness(1.08);
    color: #fff;
}

.module-tile:active {
    transform: translateY(0);
    filter: brightness(0.95);
}

.module-tile--soon {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
}

/* Come verdent: ⧉ in alto a destra apre lo stesso modulo in un’altra finestra */
.tile-newtab {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.95rem;
    line-height: 1;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.15s ease, background 0.15s ease;
    z-index: 2;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}
.module-tile:hover .tile-newtab,
.module-tile:focus-within .tile-newtab {
    opacity: 0.85;
}
.tile-newtab:hover,
.tile-newtab:focus {
    opacity: 1;
    background: rgba(255, 255, 255, 0.34);
    outline: none;
}
.module-tile--peach .tile-newtab,
.module-tile--peach-soft .tile-newtab {
    background: rgba(26, 26, 46, 0.12);
    color: #1a1a2e;
}
.module-tile--peach .tile-newtab:hover,
.module-tile--peach .tile-newtab:focus,
.module-tile--peach-soft .tile-newtab:hover,
.module-tile--peach-soft .tile-newtab:focus {
    background: rgba(26, 26, 46, 0.22);
}
@media (hover: none), (max-width: 900px) {
    .tile-newtab {
        width: 40px;
        height: 40px;
        opacity: 0.9;
        font-size: 1.1rem;
    }
}

.tile-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.module-tile--photo {
    min-height: 188px;
    padding: 20px 14px 18px;
}

.tile-photo {
    display: block;
    margin: 0 auto 12px;
    object-fit: contain;
    flex: 0 0 auto;
}

.tile-photo--card {
    width: auto;
    height: 6.6rem;
    max-width: 72%;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
}

.tile-photo--printer {
    width: auto;
    height: 6.6rem;
    max-width: 78%;
}

@media (max-width: 900px) {
    .module-tile--photo {
        min-height: 168px;
        padding: 16px 12px 14px;
    }
    .tile-photo--printer {
        height: 5.4rem;
    }
}

.tile-title {
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    line-height: 1.2;
}

.tile-subtitle {
    font-size: 0.78rem;
    opacity: 0.85;
    text-align: center;
    margin-top: 4px;
    line-height: 1.3;
}

.pt-status-bar {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    justify-content: center;
    font-size: 13px;
    color: #6b7280;
}

.pt-back {
    margin-top: 24px;
    font-size: 14px;
}

.pt-back a {
    color: #e67800;
    font-weight: 600;
    text-decoration: none;
}

.pt-hub-title {
    text-align: center;
    margin-bottom: 24px;
}

.pt-hub-title h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #374151;
}

.pt-hub-title p {
    margin: 6px 0 0;
    font-size: 14px;
    color: #6b7280;
}
