/* ANTONELLACATANIA.NET - TEMA GLOBALE */
/* === VARIABILI === */
:root {
    /* Palette principale */
    --primary:        #C4748A;   /* Rosa antico */
    --primary-dark:   #a85e73;   /* Rosa antico scuro (hover) */
    --primary-light:  #f0d6dd;   /* Rosa antico chiarissimo */
    --secondary:      #7A9E87;   /* Salvia */
    --secondary-dark: #60856e;   /* Salvia scuro */
    --accent:         #E8A598;   /* Pesca */

    /* Neutri caldi */
    --dark:           #3D3535;   /* Antracite caldo */
    --medium:         #7A6A6A;   /* Grigio caldo medio */
    --light:          #FDF8F5;   /* Avorio */
    --light-alt:      #F5EDE8;   /* Avorio più caldo (sezioni alternate) */
    --border:         #E8DCDC;   /* Bordo soffice */

    /* Testo */
    --text-dark:      #4A3F3F;   /* Testo principale */
    --text-medium:    #8C7B7B;   /* Testo secondario */
    --text-light:     #BFB0B0;   /* Testo placeholder */

    /* Feedback */
    --success:        #7A9E87;
    --danger:         #C4748A;
    --warning:        #E8C49A;
    --info:           #8BAFC4;

    /* Bootstrap override */
    --bs-primary:     #C4748A;
    --bs-secondary:   #7A9E87;
    --bs-body-bg:     #FDF8F5;
    --bs-body-color:  #4A3F3F;
}

/* ============================================
   FONT - MONTSERRAT SELF-HOSTED
   ============================================ */
@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/montserrat-v25-latin-300.woff2') format('woff2'),
         url('../fonts/montserrat-v25-latin-300.woff') format('woff');
}
@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/montserrat-v25-latin-regular.woff2') format('woff2'),
         url('../fonts/montserrat-v25-latin-regular.woff') format('woff');
}
@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/montserrat-v25-latin-500.woff2') format('woff2'),
         url('../fonts/montserrat-v25-latin-500.woff') format('woff');
}
@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/montserrat-v25-latin-600.woff2') format('woff2'),
         url('../fonts/montserrat-v25-latin-600.woff') format('woff');
}
@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/montserrat-v25-latin-700.woff2') format('woff2'),
         url('../fonts/montserrat-v25-latin-700.woff') format('woff');
}
@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/montserrat-v25-latin-800.woff2') format('woff2'),
         url('../fonts/montserrat-v25-latin-800.woff') format('woff');
}
@font-face {
    font-display: swap;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/montserrat-v25-latin-900.woff2') format('woff2'),
         url('../fonts/montserrat-v25-latin-900.woff') format('woff');
}

/* ============================================
   BASE
   ============================================ */
body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.7;
    background-color: var(--light);
    color: var(--text-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--dark);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

.font-light      { font-weight: 300; }
.font-regular    { font-weight: 400; }
.font-medium     { font-weight: 500; }
.font-semibold   { font-weight: 600; }
.font-bold       { font-weight: 700; }
.font-extrabold  { font-weight: 800; }
.font-black      { font-weight: 900; }

.mainviewport,
.container-fluid {
    padding: 0 !important;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: #ffffff !important;
    box-shadow: 0 2px 12px rgba(61, 53, 53, 0.08);
    padding: 0.2rem 0;
    border-bottom: 2px solid var(--primary-light);
}

.navbar-brand img,
.navbar-brand picture img {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.navbar-toggler {
    border-color: var(--primary-light);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23C4748A' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar .navbar-collapse ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 2rem;
    margin-left: auto;
    margin-right: 2rem;
}

.navbar .navbar-collapse ul li {
    padding: 0;
}

.navbar .navbar-collapse ul li::before {
    display: none;
}

.navbar .navbar-collapse ul a {
    color: var(--text-dark) !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    display: inline-block;
}

.navbar .navbar-collapse ul a:hover {
    color: var(--primary) !important;
}

.btn-client-access {
    background-color: var(--secondary);
    border-color: var(--secondary);
    color: white;
    font-weight: 500;
    border-radius: 50px;
    padding: 0.4rem 1.2rem;
    font-size: 0.9rem;
}

.btn-client-access:hover {
    background-color: var(--secondary-dark);
    border-color: var(--secondary-dark);
    color: white;
}

@media (max-width: 991px) {
    .navbar .navbar-collapse ul {
        flex-direction: column;
        gap: 0;
        margin-top: 1rem;
    }
    .navbar .navbar-collapse ul li {
        padding: 0.5rem 0;
    }
    .navbar .d-flex {
        margin-top: 1rem;
        margin-bottom: 0.5rem;
    }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(196, 116, 138, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(196, 116, 138, 0.35);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    border-radius: 50px;
    padding: 0.6rem 1.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-2px);
}

/* ============================================
   ARTICLE CARDS
   ============================================ */
.articles-list .card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.articles-list .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(196, 116, 138, 0.15);
}

.articles-list .card-title a {
    color: var(--dark);
    transition: color 0.2s;
}

.articles-list .card-title a:hover {
    color: var(--primary);
}

/* ============================================
   ARTICLE CONTENT
   ============================================ */
.article-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-dark);
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--dark);
}

.article-content p {
    margin-bottom: 1.2rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--text-medium);
    background: var(--primary-light);
    border-radius: 0 8px 8px 0;
}

.article-content code {
    background-color: var(--light-alt);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--primary-dark);
}

.article-content pre {
    background-color: var(--light-alt);
    padding: 1.2rem;
    border-radius: 10px;
    overflow-x: auto;
    border: 1px solid var(--border);
}

.article-content table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.article-content table th,
.article-content table td {
    padding: 0.75rem;
    border: 1px solid var(--border);
}

.article-content table th {
    background-color: var(--primary-light);
    font-weight: 600;
    color: var(--dark);
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar .card {
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(61, 53, 53, 0.05);
}

.sidebar .list-group-item:hover {
    background-color: var(--light-alt);
    color: var(--primary);
}

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    border-bottom: 1px solid var(--border);
    background: var(--light-alt);
    padding: 2rem 0;
}

.page-header .page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
}

.page-header .breadcrumb {
    background-color: transparent;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
}

.page-header .breadcrumb-item { color: var(--text-medium); }

.page-header .breadcrumb-item a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s;
}

.page-header .breadcrumb-item a:hover {
    color: var(--primary-dark);
}

.page-header .breadcrumb-item.active { color: var(--text-medium); }

.page-header .breadcrumb-item + .breadcrumb-item::before { color: var(--text-light); }

@media (max-width: 768px) {
    .page-header .page-title {
        font-size: 1.5rem;
    }
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 996;
    background: var(--primary);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: none;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(196, 116, 138, 0.35);
}

.back-to-top:hover {
    background: var(--primary-dark);
    color: #ffffff;
    transform: translateX(-50%) translateY(-4px);
}

.back-to-top.active {
    display: flex;
}

/* ============================================
   FOOTER
   ============================================ */
#footeralto {
    background: var(--light-alt);
    color: var(--text-dark);
    padding: 3rem 0 2rem;
    border-top: 2px solid var(--border);
}

#footeralto .row { margin: 0; }

#footeralto,
#footeralto a,
#footeralto a:hover,
#footeralto a:link {
    color: var(--text-dark) !important;
    background: var(--light-alt);
}

.footer-widget { margin-bottom: 2rem; }

.footer-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

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

.footer-menu li {
    padding: 0.4rem 0;
    padding-left: 0;
}

.footer-menu li::before { display: none; }

.footer-menu a {
    color: var(--text-dark) !important;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-menu a:hover {
    color: var(--primary) !important;
}

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

.footer-contacts li {
    padding: 0.6rem 0;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contacts li::before { display: none; }

.footer-contacts a {
    color: var(--text-dark) !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-contacts a:hover {
    color: var(--primary) !important;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: 50%;
    color: var(--primary) !important;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-social .social-link:hover {
    background: var(--primary);
    color: #ffffff !important;
    transform: translateY(-3px);
}

#footerbasso {
    background: var(--border);
    color: var(--text-medium);
    padding: 0.8rem 0;
    font-size: 0.88rem;
}

#footerbasso a {
    color: var(--text-medium);
    text-decoration: underline;
    transition: color 0.2s ease;
}

#footerbasso a:hover {
    color: var(--primary);
}

#footerbasso .col-auto {
    display: flex;
    align-items: center;
}

footer {
    display: block;
}

@media (max-width: 768px) {
    #footeralto { padding: 2rem 0 1rem; }

    .footer-widget {
        margin-bottom: 1.5rem;
        text-align: center;
    }

    .footer-contacts li { justify-content: center; }
    .footer-social { justify-content: center; }

    #footerbasso .row {
        flex-direction: column;
        gap: 0.3rem;
    }

    #footerbasso .col-auto { justify-content: center; }
}
