style css to header for shortcodes

You can insert any code in the header by hooking an action.

header.php

<?php wp_head(); ?>

functions.php

add_action( 'wp_head', 'iulia_example' );

function iulia_example() {

    echo '<style type="text/css">
   .sc_title {color:#fff; font-weight:600;}
  </style>';

} 

the result will be : the style inserted just above </head>