/**
 * Stili per l'editor Gutenberg
 * Questi stili garantiscono che l'editor mostri i contenuti con lo stesso aspetto del frontend
 */

/* Colori principali del tema */
:root {
    --magenta: #E6007E;
    --blue: #0066CC;
    --dark: #111827;
    --light: #F3F4F6;
    --gradient: linear-gradient(135deg, var(--magenta), var(--blue));
}

/* Stile generale del corpo del testo */
body {
    background: var(--dark);
    color: var(--light);
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
}

/* Titoli */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--light);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60%;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1rem;
}

/* Paragrafi */
p {
    margin-bottom: 1.5rem;
    color: #bebebf;
}

/* Link */
a {
    color: var(--magenta);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--blue);
}

/* Bottoni */
.wp-block-button__link {
    background: var(--gradient);
    border-radius: 30px;
    padding: 0.8rem 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 0, 255, 0.2);
    color: #fff;
    transition: all 0.3s ease;
}

.wp-block-button__link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 0, 255, 0.3);
}

.is-style-outline .wp-block-button__link {
    background: transparent;
    border: 2px solid var(--magenta);
    color: var(--light);
}

/* Immagini */
.wp-block-image img {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.wp-block-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.15);
}

/* Citazioni */
.wp-block-quote {
    border-left: 4px solid var(--magenta);
    padding-left: 1.5rem;
    font-style: italic;
    margin: 2rem 0;
}

/* Tabelle */
.wp-block-table table {
    border-collapse: collapse;
    width: 100%;
}

.wp-block-table th {
    background: rgba(230, 0, 126, 0.2);
    color: var(--light);
    padding: 0.75rem;
    text-align: left;
}

.wp-block-table td {
    padding: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Liste */
ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: #bebebf;
}

li {
    margin-bottom: 0.5rem;
}

/* Separatori */
hr {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

/* Codice */
code, pre {
    background: rgba(17, 24, 39, 0.8);
    border: 1px solid rgba(255, 0, 255, 0.2);
    border-radius: 5px;
    padding: 0.2rem 0.4rem;
    font-family: monospace;
}

pre {
    padding: 1rem;
    overflow-x: auto;
}

/* Colonne */
.wp-block-columns {
    margin-bottom: 2rem;
}

/* Cover */
.wp-block-cover {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Galleria */
.wp-block-gallery {
    margin-bottom: 2rem;
}

.wp-block-gallery .blocks-gallery-item img {
    border-radius: 12px;
    transition: all 0.3s ease;
}

.wp-block-gallery .blocks-gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 0, 255, 0.15);
}