/* BASE */

body {
    text-align: center; /* centra in IE5.x */
    background-color: #FFFFD4;
    font-family: sans-serif;
    font-size: 62.5%; /* 1em == 10px, 1.2em == 12px */
}

/* line-height reset */
p, blockquote, pre, ol, dl, ul, form {
    line-height: 1.5em;
}

/* set di base per margini e padding */
html, body{
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0.7em 0 0.2em;
}

h1 {
    font-weight: bold;
    font-size: 1.4em;
    font-variant: small-caps;
    border-bottom: 1px solid #17180c;
}

h2 {
    font-variant: small-caps;
    font-weight: bold;
}

address, blockquote, dl, form, fieldset, ol, table, p, pre, ul {
    margin-top: 0.2em;
    margin-bottom: 1.2em
}

table {
    width: 100%;
    border: 0;
    margin: 0;
    padding: 0;
    border-spacing: 0;
    border-collapse: collapse;
    cell-spacing: 0px;
    font-family: Verdana, arial, Helvetica, sans-serif;
    font-size: 1em;
    margin-bottom: 10px;
}

td {
    padding: 0;
    vertical-align: top;
    text-align: left;
    margin: 0;
    border: 0;
}

th {
    vertical-align: top;
    text-align: left;
    margin: 0;
    border: 0;
}

img {
    border: 0;
    margin: 0;
    outline: 0;
    padding: 0;
}

div {
    margin: 0;
    padding: 0;
    border: 0;
    text-align: left;
}

hr {
    border: 0;
    background-color: #786349;
    height: 1px;
    color:gray;
}

p {
    text-align: justify;
}

a:link, a:visited {
    font-weight: bold;
    text-decoration: none;
    color: #786349;
}

a:hover {
    text-decoration: underline;
}

/* Forms */

fieldset {
    border: 1px solid lightgray;
}

legend {
    background: white;
}

textarea { /* IE hack */
    overflow: auto;
}

input { /* IE hack */
    overflow: none;
}

textarea, input[type='text'], select {
    border: 1px solid gray;
    background: white;
}
textarea:hover, input[type='text']:hover, input[type='password']:hover, select:hover {
    border-color: gray;
}
textarea:focus, input[type='text']:focus, input[type='password']:focus, select:focus {
    border-color: darkgray;
    outline: 2px solid #ffffaa;
}
input, select {
    cursor: pointer;
}
input[type='text'] {
    cursor: text;
}

form label {
    display: block; 
    width: 80px;
}

.error {
    color: red;
}

.error input {
    border-color: red;
}

.error textarea {
    border-color: red;
}


/* CUSTOM */

h2 + hr {
    margin-top: 0;
}

h3 {
    font-style: italic;
    font-weight: normal;
    text-align: center;
    padding: 0 15% 0 15%;
    margin-bottom: 1.5em;
}

img.photo_right {
    float: right;
    margin: 10px 0 10px 10px;
}

img.border {
    padding: 5px;
    border: 1px solid #17180c;
}

table.card { /* Una scheda di dati per gli articoli */
    width: 70%;
    border: 1px solid #17180c;
    text-align: center;
    border-collapse: collapse;
    margin-left: auto;
    margin-right: auto;
}

table.card td {
    border: 1px solid #17180c;
    padding: 2px;
}


/* MAIN ZONES */

div#body {
    width: 760px;
    margin: 0 auto;   /* centra negli altri browser */
    text-align: left;   /* ripristina l'allineamento */
}

div#header {
    padding: 4px 0 2px 0;
    background-color: #17180c;
    text-align: center;
}

div#content {
    padding: 10px;
    font-size: 1.2em;
    border-top: 0;
    margin-top: 0;
    clear: left;
}

div#footer {
    padding-top: 5px;
    border-top: 1px dashed #786349;
    text-align: center;
    clear: both;
}


/* MENU */

ul#menu {
    list-style-type: none;
    white-space: nowrap;
    padding: 0;
    border-top: 0;
    margin-bottom: 0;
    width: 100%;
    font-size: 1.3em;
    font-weight: bold;
    font-variant: small-caps;
}

ul#menu li {
    display: block;
    height: 40px;
    float: left;
    width: 14.18%;
    text-align: center;
}


/* FOOTER */

div#footer ul {
    list-style-type: none;
    white-space: nowrap;
    padding: 0;
    border-top: 0;
    margin-bottom: 0;
    width: 100%;
    font-size: 1.3em;
    font-weight: bold;
    font-variant: small-caps;
}

div#footer ul li {
    display: block;
    height: 20px;
    float: left;
    width: 25%;
    text-align: center;
}


/* HOME PAGE */

div#content div#home_main {
    width: 420px;
    margin-right: 300px;
    height: 100%;
}

div#content div#home_main p {
    text-align: center;
}

div#content div#home_news {
    float: right;
    width: 300px;
    height: 100%;
    border: 1px dashed #786349;
    padding: 0 5px 0 5px;
}

div#content div#home_news p {
    text-align: left;
}

div#content div#home_news h4 {
    font-size: 1.4em;
    background-color: #17180c;
    color: white;
    padding: 0;
    margin: 0 -5px 0 -5px;
    font-weight: bold;
    font-variant: small-caps;
    text-align: center;
}

div#home_special {
    clear: both;
    padding-top: 10px;
    text-align: center;
}


/* PAGE: PRODUCTS */

div.fieldset {
    border: 1px solid #17180c;
    text-align: center;
    margin: 50px 0 0 0;
}

div.fieldset img {
    margin: 15px;
}

div.fieldset img.legend {
    margin: -30px 0 0 0;
    padding: 0 10px;
    background-color: #FFFFD4;
}


/* PAGE: PRODUCT */

table#product td#photos {
    width: 200px;
}


/* PAGE: CONTACTS */

form#form-contact textarea#id_message {
    width: 35em;
    height: 15em;
}

form#form-contact input#id_sender_email, form#form-contact input#id_subject {
    width: 25em;
}


/* GOOGLEMAP */

div#googlemap {
    height: 400px;
    margin-bottom: 10px;
    text-align: center;
    clear: both;
}


/* NEWS */

span.news-pub_date
{color: #4B4E27; font-weight: bold; font-size: 0.75em;}
