﻿/* Tema avanzato per MatthaeusRuber */

body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    color: #222;
    background-color: #f9f6f2;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'EB Garamond', serif;
    color: #0b2a4a;
    margin-top: 0;
}

a {
    color: #c7a44c;
    text-decoration: none;
}

    a:hover {
        color: #7b1b1b;
    }

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* Navbar */
header.nav {
    background: rgba(11,42,74,0.85);
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.nav-links a {
    margin: 0 0.75rem;
    color: #fff;
    position: relative;
    font-weight: 500;
}

    .nav-links a::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -4px;
        width: 0;
        height: 2px;
        background: #c7a44c;
        transition: width 0.3s;
    }

    .nav-links a:hover::after {
        width: 100%;
    }

.brand {
    font-family: 'EB Garamond', serif;
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Hero */
.hero {
    background: url('assets/hero.jpg') center/cover no-repeat;
    color: #fff;
    text-align: left;
    display: flex;
    align-items: center;
    min-height: 100vh;
    position: relative;
}

    .hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.4);
    }

    .hero .container {
        position: relative;
        z-index: 2;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hero h1 {
        font-size: 3rem;
        color: #fff;
    }

    .hero p {
        font-size: 1.25rem;
        max-width: 600px;
    }

.cta-group .btn {
    margin-right: 1rem;
}

.hero-card {
    background: rgba(255,255,255,0.9);
    padding: 1.5rem;
    border-radius: 1rem;
    color: #222;
    max-width: 300px;
}

.scroll-down {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #fff;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%,100% {
        transform: translate(-50%,0);
    }

    50% {
        transform: translate(-50%,-10px);
    }
}

/* Buttons */
.btn {
    padding: 0.75rem 1.25rem;
    border-radius: 9999px;
    font-weight: bold;
}

.btn-primary {
    background: #c7a44c;
    color: #fff;
}

    .btn-primary:hover {
        background: #7b1b1b;
    }

.btn-ghost {
    border: 2px solid #fff;
    color: #fff;
}

    .btn-ghost:hover {
        background: #fff;
        color: #0b2a4a;
    }

/* Cards */
.grid.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

    .card:hover {
        transform: translateY(-6px);
    }

    .card img {
        width: 100%;
        display: block;
    }

    .card .content {
        padding: 1rem;
    }

    .card h3 {
        margin-top: 0;
    }

/* Footer */
footer {
    background: #0b2a4a;
    color: #eee;
    padding: 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(200px,1fr));
    gap: 2rem;
}

footer h4 {
    margin-top: 0;
    font-family: 'EB Garamond', serif;
    color: #c7a44c;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

    footer ul li {
        margin: 0.5rem 0;
    }

footer a {
    color: #eee;
}

    footer a:hover {
        color: #c7a44c;
    }

.social-icons a {
    margin-right: 0.5rem;
    display: inline-block;
    padding: 0.5rem;
    border-radius: 50%;
    background: #c7a44c;
    color: #fff;
}

    .social-icons a:hover {
        background: #7b1b1b;
    }

.copy {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    text-align: center;
}

/* Login link nell'header */
.nav-links .login-link {
    display: inline-block;
    margin-left: 1rem;
    background: #c7a44c;
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    text-align: center;
    line-height: 36px;
    transition: background 0.3s, transform 0.2s;
}

    .nav-links .login-link:hover {
        background: #7b1b1b;
        transform: scale(1.1);
    }

.storyboard-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0b2a4a;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.toolbar-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .toolbar-buttons button {
        background: #c7a44c;
        border: none;
        color: #fff;
        font-size: 1.1rem;
        padding: 0.5rem 0.75rem;
        border-radius: 6px;
        cursor: pointer;
        transition: background 0.3s;
    }

        .toolbar-buttons button:hover {
            background: #7b1b1b;
        }

.toolbar-sep {
    display: inline-block;
    width: 1px;
    height: 24px;
    background: #fff;
    margin: 0 0.5rem;
}

.project-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

    .project-info label {
        color: #fff;
        font-size: 0.9rem;
    }

    .project-info input,
    .project-info select {
        margin-left: 0.3rem;
        padding: 0.2rem 0.4rem;
        border-radius: 4px;
        border: 1px solid #ccc;
    }

.toolbar-warning {
    color: #ff4444;
    font-weight: bold;
}
.brand {
    font-family: 'Uncial Antiqua', cursive;
    color: #fff;
    font-size: 2rem;
    font-weight: normal;
}
.lang-select {
    margin-top: 5px;
    text-align: left;
}
#subtitle {
    font-family: 'EB Garamond', serif;
    font-size: 0.95rem;
    color: #ddd;
    margin-top: -4px;
    margin-left: 4px;
    letter-spacing: 0.5px;
}
.grid-table td, .grid-table th {
    vertical-align: top;
}

.grid-table th {
    background-color: #f5f5f5;
    font-weight: bold;
    text-align: left;
}


.icon-button {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
}
.action-icon {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin: 0 4px;
    transition: transform 0.15s ease, filter 0.15s ease;
    cursor: pointer;
}

/* Effetto hover */
.icon-button:hover .action-icon {
    transform: scale(1.2);
    filter: brightness(1.3);
}

.icon-button {
    background: none;
    border: none;
    padding: 2px;
    cursor: pointer;
}
.lingue-header {
    position: sticky;
    top: 0;
    background: #f5f5f5;
    z-index: 5;
    padding-bottom: 4px;
}

.lingue-header-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    color: #333;
}

.lingua-header-cell {
    background: #e0e0e0;
    padding: 2px;
    border-radius: 4px;
}

.lingue-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    align-items: start;
}

.lingua-item {
    border: 1px solid #eee;
    padding: 4px;
    background: #fafafa;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
}

.textarea-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lang-buttons {
    display: flex;
    gap: 3px;
    justify-content: flex-end;
}

.lang-btn {
    width: 16px;
    height: 16px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s ease;
}

    .lang-btn:hover {
        opacity: 1;
    }

.multi-lang-input {
    width: 100%;
    font-size: 0.8rem;
    resize: vertical;
}
.big-textarea {
    width: 250px;
    height: 350px;
    resize: vertical;
    font-size: 0.85rem;
    margin-top: 8px;
    display: block;
}

.big-text-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 4px;
}
.file-upload {
    color: #fff;
    background: #7b1b1b;
    padding: 4px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    background: #f5f5f5;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

.filter-ddl {
    padding: 4px;
    font-size: 0.9rem;
    min-width: 150px;
}

.filter-btn {
    background-color: #6c757d;
    color: #fff;
    border: none;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
}

    .filter-btn:hover {
        background-color: #5a6268;
    }

.file-upload {
    font-size: 0.8rem;
    padding: 4px;
    background: #eee;
    border-radius: 4px;
}
.clickable-label {
    cursor: pointer;
    text-decoration: underline;
    color: #0066cc;
}

    .clickable-label:hover {
        color: #004080;
    }
