/* 
 * NEXUSPRIME - CORPORATE TEMPLATE CSS
 * Architettura BEM - Stile Formale e Pulito
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    background-color: var(--color-bg-base);
    color: var(--color-text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.2;
}

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

.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn--primary {
    background: var(--color-accent);
    color: #fff;
}

.btn--primary:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn--secondary {
    background: transparent;
    border: 2px solid var(--color-accent);
    color: var(--color-accent);
}

.btn--secondary:hover {
    background: var(--color-accent);
    color: #fff;
}

/* Header */
.header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.header__logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--color-text-muted);
}

.header__nav a {
    margin-left: 20px;
    color: var(--color-text-muted);
    font-weight: 500;
}

.header__nav a:hover {
    color: var(--color-accent);
}

/* Sezioni Modulari */
section {
    padding: 80px 20px;
}

/* Hero Corporate */
.hero-corp {
    background: #f8fafc;
    text-align: center;
    padding: 120px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.hero-corp__content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-corp__title {
    font-size: 3rem;
    color: var(--color-text-main);
    margin-bottom: 20px;
}

.hero-corp__desc {
    font-size: 1.25rem;
    color: var(--color-text-muted);
}

/* Manifesto Corporate */
.manifesto-corp {
    background: #fff;
}

.manifesto-corp__box {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    border-left: 4px solid var(--color-accent);
    background: #f8fafc;
    border-radius: 0 8px 8px 0;
}

.manifesto-corp__box h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--color-text-main);
}

.manifesto-corp__box p {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* Testo */
.text-corp {
    background: #fff;
}

.text-corp__content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--color-text-main);
    line-height: 1.8;
}

/* Galleria */
.gallery-corp {
    background: #f1f5f9;
    text-align: center;
}

.gallery-corp h2 {
    margin-bottom: 40px;
    font-size: 2rem;
}

.gallery-corp__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-corp__item {
    background: #fff;
    height: 250px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

/* CTA Generica */
.cta-corp {
    text-align: center;
    background: #fff;
}

/* Join Ecosystem */
.ecosystem-join {
    background: var(--color-text-main);
    color: #fff;
    text-align: center;
}

.ecosystem-join__container {
    max-width: 800px;
    margin: 0 auto;
}

.ecosystem-join h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
}

.ecosystem-join p {
    font-size: 1.1rem;
    color: #9ca3af;
    margin-bottom: 30px;
}

/* Footer */
.corp-footer {
    background: var(--color-bg-surface);
    color: var(--color-text-muted);
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
}

/* Modale Upsell */
.modal-corp {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.modal-corp__content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.modal-corp__content h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.modal-corp__content p {
    color: var(--color-text-muted);
    margin-bottom: 25px;
}

/* Galia Widget (Corporate Style) */
.galia-corp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
}

.galia-corp__orb {
    background: var(--color-accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}

.galia-corp__orb:hover {
    transform: translateY(-2px);
}

.galia-corp__box {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 350px;
    height: 450px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.galia-corp__header {
    background: var(--color-accent);
    color: #fff;
    padding: 15px;
    font-weight: 500;
}

.galia-corp__messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8fafc;
}

.galia-msg {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 6px;
    font-size: 0.9rem;
}

.galia-msg--ai {
    background: #e2e8f0;
    color: #1e293b;
    align-self: flex-start;
}

.galia-msg--user {
    background: var(--color-accent);
    color: #fff;
    align-self: flex-end;
}

.galia-corp__input {
    display: flex;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}

.galia-corp__input input {
    flex: 1;
    padding: 15px;
    border: none;
    outline: none;
}

.galia-corp__input button {
    padding: 0 20px;
    background: transparent;
    border: none;
    color: var(--color-accent);
    font-weight: 600;
    cursor: pointer;
}

/* Refactored Inline Styles */
.corp-empty-state {
    text-align: center;
    padding: 100px;
    color: var(--color-text-muted);
}

.corp-footer__content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.corp-footer__col {
    flex: 1;
    min-width: 250px;
}

.corp-footer__title {
    color: var(--color-accent);
    margin-bottom: 15px;
}

.corp-footer__contact {
    margin-top: 15px;
}

.corp-footer__ecosystem-badge {
    flex: 1;
    min-width: 300px;
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.corp-footer__badge-title {
    color: var(--color-accent);
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.corp-footer__disclaimer {
    margin-bottom: 15px;
    color: #6b7280;
    font-size: 0.9rem;
}

.corp-footer__link-wrap {
    font-size: 0.9rem;
}

.corp-footer__link {
    color: var(--color-accent);
    text-decoration: underline;
    font-weight: bold;
}

.corp-footer__bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.85rem;
}

.modal-corp {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal-corp--active {
    display: flex !important;
}

.corp-galia__icon {
    width: 24px;
    height: 24px;
    color: #fff;
}

.corp-galia__close {
    float: right;
    cursor: pointer;
}

.corp-galia__box--active {
    display: flex !important;
}

.hidden {
    display: none !important;
}

.btn-corp--full {
    margin-top: 10px;
    width: 100%;
}