/*
  --- Sexy & Responsive Stylesheet ---
  Author: Gemini
  Description: A modern, mobile-first, and captivating theme.
*/

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,700;1,400&family=Roboto:wght@300;400;500&display=swap');

/* --- Variabili Colore & Stili Globali --- */
:root {
    --background-color: #0d0d0d;
    --container-bg-color: rgba(26, 26, 26, 0.8);
    --primary-text-color: #f0f0f0;
    --accent-color: #e43a5e;
    --accent-hover-color: #ff5c8a;
    --border-color: rgba(228, 58, 94, 0.4);
    --font-heading: 'Lora', serif;
    --font-body: 'Roboto', sans-serif;
    --status-available: #28a745; /* Verde */
    --status-busy: #dc3545;      /* Rosso */
    --status-ringing: #007bff;   /* Blu */
    --status-paused: #ffc107;   /* Giallo */
    --status-unavailable: #6c757d;/* Grigio */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--background-color);
    color: var(--primary-text-color);
    line-height: 1.7;
    background-image: url('https://www.transparenttextures.com/patterns/dark-leather.png'); /* Sfondo a tema scuro */
    font-size: 16px;
}

/* --- Struttura & Layout --- */
#top-layer {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    flex-grow: 1;
}

#header {
    text-align: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

#header img {
    width: 100%; /* Adatta il logo alla larghezza del contenitore */
    height: auto;
}

#main-box {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

#main {
    flex: 1;
    background-color: var(--container-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

#sidebar {
    width: 100%;
    background-color: var(--container-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* --- Stili Tipografici --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

#main h2 span {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 5px;
}

a {
    color: var(--accent-hover-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
    text-decoration: underline;
}

p, li, span {
    font-weight: 300;
    margin-bottom: 1rem;
}

strong {
    font-weight: 500;
    color: #fff;
}

/* --- Contenuto Principale --- */
.article-full img,
.article-main-photo img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    box-shadow: 0 0 15px rgba(228, 58, 94, 0.3);
    margin-bottom: 1rem;
}

.article-icons {
    margin: 1rem 0;
}

.article-icons a {
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.article-icons a:hover {
    background-color: var(--accent-hover-color);
    text-decoration: none;
}

.article-icons .fa {
    margin-right: 8px;
}

/* --- Stili Lista Operatrici --- */
.operator-list {
    margin-top: 2rem;
}

.operator-item {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid rgba(228, 58, 94, 0.2);
    padding-bottom: 0.5rem;
}

.operator-link {
    display: block;
    padding: 0.75rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-size: 1.1rem;
    text-decoration: none;
}

.operator-link:hover {
    background-color: rgba(228, 58, 94, 0.15);
    color: #fff;
    text-decoration: none;
}

.operator-link strong {
    color: var(--accent-color);
}

/* --- Stili Pagina Profilo --- */
.profile-card {
    padding: 1rem;
}

.profile-header h1 {
    font-size: 2.5rem;
    text-align: center;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.profile-body {
    margin-top: 2rem;
}

.profile-section {
    margin-bottom: 2.5rem;
}

.profile-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-hover-color);
}

.profile-schedule,
.profile-bio {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ddd;
}

.profile-schedule i,
.profile-bio i {
    color: #888;
}

/* --- Stili Operatrici in Tempo Reale --- */
.online-wrapper {
    margin-top: 2rem;
}

.online-wrapper h3 {
    text-align: center;
    font-size: 1.8rem;
}

.online-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.operator-status-card {
    text-align: center;
}

.operator-status-card a {
    text-decoration: none;
    color: var(--primary-text-color);
    display: block;
    transition: transform 0.2s ease-in-out;
}

.operator-status-card a:hover {
    transform: scale(1.05);
    text-decoration: none;
}

.operator-icon svg {
    width: 60px; /* Dimensione ridotta */
    height: 60px; /* Dimensione ridotta */
    transition: fill 0.3s ease;
}

.operator-name {
    margin-top: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Colori Status */
.operator-status-card.status-available .operator-icon svg { fill: var(--status-available); }
.operator-status-card.status-busy .operator-icon svg { fill: var(--status-busy); }
.operator-status-card.status-ringing .operator-icon svg { fill: var(--status-ringing); }
.operator-status-card.status-paused .operator-icon svg { fill: var(--status-paused); }
.operator-status-card.status-unavailable .operator-icon svg { fill: var(--status-unavailable); }

/* --- Stili Form di Contatto --- */
.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-hover-color);
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.8rem;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--primary-text-color);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(228, 58, 94, 0.5);
}

.form-submit-button {
    background-color: var(--accent-color);
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.form-submit-button:hover {
    background-color: var(--accent-hover-color);
}

.form-message-box {
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.form-message-box h2 {
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.form-message-box p {
    margin-bottom: 0;
}

.form-message-box.success {
    background-color: rgba(40, 167, 69, 0.2);
    border: 1px solid var(--status-available);
}
.form-message-box.success h2 {
    color: var(--status-available);
}

.form-message-box.error {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid var(--status-busy);
}
.form-message-box.error h2 {
    color: var(--status-busy);
}

/* --- Stili Sidebar --- */
#sidebar .panel {
    background: none;
    border: none;
}

#sidebar h2 {
    font-size: 1.8rem;
    text-align: center;
}

#sidebar .new-forum-line {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
    border-radius: 5px;
}

#sidebar .new-forum-line:hover {
    background-color: rgba(228, 58, 94, 0.1);
}

#sidebar .new-forum-line .avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    border: 1px solid var(--accent-color);
}

#sidebar .f_content {
    display: flex;
    flex-direction: column;
}

#sidebar .f_content strong {
    font-size: 1rem;
    color: var(--primary-text-color);
}

#sidebar .f_content span {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 0;
}

#sidebar .content-padding {
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

#sidebar .content-padding strong {
    color: var(--accent-color);
    font-family: var(--font-heading);
}

/* --- Footer Styles --- */
.footer {
    background-color: var(--container-bg-color);
    padding: 2rem 1rem;
    margin-top: auto; /* Pushes footer to the bottom */
    border-top: 2px solid var(--border-color);
    color: #aaa;
    backdrop-filter: blur(8px);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
}

.footer-column {
    flex: 1;
}

.footer-column h3 {
    color: var(--accent-color);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.footer-column p,
.footer-column li {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.footer-column .legal-links {
    list-style: none;
    padding: 0;
}

.footer-column .legal-links a {
    color: var(--primary-text-color);
    transition: color 0.3s ease;
}

.footer-column .legal-links a:hover {
    color: var(--accent-hover-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: #777;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-bottom p {
    margin-bottom: 0;
}

/* --- Responsive Design --- */
@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

@media (min-width: 992px) {
    #main-box {
        flex-direction: row;
        align-items: flex-start;
    }

    #main {
        width: 70%;
    }

    #sidebar {
        width: 30%;
        position: sticky;
        top: 2rem; /* La sidebar rimane visibile scorrendo */
    }
}

/* --- Classi aggiuntive --- */
.clear-float {
    clear: both;
}



