/* RESET & BASE*/

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

:root {
    --color-primary: #1b3a5a;
    --color-primary-soft: #244a74;
    --color-accent: #f4b000;
    --color-bg: #f5f7fb;
    --color-surface: #ffffff;
    --color-border: #d2d6e0;
    --color-text: #1f2933;
    --color-muted: #6b7280;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 10px;
    --shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.08);
    --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.5;
}

/* Link */

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}


/* GENERAL LAYOUT*/


.site-main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.75rem 1rem 2.75rem;
}

/* HEADER */

.site-header {
    background: #0f172a;
    color: #e5e7eb;
    border-bottom: 1px solid #111827;
}

.top-bar {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .agency-name {
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.logo-text .agency-subtitle {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Header actions */

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/*NAVBAR*/

.main-nav {
    border-top: 1px solid #111827;
    background: #020617;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: none;
    color: #e5e7eb;
    font-size: 1.4rem;
    padding: 0.6rem 1rem;
    cursor: pointer;
}

.nav-links {
    max-width: 1120px;
    margin: 0 auto;
    list-style: none;
    padding: 0;
    display: flex;
}

.nav-links li a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #cbd5f5;
    text-decoration: none;
}

.nav-links li a:hover {
    background: #111827;
}

.nav-links li a.active {
    background: #111827;
    border-bottom: 2px solid var(--color-accent);
    color: #f9fafb;
    position: relative;
}
/*HERO HOME*/

.hero {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.75rem 1rem 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
    gap: 1.5rem;
    align-items: center;
}

.hero-text {
    order: 2;
    color: #f9fafb;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #111827 100%);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.6rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}


.hero-text::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(244, 176, 0, 0.16), transparent 55%);
    opacity: 0.9;
}

.hero-inner {
    position: relative;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #e5e7eb;
    opacity: 0.85;
}

.hero-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--color-accent);
}

.hero h1 {
    margin: 0.45rem 0 0.4rem;
    font-size: 1.9rem;
    line-height: 1.2;
}

.hero-lead {
    margin: 0 0 1.1rem;
    font-size: 0.95rem;
    color: #cbd5f5;
}

.hero-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.78rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

/* internal layout of the blue box */
.hero-with-collage {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 1.2rem;
    align-items: stretch;
}

.hero-main {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}


/* collage on the right in the blue box */
.hero-collage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 70px;
    gap: 0.45rem;
}

.hero-collage-item {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.hero-collage-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right,
            rgba(15, 23, 42, 0.15),
            rgba(15, 23, 42, 0.4));
}

.hero-collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* image on the LEFT*/
.hero-visual {
    order: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-radius: 30px;
}


.hero-img-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.4);
    max-width: 600px;
    width: 100%;
}


.hero-img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    object-position: left center;
    display: block;
}



.hero-badge {
    position: absolute;
    bottom: -10px;
    left: 12px;
    background: #f9fafb;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    color: var(--color-muted);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}


.contact-page .two-column {
    grid-template-columns: minmax(0, 2.6fr) minmax(0, 1.1fr);
}

.contact-page .two-column>div:first-child {
    padding: 1.5rem 1.4rem 2rem;
    min-height: 280px;
}

/*HOME SECTIONS*/

.section-title {
    font-size: 1.05rem;
    margin: 0 0 0.3rem;
}

.section-subtitle {
    margin: 0 0 0.9rem;
    font-size: 0.88rem;
    color: var(--color-muted);
}


.grid-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.card {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    padding: 1.1rem 1rem;
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.03);
}

.card h2 {
    font-size: 1rem;
    margin: 0 0 0.45rem;
}

.card p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--color-muted);
}

.card-link {
    display: inline-flex;
    align-items: center;
    margin-top: 0.8rem;
    font-size: 0.88rem;
    font-weight: 500;
}

.card-link::after {
    content: "→";
    margin-left: 0.3rem;
    font-size: 0.9rem;
}


.two-column {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr);
    gap: 1.8rem;
    margin-top: 1rem;
}

.two-column>div {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 1.1rem 1rem 1.2rem;
}

.two-column p {
    margin: 0 0 0.7rem;
    font-size: 0.9rem;
    color: #374151;
}

/* Quick links */

.quick-links {
    list-style: none;
    padding: 0;
    margin: 0.3rem 0 0;
}

.quick-links li+li {
    margin-top: 0.35rem;
}

.quick-links a {
    font-size: 0.9rem;
}

/* INTERNAL PAGES */

.page-header {
    max-width: 1120px;
    margin: 1.6rem auto 0;
    padding: 0.9rem 1rem 1.4rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}

.page-header h1 {
    margin: 0 0 0.4rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
}

.page-header p {
    margin: 0;
    font-size: 0.95rem;
    color: #4b5563;
}

.breadcrumb {
    font-size: 0.82rem;
    color: var(--color-muted);
    margin-bottom: 0.35rem;
}

.breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 0.25rem;
    color: #9ca3af;
}


.list-section {
    margin-top: 1.6rem;
}

/* FAQ Accordion */

.faq-section {
    max-width: 800px;
    margin: 1.5rem auto 0;
    padding: 0 1rem 1rem;
}

.faq-item+.faq-item {
    margin-top: 0.75rem;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    background: #0b1120;
    color: #e5e7eb;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.3);
}

.faq-question:hover {
    background: #111827;
}

.faq-icon {
    font-weight: 700;
    font-size: 1rem;
    margin-left: 0.5rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.18s ease-out, opacity 0.18s ease-out;
    opacity: 0;
    padding: 0 0.2rem;
    margin-top: 0.1rem;
    background: #ffffff;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.faq-answer p {
    margin: 0.6rem 0.7rem 0.7rem;
    font-size: 0.95rem;
    color: var(--color-text);
}


/* stato aperto */
.faq-item.open .faq-answer {
    opacity: 1;
    max-height: 200px;
}

.faq-item.open .faq-question {
    border-color: var(--color-accent);
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    /* + → × */
}


.list-item,
.award-item {
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 1.1rem 1rem 1.1rem;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.03);
}

.list-item+.list-item,
.award-item+.award-item {
    margin-top: 0.9rem;
}

.list-item h2,
.award-item h2 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
}

.meta {
    font-size: 0.8rem;
    color: var(--color-muted);
    margin: 0 0 0.5rem;
}

.list-item p,
.award-item p {
    margin: 0;
    font-size: 0.9rem;
}

/* FOOTER*/

.site-footer {
    background: #020617;
    color: #e5e7eb;
    padding: 2.1rem 1rem 1.2rem;
    margin-top: 2.5rem;
}

.footer-columns {
    max-width: 1120px;
    margin: 0 auto 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.8rem;
}

.site-footer h3 {
    margin: 0 0 0.5rem;
    font-size: 0.98rem;
}

.site-footer p {
    margin: 0.2rem 0;
    font-size: 0.86rem;
}

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

.site-footer li+li {
    margin-top: 0.3rem;
}

.site-footer a {
    color: #bfdbfe;
    font-size: 0.86rem;
}

.footer-bottom {
    max-width: 1120px;
    margin: 0 auto;
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    padding-top: 0.7rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #9ca3af;
}

/*BUTTONS*/

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.42rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.86rem;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.12s ease, border-color 0.12s ease, transform 0.08s ease;
}

.btn-primary {
    background: var(--color-accent);
    color: #1f2933;
    border-color: var(--color-accent);
    font-weight: 600;
}

.btn-primary:hover {
    background: #fbbf24;
    border-color: #fbbf24;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #111827;
    color: #e5e7eb;
    border-color: #1f2937;
}

.btn-secondary:hover {
    background: #0b1120;
}

.btn-outline {
    background: transparent;
    color: #e5e7eb;
    border-color: #4b5563;
}

.btn-outline:hover {
    background: #111827;
}

/*LOGIN AUTH*/

.auth-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top, #1f2937 0, #020617 40%, #020617 100%),
        url("assets/img/hero.png") center/cover no-repeat fixed;
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
}

.simple-header {
    background: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.8));
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: radial-gradient(circle at top left, rgba(248, 250, 252, 0.04), rgba(15, 23, 42, 0.96));
    border-radius: 16px;
    padding: 2rem 1.8rem 1.8rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
    box-shadow:
        0 24px 60px rgba(15, 23, 42, 0.9),
        0 0 0 1px rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
}

.auth-card h1 {
    margin: 0 0 0.35rem;
    font-size: 1.45rem;
}

.auth-subtitle {
    margin: 0 0 1.4rem;
    font-size: 0.9rem;
    color: #9ca3af;
}

.auth-card label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.95rem;
    color: #e5e7eb;
}

.auth-card input {
    width: 100%;
    margin-top: 0.3rem;
    padding: 0.5rem 0.65rem;
    border-radius: 8px;
    border: 1px solid #4b5563;
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.auth-card input::placeholder {
    color: #6b7280;
}

.auth-card input:focus {
    border-color: var(--color-accent);
    background: #020617;
    box-shadow: 0 0 0 1px rgba(244, 176, 0, 0.5);
}

.auth-card .btn-primary {
    width: 100%;
    margin-top: 0.8rem;
    padding: 0.55rem 1rem;
    font-weight: 600;
}

.auth-note {
    margin-top: 0.9rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

.auth-feedback {
    margin-top: 0.6rem;
    font-size: 0.85rem;
    min-height: 1.1em;
}


.simple-footer {
    background: transparent;
    border-top: none;
    color: #9ca3af;
    padding: 0.8rem 1rem 1.2rem;
    font-size: 0.8rem;
    text-align: center;
}

.password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.password-field input {
    padding-right: 2.2rem;
}

.password-toggle {
    position: absolute;
    right: 0.45rem;
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #e5e7eb;
}

/*SOP BOARD (COLUMN STYLE)*/

.board {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    align-items: flex-start;
}

.board-column {
    min-width: 220px;
    max-width: 260px;
    background: #020617;
    border-radius: 12px;
    border: 1px solid #1f2937;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.6);
    display: flex;
    flex-direction: column;
}

.board-column-header {
    padding: 0.9rem 0.85rem 0.75rem;
    border-radius: 12px 12px 0 0;
    color: #f9fafb;
}

.board-column-header h2 {
    margin: 0.15rem 0 0;
    font-size: 0.95rem;
}

.board-column-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.85;
}

/* Gradients that respect the site's palette */
.board-gradient-1 {
    background: linear-gradient(135deg, #0f172a 0%, #1b3a5a 40%, #1e293b 100%);
}

.board-gradient-2 {
    background: linear-gradient(135deg, #111827 0%, #244a74 45%, #1f2937 100%);
}

.board-gradient-3 {
    background: linear-gradient(135deg, #020617 0%, #1b3a5a 40%, #4b5563 100%);
}

.board-gradient-4 {
    background: linear-gradient(135deg, #111827 0%, #0f172a 40%, #8b5cf6 100%);
}

.board-gradient-5 {
    background: linear-gradient(135deg, #020617 0%, #244a74 40%, #f97316 100%);
}

.board-gradient-6 {
    background: linear-gradient(135deg, #020617 0%, #1e293b 40%, #f4b000 100%);
}

.board-gradient-7 {
    background: linear-gradient(135deg, #020617 0%, #1e293b 40%, #9af65c 100%);
}

.board-gradient-8 {
    background: linear-gradient(135deg, #020617 0%, #1e293b 40%, #f65c5c 100%);
}

.board-gradient-9 {
    background: linear-gradient(135deg, #020617 0%, #1e293b 40%, #5ca4f6 100%);
}

.board-gradient-9 {
    background: linear-gradient(135deg, #020617 0%, #1e293b 40%, #5ccaf6 100%);
}

.board-gradient-10 {
    background: linear-gradient(135deg, #020617 0%, #1e293b 40%, #5ccaf6 100%);
}

.board-gradient-11 {
    background: linear-gradient(135deg, #020617 0%, #1e293b 40%, #5ccaf6 100%);
}

.board-column-body {
    padding: 0.7rem 0.65rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 420px;
    overflow-y: auto;
}

.board-card {
    border: none;
    border-radius: 8px;
    padding: 0.45rem 0.55rem;
    text-align: left;
    font-size: 0.86rem;
    background: #0b1120;
    color: #e5e7eb;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.5);
    transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.08s ease;
}

.board-card-container {
    margin-top: 0.2rem;
}

.board-card-panel {
    margin-top: 0.2rem;
    padding: 0.4rem 0.5rem;
    background: #020617;
    border-radius: 8px;
    border: 1px solid #1f2937;
}

.board-card-panel textarea {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    border: 1px solid #4b5563;
    background: #020617;
    color: #e5e7eb;
    font-size: 0.85rem;
    min-height: 70px;
    resize: vertical;
}

.board-card-panel textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px rgba(244, 176, 0, 0.4);
}

.board-card-panel .board-card-save {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    padding: 0.25rem 0.7rem;
}


.board-card:hover {
    background: #111827;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.7);
    transform: translateY(-1px);
}

.board::-webkit-scrollbar {
    height: 6px;
}

.board::-webkit-scrollbar-track {
    background: transparent;
}

.board::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 999px;
}

.board::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

.board-column-body::-webkit-scrollbar {
    width: 6px;
}

.board-column-body::-webkit-scrollbar-track {
    background: transparent;
}

.board-column-body::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 999px;
}

.board-column-body::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* toolbar */

.editor-toolbar {
    display: flex;
    gap: 0.3rem;
    margin: 025rem 0 0.2rem;
}

.editor-btn {
    border: 1px solid var(--color-border);
    background: #020617;
    color: #e5e7eb;
    border-radius: 4px;
    font-size: 0.8rem;
    padding: 0.15rem 0.4rem;
    cursor: pointer;
}

.editor-btn i {
    font-style: italic;
}

.editor-btn:hover {
    background: #111827;
}



/*RESPONSIVE*/

@media (max-width: 720px) {
    .board-column {
        min-width: 200px;
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-img {
        height: 210px;
    }

    .hero-with-collage {
        grid-template-columns: 1fr;
    }

    .hero-collage {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-auto-rows: 50px;
    }
}

.grid-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.two-column {
    grid-template-columns: 1fr;
}

.footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}


@media (max-width: 720px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }


    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        max-width: 100%;
        padding: 0 1rem 0.8rem;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li a {
        padding-inline: 0;
    }

    .hero {
        padding-top: 1.3rem;
    }

    .hero-text {
        padding: 1.4rem 1.25rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .grid-section {
        grid-template-columns: 1fr;
    }

    .footer-columns {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
}

@media (max-width: 640px) {
    .auth-card {
        max-width: 100%;
        padding: 1.6rem 1.4rem 1.6rem;
        border-radius: 14px;
    }

    .auth-card h1 {
        font-size: 1.3rem;
    }
}


.edit-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sop-modal-dialog {
    max-width: 800px;
    width: 100%;
}

.sop-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.sop-modal-header h2 {
    margin: 0;
    font-size: 1.1rem;
}

.sop-modal-content {
    margin-bottom: 0.8rem;
}

.sop-modal-label {
    display: block;
    font-size: 0.9rem;
}

#sopModalBody {
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.6rem 0.7rem;
    border-radius: 8px;
    border: 1px solid #4b5563;
    background: #020617;
    color: #e5e7eb;
    font-size: 0.9rem;
    min-height: 220px;
    resize: vertical;
}

#sopModalBody:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px rgba(244, 176, 0, 0.5);
}

.sop-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.sop-modal-preview {
    margin-top: 0.9rem;
    padding-top: 0.7rem;
    border-top: 1px solid #1f2937;
}

.sop-modal-preview h3 {
    margin: 0 0 0.4rem;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.sop-modal-preview-body {
    max-height: 260px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #e5e7eb;
}

/* stile link carini nella preview */
.sop-modal-preview-body a {
    color: #93c5fd;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.sop-modal-preview-body a:hover {
    color: #bfdbfe;
    text-decoration-thickness: 2px;
}

.edit-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
}

.edit-modal-dialog {
    position: relative;
    z-index: 51;
    background: #0f172a;
    color: #e5e7eb;
    padding: 1.4rem 1.3rem 1.2rem;
    border-radius: 10px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
    border: 1px solid #1f2937;
}

.edit-modal-dialog h2 {
    margin: 0 0 0.7rem;
    font-size: 1.1rem;
}

#editForm label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.7rem;
}

#editForm input,
#editForm textarea {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.45rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #4b5563;
    background: #020617;
    color: #e5e7eb;
    font-size: 0.9rem;
}

#editForm input:focus,
#editForm textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px rgba(244, 176, 0, 0.5);
}

.edit-modal-actions {
    margin-top: 0.8rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.4rem;
}