/* Cinque Talenti — Public Pages (Mobile-first) */

:root {
    --gold: #C5A55A;
    --gold-light: #D4BC7C;
    --gold-dark: #A68A3E;
    --brown: #3C2415;
    --brown-light: #5C3D28;
    --cream: #FBF8F1;
    --cream-dark: #F0E8D8;
    --text: #2C1810;
    --text-light: #6B5B4F;
    --white: #FFFFFF;
    --shadow: 0 2px 8px rgba(60, 36, 21, 0.08);
    --radius: 8px;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--cream);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.page-wrapper {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.page-header {
    text-align: center;
    padding: 24px 16px 16px;
}

.logo {
    max-width: 180px;
    height: auto;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    margin-bottom: 8px;
}

.lang-link {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: var(--text-light);
    background: var(--cream-dark);
    transition: all 0.2s;
}

.lang-link.active,
.lang-link:hover {
    color: var(--white);
    background: var(--gold);
}

/* Page Title */
.page-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--brown);
    text-align: center;
    padding: 0 16px 16px;
    line-height: 1.3;
}

/* Content Blocks */
.content-blocks {
    flex: 1;
    padding: 0 16px;
}

.block {
    margin-bottom: 24px;
}

/* Rich Text */
.block-rich-text {
    font-size: 16px;
    line-height: 1.7;
}

.block-rich-text h1,
.block-rich-text h2,
.block-rich-text h3,
.block-rich-text h4 {
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--brown);
    margin-top: 16px;
    margin-bottom: 8px;
}

.block-rich-text p {
    margin-bottom: 12px;
}

.block-rich-text a {
    color: var(--gold-dark);
    text-decoration: underline;
}

.block-rich-text ul,
.block-rich-text ol {
    padding-left: 24px;
    margin-bottom: 12px;
}

/* Image */
.block-image figure {
    margin: 0;
}

.block-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
}

.block-image figcaption {
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* Video */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-title {
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
    margin-top: 8px;
}

/* Link Button */
.block-link-button {
    text-align: center;
}

.link-btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s;
}

.link-btn-primary {
    background: var(--gold);
    color: var(--white);
}

.link-btn-primary:hover {
    background: var(--gold-dark);
}

.link-btn-secondary {
    background: var(--brown);
    color: var(--white);
}

.link-btn-secondary:hover {
    background: var(--brown-light);
}

.link-btn-outline {
    background: transparent;
    color: var(--gold-dark);
    border: 2px solid var(--gold);
}

.link-btn-outline:hover {
    background: var(--gold);
    color: var(--white);
}

/* Data Table */
.table-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 20px;
    color: var(--brown);
    margin-bottom: 12px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--cream-dark);
}

.data-table th {
    font-weight: 600;
    color: var(--brown);
    width: 40%;
    background: var(--cream);
}

.data-table tr:last-child th,
.data-table tr:last-child td {
    border-bottom: none;
}

/* File Download */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--white);
    border: 2px solid var(--gold);
    border-radius: var(--radius);
    color: var(--brown);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    box-shadow: var(--shadow);
}

.download-btn:hover {
    background: var(--gold);
    color: var(--white);
}

.download-btn svg {
    flex-shrink: 0;
}

.file-size {
    font-weight: 400;
    font-size: 14px;
    color: var(--text-light);
}

/* Map */
.map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-label {
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
    margin-top: 8px;
}

/* Contact */
.contact-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
}

.contact-item:hover {
    color: var(--gold-dark);
}

.contact-item svg {
    color: var(--gold);
    flex-shrink: 0;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    justify-content: center;
}

.social-link {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--cream-dark);
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.social-link:hover {
    background: var(--gold);
    color: var(--white);
}

/* Footer */
.page-footer {
    text-align: center;
    padding: 32px 16px 24px;
    margin-top: auto;
    font-size: 14px;
    color: var(--text-light);
    border-top: 1px solid var(--cream-dark);
}

.footer-location {
    font-size: 12px;
    margin-top: 4px;
}

/* Inactive page */
.inactive-content,
.index-content {
    text-align: center;
    padding: 48px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.inactive-content h1,
.index-content h1 {
    font-family: Georgia, 'Times New Roman', serif;
    color: var(--brown);
    font-size: 24px;
    margin-bottom: 12px;
}
