/*
Theme Name: StefanoAI
Author URI: http://www.stefanoai.com
Description: theme of StefanoAI
Author: StefanoAI
Version: 1
License: private use
Tags: green, abstract
Text Domain: StefanoAI
*/
/* 
    Document   : style
    Created on : 29-set-2012, 21.40.07
    Author     : StefanoAI
    Description:
        Purpose of the stylesheet follows.
*/
@font-face {
    font-family: 'alias';
    src: url('/wp-content/themes/StefanoAI/fonts/alias-webfont.eot');
    src: url('/wp-content/themes/StefanoAI/fonts/alias-webfont.eot?#iefix') format('embedded-opentype'),
        url('/wp-content/themes/StefanoAI/fonts/alias-webfont.woff') format('woff'),
        url('/wp-content/themes/StefanoAI/fonts/alias-webfont.ttf') format('truetype'),
        url('/wp-content/themes/StefanoAI/fonts/alias-webfont.svg#aliasregular') format('svg');
    font-weight: normal;
    font-style: normal;

}
root {
    display: block;
}
html{
    position: relative;
    background-image: url('/wp-content/themes/StefanoAI/img/bg.jpg');
    display: block;
    margin: 0px;
    padding: 0px;
    width: 100%;
    height: auto;
    background-color: #014A1C;
    background-repeat: no-repeat;
    background-size: cover;
}
body{
    position: relative;
    margin: 0px;
    padding: 0px;
    min-height: 100%;
    /*min-width: 990px;*/
    height: 100%;
}
a{
    color: #40A410;
    text-decoration: none;
    text-shadow: 1px 1px 3px #999;
}
a:hover{
    color: #00cc00;
}
#wp_page_numbers li.active_page a:hover,
#wp_page_numbers li.active_page a,
#wp_page_numbers li a:hover{
    border-bottom: 2px solid #014A1C;
    border-top: 2px solid #014A1C;
    color: #014A1C;
}
#wp_page_numbers li.active_page a:hover,
#wp_page_numbers li.active_page a{
    background-color: #014A1C;
    color: #fff;
}
h1{
    font-size: 26px;
}
h2{
    font-size: 24px;
}
h1,h2{
    font-family: 'alias';
    text-shadow: 2px 3px 15px #999;
    margin-top: 0px;
}
div#content{
    position: relative;
    /*left: 50%;*/
    width: 95%;
    max-width: 1180px;
    /*    height: 100%;*/
    background: -moz-linear-gradient(top,  rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.95) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,0.95)), color-stop(100%,rgba(255,255,255,0.95))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  rgba(255,255,255,0.95) 0%,rgba(255,255,255,0.95) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  rgba(255,255,255,0.95) 0%,rgba(255,255,255,0.95) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  rgba(255,255,255,0.95) 0%,rgba(255,255,255,0.95) 100%); /* IE10+ */
    background: linear-gradient(to bottom,  rgba(255,255,255,0.95) 0%,rgba(255,255,255,0.95) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f2ffffff', endColorstr='#f2ffffff',GradientType=0 ); /* IE6-9 */
    margin: 0px auto;
    -webkit-box-shadow: 0px 5px 41px 5px #000;
    box-shadow: 0px 5px 41px 5px #000;
    min-height: 100%;
}
div#head{
    height: 110px;
    max-height: 110px;
    width:100%;
    max-width: 1280px;
    background: rgb(112,221,72); /* Old browsers */
    background: -moz-linear-gradient(top,  rgba(112,221,72,1) 0%, rgba(100,203,17,1) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(112,221,72,1)), color-stop(100%,rgba(100,203,17,1))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top,  rgba(112,221,72,1) 0%,rgba(100,203,17,1) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top,  rgba(112,221,72,1) 0%,rgba(100,203,17,1) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top,  rgba(112,221,72,1) 0%,rgba(100,203,17,1) 100%); /* IE10+ */
    background: linear-gradient(to bottom,  rgba(112,221,72,1) 0%,rgba(100,203,17,1) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#70dd48', endColorstr='#64cb11',GradientType=0 ); /* IE6-9 */
    -webkit-box-shadow:  0px 5px 20px 0px #000;
    box-shadow:  0px 5px 20px 0px #000;

}
div#head h1{
    margin: 0px;
    padding: 0px;
}
div#head>div{
    position: relative;
    display: block;
    -webkit-box-shadow: inset 0px 1px 1px 0px #000;
    box-shadow: inset 0px 1px 1px 0px #000;
    height: 110px;
    overflow: hidden;
}
div#head>div div#menu{
    position: absolute;
    bottom: 0px;
    right: 10px;
    height: 30px;
}
div#head>div div#menu ul{
    margin: 0px;
    list-style: none;
    padding: 0px;
}
div#head>div div#menu ul a{
    font-size: 20px;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    font-family: alias;
    text-shadow: 1px 1px 8px #000;
}
div#head>div div#menu ul li.current_page_item a,
div#head>div div#menu ul a:hover{
    color: #fff;
    text-shadow: 1px 1px 3px #000;
}
div#head>div div#menu ul li{
    display: inline-block;
    margin-left: 20px;
}
div#center{
    position: relative;
    display: block;
    overflow: hidden;
    padding: 10px;
    padding-top: 20px;
}
div#left{
    display: block;
    width: auto;
    max-width: 810px;
    height: 100%;
    float: left;
    text-align: justify;
    padding: 1rem;
}
div#sidebar{
    display: block;
    width: 280px;
    height: 100%;
    float: left;
    margin: 0px 10px;
    -webkit-box-shadow:  0px 1px 3px 0px #000;
    box-shadow:  0px 1px 3px 0px #000;
    -webkit-border-radius: 6px;
    border-radius: 6px;
    padding: 5px;
    background-color: #fff;
}
div#sidebar ul,
div#sidebar ul li{
    list-style: none;
    padding: 0px;
    margin: 0 0 5px 0;
}
div#sidebar ul li h2{
    text-shadow: none;
    text-align: center;
}
div#center div#portfolio{
    overflow: hidden;
}
div#center div#portfolio div.work{
    display: block;
    float: left;
    max-width: 275px;
    width: 275px;
    height: 225px;
    max-height: 225px;
    text-align: center;
    margin: 10px;
    /*    border: 1px solid #014A1C;*/
    -webkit-border-radius: 6px;
    border-radius: 6px;
    -webkit-box-shadow: 1px 1px 4px 0px #000;
    box-shadow: 1px 1px 4px 0px #000;
    padding: 10px;
    overflow: hidden;
}
/*div#center div#portfolio div.work:hover{
    -webkit-box-shadow: 1px 1px 2px 0px #000;
    box-shadow: 1px 1px 2px 0px #000; 
}*/
div#center div#portfolio div.work div.description h4{
    font-size: 18px;
    line-height: 20px;
    vertical-align: middle;
    text-align: justify;
    text-align: center;
    margin: 0px;
    margin-bottom: 5px;
}
div#center div#portfolio div.work div.description div.excerpt{
    text-align: justify;
    margin: 0px;
    font-size: 14px;
    line-height: 14px;
}

div#center div.portfolio-item div.description{
    position: relative;
    text-align: justify;
    margin-right: 20px;
    margin-bottom: 20px;
}
div#center div.portfolio-item div.description p{
    margin-top:0px;
}
div#center div.portfolio-item a.img{
    display: inline-block;
    width: 210px;
    height: 150px;
    margin-right: 5px;
    margin-left: 0px;
    margin-bottom: 15px;
    overflow: hidden;
}
div#center div.portfolio-item a.img img{
    width: 100%;
}
div#center div.portfolio-item a.img0{
    width: 415px;
    height: 320px;
    overflow: hidden;
    float: left;
    margin-bottom: 10px;
    margin-right: 15px;
}
div#center div.portfolio-item a.img0 img{
    width: 100%;
    min-height: 300px;
}




/*------------ SIDEBAR WIDGETS----------------------*/
div#sidebar >ul>li{
    margin-bottom: 30px;
}
div#sidebar >ul>li>h2{
    margin: 0px;
}
li#skype-status-2 div.skype-status-button{
    text-align: center;
}
li#smartslideshowwidget-2 div#ssw_main_2{
    height: 200px;
    max-height: 200px;
    overflow: hidden;
}
li#smartslideshowwidget-2 img{
    width: 250px;
    height: auto;
}

@media all and (max-width:1345px){
    div#left{
        max-width:100%;
        display:block;
        float:none;
    }
    div#sidebar{
        margin: auto;
        float:none;
    }
}
div#sidebar ul.projects{
    margin-top:20px;
    display:block;
}
div#sidebar ul.projects li{
    text-align:center;
    display: block;
    margin:0px auto 31px auto;
    width:90%
}
div#sidebar ul.projects li img{
    width:90%
}

/* --- 0. IMPORT FONTS --- */
/* (Se non li hai già caricati nell'header.php, questa riga li scarica) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=JetBrains+Mono:wght@400;700&display=swap');

/* --- 1. CORPO DEL TESTO (Leggibilità Base) --- */
body {
    /* Font Sans-Serif moderno e neutrale */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Dimensione base aumentata (standard moderno 18px) */
    font-size: 18px;

    /* Interlinea: 1.6 è il "gold standard" per la leggibilità a schermo */
    line-height: 1.6;

    /* Colore: Grigio scuro (non nero puro) per non affaticare la vista */
    color: #1f2937;

    /* Rendering del font più nitido su Mac/iOS */
    -webkit-font-smoothing: antialiased;
}

/* --- 2. TITOLI (Gerarchia e Spazi) --- */
h1, h2, h3, h4 {
    font-family: 'Inter', sans-serif;
    color: #111827; /* Nero quasi assoluto per i titoli */
    font-weight: 700;
    line-height: 1.25; /* Interlinea più stretta per i titoli */

    /* RITMO VERTICALE: Più spazio sopra, meno sotto */
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

/* Titolo H1 (Main Title) */
h1 {
    font-size: 2.5rem; /* Grande impatto */
    margin-top: 0;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em; /* Leggermente ravvicinato */
}

/* Titolo H2 (Sezioni) */
h2 {
    font-size: 1.75rem;
    border-bottom: 2px solid #e5e7eb; /* Linea sottile di separazione */
    padding-bottom: 0.5rem;
    display: inline-block; /* La linea si ferma alla fine del testo */
}

/* Titolo H3 (Sottotitoli) */
h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-top: 2rem;
}

/* --- 3. PARAGRAFI E LISTE (Respiro) --- */
p {
    margin-bottom: 1.5rem; /* Spazio vuoto dopo ogni paragrafo */

    /* CRUCIALE: Limita la lunghezza della riga a 75 caratteri. 
       Righe troppo lunghe stancano l'occhio. */
    max-width: 75ch;
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem; /* Rientro elenco */
}

li {
    margin-bottom: 0.5rem; /* Spazio tra i punti elenco per non ammassarli */
    padding-left: 0.5rem;
}

/* --- 4. DATI TECNICI & CODICE (Effetto Terminale) --- */
code, pre, .mono, .sai-terminal, figcaption {
    font-family: 'JetBrains Mono', monospace; /* Font tecnico */
}

/* --- 5. ENFASI & LINK --- */
strong, b {
    font-weight: 700;
    color: #000; /* Nero pieno per le parole chiave */
}

a {
    /* Sottolineatura staccata dal testo per pulizia */
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

/* Stili specifici per questa pagina per garantire il look immediato */
.sai-intro {
    font-size: 1.15rem;
    color: #374151;
    margin-bottom: 2rem;
    border-left: 4px solid #2563eb;
    padding-left: 1rem;
}
.sai-highlight {
    color: #111827;
    font-weight: 700;
}
.sai-figure {
    margin: 2.5rem 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.sai-figure img {
    width: 100%;
    height: auto;
    display: block;
}
.sai-caption {
    background: #f9fafb;
    padding: 0.5rem;
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
    font-family: 'JetBrains Mono', monospace;
    border-top: 1px solid #e5e7eb;
}

/* Terminal Style */
.sai-terminal {
    background-color: #0f172a; /* Slate 900 */
    color: #e2e8f0;
    font-family: 'JetBrains Mono', monospace;
    padding: 0;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    font-size: 0.9rem;
}
.sai-terminal-header {
    background-color: #1e293b;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #334155;
}
.sai-dot {
    height: 12px;
    width: 12px;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}
.sai-dot.yellow {
    background-color: #f59e0b;
}
.sai-dot.green {
    background-color: #10b981;
}
.sai-terminal-body {
    padding: 20px;
}
.sai-cmd {
    color: #10b981;
    margin-bottom: 10px;
}
.sai-key {
    color: #a78bfa;
    font-weight: bold;
} /* Purple */
.sai-val {
    color: #e2e8f0;
}
.sai-cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Services Layout */
.sai-service-block {
    margin-bottom: 3rem;
}
.sai-service-title {
    font-size: 1.5rem;
    color: #111827;
    margin-bottom: 0.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
    display: inline-block;
}
.sai-service-subtitle {
    font-style: italic;
    color: #4b5563;
    margin-bottom: 1rem;
    display: block;
}
ul.sai-list li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
}