/* Stili per gli shortcode Chi Siamo nel frontend */

/* Sezione completa Chi Siamo */
.chi-siamo-section {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Layout con contenuto affiancato */
.chi-siamo-section .chi-siamo-content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.chi-siamo-section.layout-image-left .chi-siamo-content-wrapper {
    flex-direction: row;
}

.chi-siamo-section.layout-image-right .chi-siamo-content-wrapper {
    flex-direction: row-reverse;
}

.chi-siamo-section .chi-siamo-image {
    flex: 0 0 40%;
}

.chi-siamo-section .chi-siamo-text {
    flex: 1;
}

/* Titoli */
.chi-siamo-section h1,
.chi-siamo-section h2,
.chi-siamo-section h3,
.chi-siamo-section h4 {
    color: #1d2327;
    margin-bottom: 15px;
    line-height: 1.3;
}

.chi-siamo-section h1 {
    font-size: 2.5em;
    font-weight: 700;
}

.chi-siamo-section h2 {
    font-size: 2em;
    font-weight: 600;
}

.chi-siamo-section h3 {
    font-size: 1.5em;
    font-weight: 500;
    color: #666;
    margin-bottom: 20px;
}

.chi-siamo-section h4 {
    font-size: 1.2em;
    font-weight: 500;
    color: #666;
    margin-bottom: 20px;
}

/* Immagini */
.chi-siamo-section img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chi-siamo-section img:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.chi-siamo-section .chi-siamo-image {
    text-align: center;
    margin-bottom: 20px;
}

/* Testo */
.chi-siamo-section p {
    line-height: 1.7;
    margin-bottom: 15px;
    color: #4a4a4a;
    font-size: 16px;
}

.chi-siamo-section p:last-child {
    margin-bottom: 0;
}

/* Liste */
.chi-siamo-section ul,
.chi-siamo-section ol {
    margin: 15px 0;
    padding-left: 25px;
}

.chi-siamo-section li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #4a4a4a;
}

/* Link */
.chi-siamo-section a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.chi-siamo-section a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Bottone link */
.chi-siamo-section .chi-siamo-link {
    margin-top: 25px;
    text-align: left;
}

.chi-siamo-section .chi-siamo-link a.button {
    display: inline-block;
    background: #0073aa;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.chi-siamo-section .chi-siamo-link a.button:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,115,170,0.3);
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chi-siamo-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    .chi-siamo-section .chi-siamo-content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .chi-siamo-section .chi-siamo-image {
        flex: none;
    }
    
    .chi-siamo-section h1 {
        font-size: 2em;
    }
    
    .chi-siamo-section h2 {
        font-size: 1.7em;
    }
    
    .chi-siamo-section h3 {
        font-size: 1.3em;
    }
    
    .chi-siamo-section p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .chi-siamo-section {
        padding: 10px;
        margin: 10px 0;
        border-radius: 6px;
    }
    
    .chi-siamo-section h1 {
        font-size: 1.8em;
    }
    
    .chi-siamo-section h2 {
        font-size: 1.5em;
    }
    
    .chi-siamo-section .chi-siamo-link a.button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Varianti di stile */
.chi-siamo-section.style-minimal {
    background: transparent;
    box-shadow: none;
    border: 1px solid #e1e1e1;
}

.chi-siamo-section.style-card {
    background: #fff;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.chi-siamo-section.style-bordered {
    border: 2px solid #0073aa;
    background: #f8fcff;
}

/* Animazioni */
.chi-siamo-section {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibilità */
@media (prefers-reduced-motion: reduce) {
    .chi-siamo-section,
    .chi-siamo-section img,
    .chi-siamo-section .chi-siamo-link a.button {
        animation: none;
        transition: none;
    }
    
    .chi-siamo-section img:hover,
    .chi-siamo-section .chi-siamo-link a.button:hover {
        transform: none;
    }
}

/* Focus per accessibilità */
.chi-siamo-section a:focus,
.chi-siamo-section .chi-siamo-link a.button:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .chi-siamo-section {
        background: #1e1e1e;
        color: #e1e1e1;
    }
    
    .chi-siamo-section h1,
    .chi-siamo-section h2,
    .chi-siamo-section h3,
    .chi-siamo-section h4 {
        color: #fff;
    }
    
    .chi-siamo-section p,
    .chi-siamo-section li {
        color: #ccc;
    }
    
    .chi-siamo-section.style-bordered {
        border-color: #0073aa;
        background: #2a2a2a;
    }
}

/* Stili per shortcode singoli quando usati separatamente */
.chi-siamo-title-only {
    margin: 20px 0 10px 0;
}

.chi-siamo-text-only {
    margin: 15px 0;
    line-height: 1.7;
}

.chi-siamo-image-only {
    text-align: center;
    margin: 20px 0;
}

.chi-siamo-image-only img {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Stili per i contatti */
.chi-siamo-contatti {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
}

.chi-siamo-contatti-title {
    margin: 0 0 15px 0;
    color: #1d2327;
    font-size: 1.3em;
    font-weight: 600;
}

.chi-siamo-contatti-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Layout orizzontale per i contatti */
.chi-siamo-contatti.layout-horizontal .chi-siamo-contatti-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}

/* Layout griglia per i contatti */
.chi-siamo-contatti.layout-grid .chi-siamo-contatti-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Singoli elementi di contatto */
.chi-siamo-indirizzo,
.chi-siamo-email,
.chi-siamo-telefono {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0;
    line-height: 1.5;
    color: #4a4a4a;
}

.chi-siamo-indirizzo a,
.chi-siamo-email a,
.chi-siamo-telefono a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.chi-siamo-indirizzo a:hover,
.chi-siamo-email a:hover,
.chi-siamo-telefono a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Icone dei contatti */
.chi-siamo-icon {
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}

.chi-siamo-icon-address {
    color: #e74c3c;
}

.chi-siamo-icon-email {
    color: #3498db;
}

.chi-siamo-icon-phone {
    color: #27ae60;
}

/* Stili per contatti singoli quando usati separatamente */
.chi-siamo-indirizzo-only,
.chi-siamo-email-only,
.chi-siamo-telefono-only {
    margin: 10px 0;
    padding: 10px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e1e1e1;
}

/* Responsive per i contatti */
@media (max-width: 768px) {
    .chi-siamo-contatti.layout-horizontal .chi-siamo-contatti-list {
        flex-direction: column;
        gap: 12px;
    }
    
    .chi-siamo-contatti.layout-grid .chi-siamo-contatti-list {
        grid-template-columns: 1fr;
    }
    
    .chi-siamo-contatti {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .chi-siamo-contatti {
        padding: 10px;
        margin: 15px 0;
    }
    
    .chi-siamo-contatti-title {
        font-size: 1.2em;
    }
}

/* Varianti di stile per i contatti */
.chi-siamo-contatti.style-card {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: none;
}

.chi-siamo-contatti.style-minimal {
    background: transparent;
    border: none;
    padding: 10px 0;
}

.chi-siamo-contatti.style-bordered {
    border: 2px solid #0073aa;
    background: #f8fcff;
}

/* Animazioni per i link di contatto */
.chi-siamo-indirizzo a,
.chi-siamo-email a,
.chi-siamo-telefono a {
    position: relative;
    overflow: hidden;
}

.chi-siamo-indirizzo a::before,
.chi-siamo-email a::before,
.chi-siamo-telefono a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #0073aa;
    transition: width 0.3s ease;
}

.chi-siamo-indirizzo a:hover::before,
.chi-siamo-email a:hover::before,
.chi-siamo-telefono a:hover::before {
    width: 100%;
}

/* Focus per accessibilità */
.chi-siamo-indirizzo a:focus,
.chi-siamo-email a:focus,
.chi-siamo-telefono a:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Dark mode support per i contatti */
@media (prefers-color-scheme: dark) {
    .chi-siamo-contatti {
        background: #2a2a2a;
        border-left-color: #0073aa;
    }
    
    .chi-siamo-contatti-title {
        color: #fff;
    }
    
    .chi-siamo-indirizzo,
    .chi-siamo-email,
    .chi-siamo-telefono {
        color: #ccc;
    }
    
    .chi-siamo-contatti.style-card {
        background: #1e1e1e;
    }
    
    .chi-siamo-contatti.style-bordered {
        background: #2a2a2a;
        border-color: #0073aa;
    }
}