.ares-dashboard {
    --ares-bg: #03101a;
    --ares-panel: #071a27;
    --ares-panel-2: #0a1d2b;
    --ares-border: rgba(128, 183, 212, .2);
    --ares-text: #e8f2f8;
    --ares-muted: #9eb4c1;
    --ares-accent: #8cc63f;
    --ares-blue: #80b7d4;
    background: var(--ares-bg);
    color: var(--ares-text);
    display: grid;
    gap: 22px;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    overflow-x: clip;
    padding: clamp(16px, 2.2vw, 28px);
    width: 100vw;
}

.ares-dashboard,
.ares-dashboard * {
    box-sizing: border-box;
}

.ares-dashboard-page .entry-header,
.ares-dashboard-page .page-header,
.ares-dashboard-page .entry-title {
    display: none;
}

.ares-dashboard-page .inside-article,
.ares-dashboard-page .entry-content {
    margin-top: 0 !important;
}

.ares-dashboard-page .site-content,
.ares-dashboard-page .content-area,
.ares-dashboard-page .site-main,
.ares-dashboard-page .inside-article,
.ares-dashboard-page .entry-content {
    background: transparent !important;
}

.ares-dashboard-page .site-content,
.ares-dashboard-page .inside-article {
    padding-top: 0 !important;
}

.ares-dashboard-page .inside-article {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.ares-dashboard-page .site-main {
    margin-top: 0 !important;
}

.ares-dashboard > * {
    margin-left: auto;
    margin-right: auto;
    max-width: 1280px;
    width: 100%;
}

.ares-dashboard__hero {
    border-bottom: 1px solid rgba(128, 183, 212, .14);
    padding: 4px 0 16px;
}

.ares-dashboard__hero p {
    color: var(--ares-accent);
    font-size: .76rem;
    font-weight: 850;
    letter-spacing: .08em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.ares-dashboard__hero h1 {
    color: #fff;
    font-size: clamp(2rem, 3.8vw, 3.35rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.02;
    margin: 0;
}

.ares-dashboard__layout,
.ares-dashboard__content,
.ares-dashboard__main,
.ares-dashboard__sidebar {
    min-width: 0;
}

.ares-dashboard__jump {
    display: none;
}

.ares-dashboard__layout {
    display: grid;
    gap: 22px;
}

.ares-dashboard__content {
    align-items: start;
    display: grid;
    gap: 26px;
    grid-template-columns: minmax(0, 1fr);
}

.ares-dashboard__main,
.ares-dashboard__sidebar {
    display: grid;
    gap: 22px;
}

.ares-dashboard__section {
    scroll-margin-top: 88px;
}

.ares-dashboard__section {
    min-width: 0;
}

.ares-dashboard__section > h2 {
    align-items: center;
    color: var(--ares-accent);
    display: flex;
    font-size: .78rem;
    font-weight: 850;
    gap: 10px;
    letter-spacing: .06em;
    margin: 0 0 12px;
    text-transform: uppercase;
}

.ares-dashboard__section > h2::before {
    border-left: 2px solid var(--ares-accent);
    border-right: 2px solid var(--ares-accent);
    content: "";
    flex: 0 0 auto;
    height: 16px;
    width: 6px;
}

.ares-dashboard__section > h2::after {
    background: rgba(128, 183, 212, .14);
    content: "";
    flex: 1;
    height: 1px;
}

.ares-dashboard [data-ares-feed],
.ares-dashboard [data-ares-saved] {
    display: grid;
    gap: 10px;
}

.ares-dashboard [data-ares-feed="top-three"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ares-dashboard [data-ares-feed="main"] {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ares-dashboard [data-ares-saved] {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ares-dashboard__item {
    background: linear-gradient(180deg, rgba(10, 29, 43, .92), rgba(4, 16, 26, .96));
    border: 1px solid var(--ares-border);
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    color: var(--ares-text);
    display: grid;
    grid-template-rows: auto 1fr;
    height: 100%;
    min-width: 0;
    overflow: hidden;
}

.ares-dashboard__item--briefing:first-child {
    border-color: rgba(140, 198, 63, .45);
}

.ares-dashboard__item--briefing {
    grid-template-rows: auto minmax(0, 1fr);
}

.ares-dashboard__item--briefing .ares-dashboard__thumb {
    aspect-ratio: 16 / 9;
}

.ares-dashboard__item--briefing .ares-dashboard__item-body {
    align-content: stretch;
}

.ares-dashboard__item-body {
    display: grid;
    gap: 7px;
    grid-template-rows: auto auto minmax(0, 1fr);
    min-width: 0;
    padding: 12px 13px 14px;
}

.ares-dashboard__media {
    position: relative;
}

.ares-dashboard__thumb {
    align-items: center;
    aspect-ratio: 16 / 9;
    background: rgba(118, 200, 255, .08);
    display: flex;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    width: 100%;
}

.ares-dashboard__thumb img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.ares-dashboard__thumb--empty {
    background:
        radial-gradient(circle at 20% 15%, rgba(118, 200, 255, .16), transparent 35%),
        linear-gradient(180deg, rgba(10, 29, 43, .98), rgba(4, 16, 26, .98));
    color: rgba(232, 242, 248, .46);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.ares-save-toggle {
    align-items: center;
    background: rgba(3, 16, 26, .86);
    border: 1px solid rgba(232, 242, 248, .28);
    border-radius: 3px;
    cursor: pointer;
    display: inline-flex;
    font-size: 0;
    height: 34px;
    justify-content: center;
    position: absolute;
    right: 10px;
    top: 10px;
    width: 34px;
    z-index: 2;
}

.ares-save-toggle::before {
    background: #e8f2f8;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%);
    content: "";
    display: block;
    height: 20px;
    width: 16px;
}

.ares-save-toggle:hover {
    background: rgba(140, 198, 63, .22);
    border-color: rgba(140, 198, 63, .72);
}

.ares-save-toggle[data-saved="1"] {
    background: rgba(140, 198, 63, .95);
    border-color: rgba(140, 198, 63, .95);
}

.ares-save-toggle[data-saved="1"]::before {
    background: #03101a;
}

.ares-dashboard__item h3 {
    color: #fff;
    font-size: clamp(1rem, 1.1vw, 1.12rem);
    font-weight: 800;
    line-height: 1.22;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ares-dashboard__item--briefing h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 4;
}

.ares-dashboard__item--saved h3,
.ares-dashboard__item--feed h3 {
    -webkit-line-clamp: 3;
}

.ares-dashboard__item h3 a {
    color: inherit;
    text-decoration: none;
}

.ares-dashboard__item h3 a:hover {
    color: var(--ares-accent);
}

.ares-dashboard__item p,
.ares-dashboard__excerpt {
    color: rgba(232, 242, 248, .74);
    font-size: .9rem;
    line-height: 1.45;
    margin: 0 0 4px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.ares-dashboard__item--briefing p {
    -webkit-line-clamp: 3;
}

.ares-dashboard__keypoints {
    align-self: start;
    display: grid;
    gap: 5px;
    list-style: none;
    margin: 0 0 5px;
    max-height: 6.85em;
    overflow: hidden;
    padding: 0;
}

.ares-dashboard__keypoints li {
    color: rgba(232, 242, 248, .8);
    font-size: .82rem;
    line-height: 1.34;
    padding-left: 16px;
    position: relative;
}

.ares-dashboard__keypoints li::before {
    background: var(--ares-accent);
    border-radius: 999px;
    box-shadow: 0 0 0 4px rgba(140, 198, 63, .12);
    content: "";
    height: 5px;
    left: 2px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
}

.ares-dashboard__meta {
    align-items: center;
    color: var(--ares-muted);
    display: flex;
    flex-wrap: wrap;
    font-size: .74rem;
    gap: 6px 9px;
}

.ares-dashboard__meta span {
    border: 1px solid rgba(140, 198, 63, .34);
    border-radius: 3px;
    color: var(--ares-accent);
    font-size: .62rem;
    font-weight: 850;
    letter-spacing: .06em;
    padding: 3px 7px;
    text-transform: uppercase;
}

/* Badge Premium — oro/ambra per distinguersi dal verde accent */
.ares-dashboard__meta .ares-badge--premium {
    background: rgba(212, 163, 30, .1);
    border-color: rgba(212, 163, 30, .5);
    color: #d4a31e;
}

.ares-dashboard__hubs-list {
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr;
}

.ares-dashboard__hub-card {
    background: linear-gradient(180deg, rgba(10, 29, 43, .92), rgba(4, 16, 26, .94));
    border: 1px solid var(--ares-border);
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    display: grid;
    gap: 12px;
    grid-template-columns: 74px minmax(0, 1fr);
    min-width: 0;
    padding: 10px;
}

.ares-dashboard__hub-card > div {
    display: grid;
    gap: 8px;
}

.ares-dashboard__hub-card .ares-action-button {
    justify-self: start;
}

.ares-dashboard__hub-image {
    align-items: center;
    aspect-ratio: 1;
    background: rgba(118, 200, 255, .08);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.ares-dashboard__hub-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.ares-dashboard__hub-initial {
    color: var(--ares-accent);
    font-weight: 900;
}

.ares-dashboard__hub-heading {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    line-height: 1.22;
}

.ares-dashboard__hub-heading a {
    color: #fff;
    font-weight: 850;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.ares-dashboard__hub-heading a:hover {
    color: var(--ares-accent);
}

.ares-dashboard__hub-type {
    color: var(--ares-accent);
    font-size: .64rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ares-dashboard__hub-card p {
    color: rgba(232, 242, 248, .7);
    font-size: .88rem;
    line-height: 1.42;
    margin: 6px 0 0;
    overflow-wrap: anywhere;
}

.ares-dashboard__empty {
    color: var(--ares-muted);
    margin: 0;
}

.ares-dashboard.is-loading {
    opacity: .72;
}

.ares-action-button,
.ares-account-form button {
    align-items: center;
    align-self: start;
    background: rgba(140, 198, 63, .1);
    border: 1px solid rgba(140, 198, 63, .45);
    border-radius: 3px;
    color: var(--ares-accent);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: .78rem;
    font-weight: 850;
    justify-content: center;
    letter-spacing: .04em;
    min-height: 34px;
    padding: 6px 11px;
    text-decoration: none;
    text-transform: uppercase;
}

.ares-dashboard__item .ares-action-button {
    align-self: end;
    margin-top: auto;
    width: 100%;
}

.ares-action-button:hover,
.ares-account-form button:hover {
    background: rgba(140, 198, 63, .18);
    color: #fff;
}

.ares-action-button--ghost {
    background: rgba(232, 242, 248, .04);
    border-color: rgba(232, 242, 248, .18);
    color: rgba(232, 242, 248, .78);
}

.ares-action-button[data-saved="1"] {
    background: rgba(140, 198, 63, .92);
    border-color: rgba(140, 198, 63, .92);
    color: #03101a;
}

.ares-action-button[data-saved="1"]:hover {
    background: rgba(140, 198, 63, .78);
    color: #03101a;
}

.ares-action-button:disabled {
    cursor: progress;
    opacity: .7;
}

.ares-action-button.has-error {
    background: rgba(143, 31, 31, .22);
    border-color: rgba(255, 120, 120, .55);
    color: #ffd8d8;
}

.ares-article-actions {
    background: linear-gradient(180deg, #071a27, #03101a);
    border: 1px solid rgba(128, 183, 212, .22);
    border-radius: 4px;
    color: #e8f2f8;
    display: grid;
    gap: 16px;
    margin: 30px 0;
    padding: clamp(16px, 2vw, 22px);
}

.ares-article-actions__header {
    border-bottom: 1px solid rgba(128, 183, 212, .16);
    padding-bottom: 12px;
}

.ares-article-actions__header p,
.ares-article-actions__hubs > p {
    color: #8cc63f;
    font-size: .72rem;
    font-weight: 850;
    letter-spacing: .07em;
    margin: 0 0 5px;
    text-transform: uppercase;
}

.ares-article-actions__header h2 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 850;
    line-height: 1.15;
    margin: 0;
}

.ares-article-actions__tools,
.ares-article-actions__hubs > div {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.ares-article-actions__tool,
.ares-article-actions__hub {
    background: rgba(3, 16, 26, .7);
    border: 1px solid rgba(128, 183, 212, .18);
    border-radius: 4px;
    display: grid;
    gap: 10px;
    padding: 12px;
}

.ares-article-actions__tool span,
.ares-article-actions__hub span {
    color: rgba(232, 242, 248, .62);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.ares-article-actions__hub strong {
    color: #fff;
    display: block;
    font-size: .98rem;
    line-height: 1.2;
    margin-top: 3px;
}

.ares-article-actions__tool button,
.ares-article-actions__hub .ares-action-button {
    width: 100%;
}

.ares-article-actions__tool.is-disabled {
    opacity: .58;
}

.ares-article-actions__tool button:disabled {
    background: rgba(232, 242, 248, .05);
    border: 1px solid rgba(232, 242, 248, .12);
    border-radius: 3px;
    color: rgba(232, 242, 248, .72);
    cursor: not-allowed;
    font: inherit;
    font-size: .78rem;
    font-weight: 850;
    min-height: 36px;
    padding: 6px 11px;
    text-transform: uppercase;
}

.ares-article-actions__contact {
    background: rgba(3, 16, 26, .56);
    border: 1px solid rgba(128, 183, 212, .16);
    border-radius: 4px;
    display: grid;
    gap: 12px;
    padding: 12px;
}

.ares-article-actions__contact[hidden] {
    display: none;
}

.ares-article-actions__contact label {
    color: rgba(232, 242, 248, .68);
    display: grid;
    font-size: .82rem;
    font-weight: 800;
    gap: 7px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ares-article-actions__contact textarea {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(128, 183, 212, .22);
    border-radius: 4px;
    color: #e8f2f8;
    font: inherit;
    line-height: 1.45;
    min-height: 130px;
    padding: 10px;
    resize: vertical;
    text-transform: none;
}

.ares-article-actions__contact textarea:focus {
    border-color: rgba(140, 198, 63, .68);
    outline: none;
}

.ares-article-actions__contact > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ares-article-actions__contact p {
    color: rgba(232, 242, 248, .72);
    font-size: .86rem;
    margin: 0;
}

.ares-premium-shell {
    margin-left: auto;
    margin-right: auto;
    max-width: 980px;
    padding: clamp(22px, 4vw, 46px) 16px;
}

.ares-premium-shell h1 {
    color: inherit;
    font-size: clamp(2rem, 3.6vw, 3.2rem);
    font-weight: 850;
    line-height: 1.08;
    margin: 0 0 18px;
}

.ares-premium-gate {
    background: linear-gradient(180deg, #071a27, #03101a);
    border: 1px solid rgba(128, 183, 212, .22);
    border-radius: 4px;
    color: #e8f2f8;
    display: grid;
    gap: 10px;
    margin: 28px 0;
    padding: clamp(18px, 2.2vw, 26px);
}

.ares-premium-gate__eyebrow {
    color: #8cc63f !important;
    font-size: .74rem !important;
    font-weight: 850;
    letter-spacing: .07em;
    margin: 0 !important;
    text-transform: uppercase;
}

.ares-premium-gate h2 {
    color: #fff;
    font-size: clamp(1.35rem, 2.2vw, 2rem);
    font-weight: 850;
    line-height: 1.12;
    margin: 0;
}

.ares-premium-gate > p:not(.ares-premium-gate__eyebrow) {
    color: rgba(232, 242, 248, .72);
    margin: 0;
}

.ares-premium-gate__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.ares-account-form {
    color: var(--ares-text);
    display: grid;
    gap: 14px;
    max-width: 420px;
}

.ares-account-form label {
    display: grid;
    gap: 6px;
}

.ares-account-form input[type="email"],
.ares-account-form input[type="password"],
.ares-account-form input[type="text"] {
    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--ares-border);
    border-radius: 4px;
    color: var(--ares-text);
    font: inherit;
    min-height: 42px;
    padding: 8px 10px;
}

.ares-account-form__inline {
    align-items: center;
    display: flex !important;
    gap: 8px;
}

@media (min-width: 980px) {
    .ares-dashboard__section--briefing .ares-dashboard__item:first-child {
        grid-column: span 1;
    }

    .ares-dashboard__item--briefing {
        min-height: 0;
    }
}

@media (max-width: 1100px) {
    .ares-dashboard [data-ares-feed="top-three"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .ares-dashboard {
        padding: 18px 14px;
    }

    .ares-dashboard__content {
        grid-template-columns: 1fr;
    }

    .ares-dashboard [data-ares-feed="main"] {
        grid-template-columns: 1fr;
    }

    .ares-dashboard [data-ares-feed="top-three"] {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .ares-dashboard {
        gap: 22px;
        padding: 14px 10px;
    }

    .ares-dashboard__hero {
        padding-bottom: 16px;
    }

    .ares-dashboard__hero h1 {
        font-size: clamp(1.85rem, 10vw, 2.8rem);
    }

    .ares-dashboard__jump {
        display: flex;
        gap: 8px;
        margin: -6px -10px 0;
        overflow-x: auto;
        padding: 0 10px 4px;
        position: sticky;
        scrollbar-width: none;
        top: 0;
        z-index: 5;
    }

    .ares-dashboard__jump::-webkit-scrollbar {
        display: none;
    }

    .ares-dashboard__jump a {
        background: rgba(10, 29, 43, .94);
        border: 1px solid rgba(128, 183, 212, .24);
        border-radius: 3px;
        color: var(--ares-text);
        flex: 0 0 auto;
        font-size: .72rem;
        font-weight: 850;
        letter-spacing: .05em;
        padding: 8px 10px;
        text-decoration: none;
        text-transform: uppercase;
    }

    .ares-dashboard__jump a:focus,
    .ares-dashboard__jump a:hover {
        border-color: rgba(140, 198, 63, .48);
        color: var(--ares-accent);
    }

    .ares-dashboard__layout,
    .ares-dashboard__content,
    .ares-dashboard__main,
    .ares-dashboard__sidebar {
        gap: 20px;
    }

    .ares-dashboard__hub-card {
        grid-template-columns: 58px minmax(0, 1fr);
    }
}

@media print {
    @page {
        margin: 18mm 16mm 22mm;
    }

    html,
    body {
        background: #fff !important;
        color: #111 !important;
    }

    body::before {
        color: rgba(0, 0, 0, .055);
        content: "AresDifesa.it";
        font-size: 54pt;
        font-weight: 900;
        left: 50%;
        letter-spacing: .08em;
        position: fixed;
        text-transform: uppercase;
        top: 48%;
        transform: translate(-50%, -50%) rotate(-28deg);
        z-index: 0;
    }

    body::after {
        bottom: 7mm;
        color: rgba(0, 0, 0, .72);
        content: "Copyright AresDifesa.it - Vietata la riproduzione non autorizzata.";
        font-size: 8pt;
        left: 16mm;
        position: fixed;
        right: 16mm;
        text-align: center;
        z-index: 2;
    }

    .site-header,
    .main-navigation,
    .secondary-navigation,
    .site-footer,
    .sidebar,
    .widget-area,
    .comments-area,
    .ares-article-actions,
    .ares-dashboard,
    .sharedaddy,
    .jp-relatedposts,
    .ad,
    .ads,
    [class*="advert"],
    [id*="advert"] {
        display: none !important;
    }

    .site,
    .site-content,
    .content-area,
    .site-main,
    .inside-article,
    .entry-content,
    article {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        color: #111 !important;
        margin: 0 !important;
        max-width: none !important;
        padding: 0 !important;
        position: relative;
        width: auto !important;
        z-index: 1;
    }

    .entry-title,
    h1 {
        color: #111 !important;
        font-size: 24pt !important;
        line-height: 1.12 !important;
        margin: 0 0 8mm !important;
    }

    .entry-meta,
    .posted-on,
    .byline {
        color: #555 !important;
        font-size: 9pt !important;
    }

    .entry-content,
    .entry-content p,
    .entry-content li {
        color: #111 !important;
        font-size: 11pt !important;
        line-height: 1.55 !important;
    }

    .entry-content a {
        color: #111 !important;
        text-decoration: underline !important;
    }

    .entry-content img,
    .post-image img,
    .featured-image img {
        height: auto !important;
        max-width: 100% !important;
    }
}
