/*!
Theme Name: Associazione d\'Irrigazione Ovest Sesia
Theme URI: http://underscores.me/
Author: Ilaria Baigueri
Author URI: https://www.ilariabaigueri.it
Description: Tema per il sito dell\'Associazione d\'Irrigazione Ovest Sesia
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: ovestsesia
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.

Associazione d\'Irrigazione Ovest Sesia is based on Underscores https://underscores.me/, (C) 2012-2017 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/
/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Normalize
# Typography
# Elements
# Forms
# Navigation
	## Links
	## Menus
# Accessibility
# Alignments
# Clearings
# Widgets
# Content
	## Posts and pages
	## Comments
# Infinite scroll
# Media
	## Captions
	## Galleries
--------------------------------------------------------------*/
/*--------------------------------------------------------------
# Normalize
--------------------------------------------------------------*/
/* normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
	line-height: 1.15; /* 1 */
	-webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
	 ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
	margin: 0;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
	box-sizing: content-box; /* 1 */
	height: 0; /* 1 */
	overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
	font-family: monospace, monospace; /* 1 */
	font-size: 1em; /* 2 */
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
	background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
	border-bottom: none; /* 1 */
	text-decoration: underline; /* 2 */
	text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
	font-family: monospace, monospace; /* 1 */
	font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Embedded content
	 ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
	border-style: none;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
	font-family: inherit; /* 1 */
	font-size: 100%; /* 1 */
	line-height: 1.15; /* 1 */
	margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
	-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
	padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */

legend {
	box-sizing: border-box; /* 1 */
	color: inherit; /* 2 */
	display: table; /* 1 */
	max-width: 100%; /* 1 */
	padding: 0; /* 3 */
	white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
	box-sizing: border-box; /* 1 */
	padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
	-webkit-appearance: textfield; /* 1 */
	outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
	-webkit-appearance: button; /* 1 */
	font: inherit; /* 2 */
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
	display: none;
}

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
body,
button,
input,
select,
optgroup,
textarea {
	color: #404040;
	font-family: sans-serif;
	font-size: 16px;
	font-size: 1rem;
	line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
	clear: both;
}

p {
	margin-bottom: 1.5em;
}

dfn, cite, em, i {
	font-style: italic;
}

blockquote {
	margin: 0 1.5em;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", Courier, monospace;
	font-size: 15px;
	font-size: 0.9375rem;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code, kbd, tt, var {
	font-family: Monaco, Consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
	font-size: 15px;
	font-size: 0.9375rem;
}

abbr, acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark, ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/*--------------------------------------------------------------
# Elements
--------------------------------------------------------------*/
html {
	box-sizing: border-box;
}

*,
*:before,
*:after {
	/* Inherit box-sizing to make it easier to change the property for components that leverage other behavior; see https://css-tricks.com/inheriting-box-sizing-probably-slightly-better-best-practice/ */
	box-sizing: inherit;
}

body {
	background: #fff;
	/* Fallback for when there is no custom background color defined. */
}

hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

ul, ol {
	margin: 0 0 1.5em 3em;
}

ul {
	list-style: disc;
}

ol {
	list-style: decimal;
}

li > ul,
li > ol {
	margin-bottom: 0;
	margin-left: 1.5em;
}

dt {
	font-weight: bold;
}

dd {
	margin: 0 1.5em 1.5em;
}

img {
	height: auto;
	/* Make sure images are scaled correctly. */
	max-width: 100%;
	/* Adhere to container width. */
}

figure {
	margin: 1em 0;
	/* Extra wide images within figure tags don't overflow the content area. */
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
	border: 1px solid;
	border-color: #ccc #ccc #bbb;
	border-radius: 3px;
	background: #e6e6e6;
	color: rgba(0, 0, 0, 0.8);
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1;
	padding: .6em 1em .4em;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	border-color: #ccc #bbb #aaa;
}

button:active, button:focus,
input[type="button"]:active,
input[type="button"]:focus,
input[type="reset"]:active,
input[type="reset"]:focus,
input[type="submit"]:active,
input[type="submit"]:focus {
	border-color: #aaa #bbb #bbb;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"],
textarea {
	color: #666;
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

select {
	border: 1px solid #ccc;
}

textarea {
	width: 100%;
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Links
--------------------------------------------------------------*/
a {
	color: royalblue;
}

a:visited {
	color: purple;
}

a:hover, a:focus, a:active {
	color: midnightblue;
}

a:focus {
	outline: thin dotted;
}

a:hover, a:active {
	outline: 0;
}

/*--------------------------------------------------------------
## Menus
--------------------------------------------------------------*/
.main-navigation {
	clear: both;
	display: block;
	float: left;
	width: 100%;
}

.main-navigation ul {
	display: none;
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li.focus > ul {
	left: 100%;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover > ul,
.main-navigation ul li.focus > ul {
	left: auto;
}

.main-navigation li {
	float: left;
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

/* Small menu. */
.menu-toggle,
.main-navigation.toggled ul {
	display: block;
}

@media screen and (min-width: 37.5em) {
	.menu-toggle {
		display: none;
	}
	.main-navigation ul {
		display: block;
	}
}

.site-main .comment-navigation, .site-main
.posts-navigation, .site-main
.post-navigation {
	margin: 0 0 1.5em;
	overflow: hidden;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	float: left;
	width: 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	float: right;
	text-align: right;
	width: 50%;
}

/*--------------------------------------------------------------
# Accessibility
--------------------------------------------------------------*/
/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important; /* Many screen reader and browser combinations announce broken words as they would appear visually. */
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 14px;
	font-size: 0.875rem;
	font-weight: bold;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
	/* Above WP toolbar. */
}

/* Do not show the outline on the skip link target. */
#content[tabindex="-1"]:focus {
	outline: 0;
}

/*--------------------------------------------------------------
# Alignments
--------------------------------------------------------------*/
.alignleft {
	display: inline;
	float: left;
	margin-right: 1.5em;
}

.alignright {
	display: inline;
	float: right;
	margin-left: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
}

/*--------------------------------------------------------------
# Clearings
--------------------------------------------------------------*/
.clear:before,
.clear:after,
.entry-content:before,
.entry-content:after,
.comment-content:before,
.comment-content:after,
.site-header:before,
.site-header:after,
.site-content:before,
.site-content:after,
.site-footer:before,
.site-footer:after {
	content: "";
	display: table;
	table-layout: fixed;
}

.clear:after,
.entry-content:after,
.comment-content:after,
.site-header:after,
.site-content:after,
.site-footer:after {
	clear: both;
}

/*--------------------------------------------------------------
# Widgets
--------------------------------------------------------------*/
.widget {
	margin: 0 0 1.5em;
	/* Make sure select elements fit in widgets. */
}

.widget select {
	max-width: 100%;
}

/*--------------------------------------------------------------
# Content
--------------------------------------------------------------*/
/*--------------------------------------------------------------
## Posts and pages
--------------------------------------------------------------*/
.sticky {
	display: block;
}

.post,
.page {
	margin: 0 0 1.5em;
}

.updated:not(.published) {
	display: none;
}

.page-content,
.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

/*--------------------------------------------------------------
## Comments
--------------------------------------------------------------*/
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/*--------------------------------------------------------------
# Infinite scroll
--------------------------------------------------------------*/
/* Globally hidden elements when Infinite Scroll is supported and in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	/* Theme Footer (when set to scrolling) */
	display: none;
}

/* When Infinite Scroll has reached its end we need to re-display elements that were hidden (via .neverending) before. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Media
--------------------------------------------------------------*/
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

/* Make sure logo link wraps around logo image. */
.custom-logo-link {
	display: inline-block;
}

/*--------------------------------------------------------------
## Captions
--------------------------------------------------------------*/
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/*--------------------------------------------------------------
## Galleries
--------------------------------------------------------------*/
.gallery {
	margin-bottom: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	vertical-align: top;
	width: 100%;
}

.gallery-columns-2 .gallery-item {
	max-width: 50%;
}

.gallery-columns-3 .gallery-item {
	max-width: 33.33%;
}

.gallery-columns-4 .gallery-item {
	max-width: 25%;
}

.gallery-columns-5 .gallery-item {
	max-width: 20%;
}

.gallery-columns-6 .gallery-item {
	max-width: 16.66%;
}

.gallery-columns-7 .gallery-item {
	max-width: 14.28%;
}

.gallery-columns-8 .gallery-item {
	max-width: 12.5%;
}

.gallery-columns-9 .gallery-item {
	max-width: 11.11%;
}

.gallery-caption {
	display: block;
}



/* Colors
==================================================
/* Blu #008dc1  */
/* Green #00784d  */
/* Red #a50b1b  */
/* Orange #c67815  */
/* Grey #999  */
/* Light Grey #ccc  */


/* General
==================================================*/

html, body { height: 100%; font-family: "Gill Sans", "Gill Sans MT", sans-serif !important; font-weight: 100; line-height: 1.8; color: #000; font-size: 18px; }
body { background: #fff; }
.no-padding { padding-left: 0; padding-right: 0; }
.no-padding [class^="col-"] { padding-left: 0; padding-right: 0; }
a { -webkit-transition: all .3s; transition: all .3s; color: #000; font-weight: 100; text-decoration: none; }
#primary a { color: #008dc1; text-decoration: underline; }
#primary a:hover { text-decoration: none; }
p, blockquote { margin-bottom: .8em !important; }
ul, ol { margin: 0 0 1.5em 1em !important; }
.carousel-caption { background: #005692; vertical-align: middle; }
.carousel-caption:hover { background-image: none; -webkit-transition: all .5s; transition: all .5s; cursor: pointer !important; }
main { margin-top: 40px; margin-bottom: 40px; }
.container { max-width: 1170px; margin: 0 auto; padding: 0 10px; }
#primary { width: 100%; }
#secondary { width: 100%; margin-top: 40px; margin-bottom: 40px; }
.archive article, .archive .archive-description { margin: 0 0 1.5em; }

@media( min-width: 1100px ) {
    #primary { max-width: 570px; margin-inline: auto; }
    #secondary { max-width: 370px; }   
}

@media( min-width: 769px ) {
    #primary { width: 63%;}
    #secondary { width: 31%; float: left; }  
    .blog #primary, .standard-page #primary, .attachment #primary, .archive #primary, .single-post #primary, .single-amm-trasparente #primary/*, .page-template-page-idroelettrico #primary*/ { margin-top: -225px; }
    .home #primary { float: left; margin-right: 0; max-width: none; width: 66%; }
    .home #secondary { float: right; max-width: none; width: 33%; }  
}

@media( max-width: 768px ) {
    #content .container { padding: 0 5%; }
    main { margin-top: -100px; }
    .archive main, .standard-page main, .single main, .blog main { margin-top: 0; }
    .home main { margin-bottom: 0; }
    .home #secondary { margin-top: 0; }
	 .main-navigation{margin: 25px 0;}
}

@media( max-width: 480px ) {
    .slider-page main { margin-top: -200px; }
    .home main { margin-top: -100px; }
}


/* typography
==================================================*/
h1, h2, h3, h4, h5, h6 { line-height: 1.25em; margin: 0; font-weight: 100; letter-spacing: 1px; }
h1{ font-size: 36px;  }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h1.page-title { margin-bottom: 50px; }
.entry-content h2 { margin: 30px 0 10px; }
#secondary h2, .home #primary .widgettitle { text-transform: uppercase; font-size: 18px; margin-bottom: 30px; }

.breadcrumbs { font-size: 14px; margin: 0 0 50px; line-height: 1.25em; color: #999; }



/* buttons & links
==================================================*/

.btn, 
button, 
input[type="button"], 
input[type="reset"], 
input[type="submit"], 
input.submit, 
.reply a.comment-reply-link,
p.attachment a { 
    background-color: #008dc1 !important; border: 0 !important; border-radius: 0 !important; padding: 1em !important; -webkit-transition: all .3s; transition: all .3s; color: #fff !important; font-weight: 400; max-width: 100%; word-break: break-all; text-decoration: none !important; text-transform: uppercase; font-size: 18px; line-height: 1; }
p.attachment a { display: inline-block; }

.btn:hover, 
button:hover, 
input[type="button"]:hover, 
input[type="reset"]:hover, 
input[type="submit"]:hover, 
input.submit:hover, 
.reply a:hover.comment-reply-link,
p.attachment a:hover { 
    background-color: #00784d !important; }

.breadcrumbs a { font-weight: 100; color: #999 !important; text-decoration: none !important; }
.breadcrumbs a:hover { text-decoration: underline !important;  }
#primary h2 a, #primary h3 a, #primary h4 a { color: #000; text-decoration: none; }
#primary h2 a:hover, #primary h3 a:hover, #primary h4 a:hover { color: #008dc1; }
a.more { font-size: 14px; text-decoration: none !important; font-weight: 400; color: #008dc1 !important; }
a:hover.more { text-decoration: underline !important; }

.site-main .comment-navigation, .site-main .posts-navigation, .site-main .post-navigation { font-size: 14px; line-height: 1.25em; margin-top: 10px; }
.attachment .post-navigation, .attachment .entry-meta { display: none; }
.nav-previous a:before { content: "\000ab "; }
.nav-next a:after { content: " \000bb"; }

.entry-footer { background-color: #e5e5e5; padding: 25px; margin-top: 30px; line-height: 1.4em; font-size: 16px; }
#downloads.entry-footer h3 { margin-bottom: 20px !important; }
#downloads.entry-footer ul { margin: 0 1em !important; padding: 0 !important; list-style-position: outside; }

div.sharedaddy { margin: 50px 0; }
div.sharedaddy h3.sd-title { font-size: 11px !important; text-transform: uppercase; font-weight: 400 !important; }
div.sharedaddy h3.sd-title:before { border-color: transparent !Important; }
.sd-social-icon .sd-content ul li[class*='share-'] a.sd-button { background: #000 !important; }
.sd-social-icon .sd-content ul li[class*=share-] a, .sd-social-icon .sd-content ul li[class*=share-] a:hover, .sd-social-icon .sd-content ul li[class*=share-] div.option a { border-radius: 0 !important; }
.entry-content .sharedaddy { display: none; }

/* form
==================================================*/

form.wpcf7-form, form.search-form { background-color: #e5e5e5; padding: 2em; margin: 1.5em 0 2em; }
form.wpcf7-form label, form.wpcf7-form span, form.search-form label { width: 100%; display: block !important; }
.wpcf7-list-item-label { font-size: 16px; line-height: 1; display: inline-block !important; width: 95% !important; vertical-align: text-top; margin: 10px 0 40px 10px; float: right;}
input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], input[type="number"], input[type="tel"], input[type="range"], input[type="date"], input[type="month"], input[type="week"], input[type="time"], input[type="datetime"], input[type="datetime-local"], input[type="color"], textarea { border-radius: 0 !important; width: 100%; }
form.wpcf7-form select { border-radius: 0 !important; padding: 3px !important; width: 100%; height: 35px; }



/* top + header
==================================================*/

.top { background-color: #ccc; color: #000; font-size: 12px; height: 36px; line-height: 36px; z-index: 100; position: relative; }
.top a { text-decoration: none; font-weight: 400; color: #000 !important; letter-spacing: 1px; }
.top a:hover { text-decoration: underline; }
.top ul, .top li, .top .widget { margin: 0 !important; padding: 0 !important; }
.top .widget_nav_menu li { display: inline; line-height: 36px; }
.top li.cerca a { background-repeat: no-repeat; text-indent: -9999px; width: 20px; height: 36px; display: inline-block; background-size: contain; line-height: 36px; background-position: center; opacity: .5; background-image: url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTguMS4xLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgi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BmaWxsPSIjMDAwMDAwIi8+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPGc+CjwvZz4KPC9zdmc+Cg==) }
.top li.cerca a:hover { opacity: .25; }

#menu-top-menu { float: right; }
#menu-top-menu li { margin-left: 20px !important; }
#menu-social-menu { float: left; letter-spacing: 1px; }
#menu-social-menu:before { content: 'Seguici '; padding-right: 5px; }
#menu-social-menu li { margin-right: 5px !important; }
#menu-social-menu li a { background-repeat: no-repeat; text-indent: -9999px; width: 20px; height: 36px; display: inline-block; background-size: contain; line-height: 36px; background-position: center; opacity: .5; }
#menu-social-menu li a:hover { opacity: .25; }
li.facebook a { background-image: url(data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTkuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDUxMiA1MTIiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDUxMiA1MTI7IiB4bWw6c3BhY2U9InByZXNlcnZlIiB3aWR0aD0iNTEycHgiIGhlaWdodD0iNTEycHgiPgo8Zz4KCTxnPgoJCTxwYXRoIGQ9Ik0yODgsMTc2di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1OS42NDgtMzEuMjY0QzUwNC43MDQsMzczLjUwNCw1MTIsMzMwLjY4OCw1MTIsMjU2LjE5MmMwLDAsMC0wLjA5NiwwLTAuMTZjMCwwLDAtMC4wNjQsMC0wLjA5NiAgICBDNTEyLDE4MS4wODgsNTA0LjcwNCwxMzguNTkyLDQ5MC4yNCwxMTMuOTJ6IE0xOTIsMzUyVjE2MGwxNjAsOTZMMTkyLDM1MnoiIGZpbGw9IiMwMDAwMDAiLz4KCTwvZz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K); }

.site-header { height: 600px; }
.blog .site-header, .standard-page .site-header, .page-template-default .site-header/*, .page-template-page-idroelettrico .site-header*/, .attachment .site-header, .archive .site-header, .single-post .site-header, .page-template-amm-trasparente .site-header, .single-amm-trasparente .site-header, .error404 .site-header, .search .site-header, .page-template.page-template-page-cerca .site-header, .page-template-page-meteo .site-header { height: 400px; }
.home.page-template-default .site-header { height: 100vh !important; }
.nav-bg { background: #999; height: 60px; width: 50%; position: absolute; right: 0; top: 36px; z-index: 10; }

/* LOGO */
.site-branding { float: left; margin: 20px; padding: 0; z-index: 20; position: relative; }

.site-branding .custom-logo { width: 300px; height: auto; display: block; }
.site-title { display: none; }

/* MAIN NAVIGATION*/

.main-navigation { clear: none; float: none; width: 100%; height: 60px; line-height: 1; margin: 0; padding: 0; z-index: 99; position: fixed; display: block;  transition-delay: 0s; top: 0; left: 0; /*overflow: hidden;*/ }
.main-navigation a { color: #fff !important; font-weight: 400; text-transform: uppercase; letter-spacing: 1px; }
.main-navigation ul, li.home { display: none; margin: 0 !important; }
.main-navigation ul, .main-navigation li { box-shadow: none !important; margin: 0 !important; padding: 0 !important; }
.main-navigation li.menu-item-has-children a:after { content: " \000BB"; }
.main-navigation li.menu-item-has-children li a:after  { content: none; }
input#burger + label.hamburger { position: absolute; top: 80px; right: 30px; height: 30px; width: 30px; z-index: 101; }
input#burger + label.hamburger span { position: absolute; width: 100%; height: 3px; margin-top: -1px; left: 0; display: block; background: #fff; transition: .5s; box-shadow: 1px 1px 2px black; }
.blog input#burger + label.hamburger span, .single input#burger + label.hamburger span, .standard-page input#burger + label.hamburger span, .page-template-default input#burger + label.hamburger span, .attachment input#burger + label.hamburger span, .error404 input#burger + label.hamburger span, .page-template.page-template-page-cerca input#burger + label.hamburger span, .archive input#burger + label.hamburger span, .page-template-amm-trasparente input#burger + label.hamburger span, .single-amm-trasparente input#burger + label.hamburger span { background: #000; box-shadow: 0 0 0 transparent; }
.home.page-template-default input#burger + label.hamburger span { background: #fff;  }
input#burger + label.hamburger span:first-child { top: 0; }
input#burger + label.hamburger span { top: 10px; }
input#burger + label.hamburger span:last-child { top: 20px; }
label.hamburger:hover { cursor: pointer; }
input#burger { opacity: 0; }
input#burger:checked + label.hamburger span { opacity: 0; top: 50%; box-shadow: 0 0 0 transparent; }
input#burger:checked + label.hamburger span:first-child { opacity: 1; transform: rotate(405deg); }
input#burger:checked + label.hamburger span:last-child { opacity: 1; transform: rotate(-405deg); }
input#burger:checked ~ nav.main-navigation { clear: none; float: none;  height: 100vh; width: 100%; background: #999; overflow: auto; }
input#burger:checked ~ nav.main-navigation ul { position: absolute; top: 80px; left: 50px; display: block; height: auto; font-size: 18px; /*width: calc( 100% - 300px );*/ width: 100%; }
input#burger:checked ~ nav.main-navigation ul ul { position: static; font-size: 14px; margin: 1em !important; width: 100%; }
input#burger:checked ~ nav.main-navigation li { float: none; line-height: 1.25em; height: auto; position: relative; margin-bottom: .5em !important; display: inline-block; width: 100%; }


@media screen and (min-width: 970px) {
    input#burger, .hamburger { display: none; }
    .main-navigation { clear: right; display: inline-block; float: right; width: auto; line-height: 1; margin: 20px; padding: 20px; position: relative; transition: .25s; transition-delay: .5s;  }
    .main-navigation ul { display: block; /*height: 100vh;*/ }
    .main-navigation li { margin-left: 20px !important; }
    .main-navigation li li { margin-bottom: 10px !important; }
    .main-navigation li li:last-child { margin-bottom: 0 !important; }
    .main-navigation ul ul { background-color: #ccc; padding: 20px 10px !important; }
    .main-navigation ul ul a { color: #000 !important; }
    .main-navigation a { font-size: 14px; display: inline; }
    .main-navigation ul ul a:hover { color: #fff !important; }
}

@media( max-width: 1024px ) {
    .nav-bg { width: 100%; left: 0; right: 0; }
    .main-navigation { background: transparent; } 
    .custom-logo-link { background-image: url('img/logo-ovestsesia-b.png'); }    
    .blog .custom-logo-link, .single .custom-logo-link, .standard-page .custom-logo-link, .page-template-default .custom-logo-link, .attachment .custom-logo-link, .archive .custom-logo-link, .single-post .custom-logo-link, .error404 .custom-logo-link, .page-template-amm-trasparente .custom-logo-link, .single-amm-trasparente .custom-logo-link { background-image: url('img/logo-ovest-sesia.png'); }
    .home.page-template-default .custom-logo-link { background-image: url('img/logo-ovestsesia-b.png'); }
    .blog .site-header, .standard-page .site-header, .page-template-default .site-header/*, .page-template-page-idroelettrico .site-header*/, .attachment .site-header, .archive .site-header, .single-post .site-header, .error404 .site-header, .page-template.page-template-page-cerca .site-header { height: auto; }
    
} 

@media( max-width: 969px ) {
    .site-branding { margin-top: 20px; } 
    .custom-logo-link { width: 120px; }
    .nav-bg { display: none; }
} 

@media screen and (max-width: 969px) {
    .main-navigation a { height: auto; display: inline-block;}
    li.home a { background: transparent url('img/marchio-ovest-sesia.png') no-repeat left center; text-indent: -9999px; background-size: contain; display: block; width: 90px; height: 120px; margin-bottom: 1em; }
    li.home a:hover { opacity: .75; }
}

@media( max-width: 768px ) {
    .top { height: auto; line-height: auto; padding-bottom: 5px; }
    #menu-top-menu, #menu-social-menu { float: none; text-align: center; margin: 0 auto; min-height: 30px; line-height: 30px; }
    #menu-social-menu li a, #menu-top-menu li.cerca a { height: 30px; line-height: 30px; }
    #menu-top-menu li { margin-left: 2px; margin-right: 2px; line-height: 1;}
    .top a { letter-spacing: 0;  }
    .blog .site-header, .standard-page .site-header, .page-template-default .site-header, .attachment .site-header, .archive .site-header, .single-post .site-header, .page-template-amm-trasparente .site-header, .single-amm-trasparente .site-header, .error404 .site-header, .search .site-header, .page-template.page-template-page-cerca .site-header, .page-template-page-meteo .site-header { height: 300px; }
}

@media( max-width: 480px ) {
    #menu-social-menu li, #menu-top-menu li { margin-left: 5px !important; }
}

/* content
==================================================*/

/* SLIDER */
.loading {/* height: 100vh; background: #fff url('https://media.giphy.com/media/3oEjI6SIIHBdRxXI40/giphy.gif') no-repeat center center; animation: fade-in .2s; opacity: .2; overflow: hidden; position: fixed; top: 0; left: 0; right: 0; bottom: 0;  z-index: 1000; */ }
.loading .flexslider { opacity: 0; }
.flex-control-nav, .flex-direction-nav, .slides, .slides > li, .slides li { margin: 0; padding: 0 !important; list-style: none !important; }
.slides { margin: 0 !important; }
.flexslider { padding: 0; zoom: 1; overflow: hidden; background: #fff; position: absolute; top: 0; left: 40%; height: 100vh; width: 60%; }

.flexslider .slides>li { width: 100%; height: 100vh !important; background-position: center; background-repeat: no-repeat; background-size: cover; display: flex; align-items: center; justify-content: center; position: relative; }
* html .flexslider .slides { height: 1% }
.no-js .flexslider .slides>li:first-child { display: block }
.flexslider .slides { zoom: 1 }
.flexslider .slides li { width: auto; display: block; height: auto; height: 100vh; -moz-user-select: none; margin: 0 auto;  }
.flex-viewport { max-height: 100vh; overflow: hidden; }
.flex-caption { position: absolute; bottom: 0; right: 120px; width: 100%; height: 60px; line-height: 60px; margin: 0 !important; background-color: #999; color: #fff; font-size: 24px; z-index: 100; animation: let-me-in-bottom .5s linear forwards;  opacity: 1; text-align: right; padding-right: 30px; }
.flex-caption a { color: #fff !important; text-decoration: none !important; }
.flex-caption a:hover { color: #000 !important; }
.flex-bg { background-color: #999; height: 60px; width: 40%; position: absolute; left: 0; bottom: 0; z-index: 10; }
.flex-direction-nav { position: absolute; right: 0; bottom: 0; background: #ccc; margin: 0 !important; width: 120px; height: 60px; line-height: 60px; z-index: 98; }
.flex-nav-prev, .flex-nav-next { width: 60px; height: 60px; float: left; text-align: center; }
.flex-prev, .flex-next { width: 59px; height: 60px; display: block; background-repeat: no-repeat; background-position: center; text-indent: -9999px;  border-left: 1px solid #999; }
.flex-prev:hover, .flex-next:hover { background-color: #999; }
.flex-prev { background-image: url('img/arrow-left.png'); }
.flex-next { background-image: url('img/arrow-right.png'); }
.flex-control-nav { display: none; }

.page-title-slider { position: absolute; left: 0; bottom: 60px; width: 40%; background: #fff; padding: 30px 30px 60px; text-align: right; }

.page-title-slider h1 { font-size: 42px; line-height: initial; margin-bottom: 20px; }
.page-title-slider small { text-transform: uppercase; display: block; font-size: 18px; font-weight: 100; margin: 0; }
.page-title-slider strong { font-weight: 400; }

.blog article, .single article, .search article { padding-bottom: 20px; border-bottom: 1px dotted #ccc; }
.entry-meta, a.more { text-transform: uppercase; letter-spacing: 1px; }
.single h1 { margin-bottom: 50px; }

/* AREE WIDGET HOMEPAGE */
.widget-home { display: flex; flex: row; flex-wrap: wrap;  align-content: stretch; margin: 0; padding: 0; }
.home #primary .widget { flex-grow: 1; width: 48%; border: 1px solid #ccc; padding: 35px 25px; margin: 0 1% 30px !important; font-size: 18px; vertical-align: top;  }
.home #primary .widget h2 { margin-top: 0;  }

.home #primary .widget ul, .home #primary .widget li { margin: 0 !important; padding: 0; line-height: 1.25em; }
.home #primary .widget ul { list-style-type: none;  }
.home #primary .widget li { margin: 0 0 .5em !important; } 
.home #primary .widget li:before { content: "\000bb "; } 
.home #primary .widget a { text-decoration: none !important; color: #000 !important; font-weight: 100; }
.home #primary .widget a.more { font-size: 14px; font-weight: 400; color: #008dc1 !important; }
.home #primary .widget a:hover { text-decoration: underline !important; }

/* SLIDER PAGE */

.slider-page .flexslider, .slider-page .flexslider .slides>li, .slider-page .flexslider .slides li, .page-template-page-idroelettrico  .flexslider, .page-template-page-idroelettrico  .flexslider .slides>li, .page-template-page-idroelettrico  .flexslider .slides li { height: 600px !important; }
.slider-page .flex-viewport, .page-template-page-idroelettrico  .flex-viewport { max-height: 600px; }
.slider-page .flex-bg, .page-template-page-idroelettrico  .flex-bg { top: 540px; }
.slider-page .page-title-slider { /*bottom: calc( 100% - 540px ); right: calc( 50% - 300px );*/ width: 100%; text-align: left; position: relative; padding: 0; margin: 40px 0 50px; bottom: auto; }

/* CONTENUTI CORRELATI */
.related { display: flex; flex: row; flex-wrap: wrap;  align-content: stretch; margin: 0; padding: 0; }
.related .bottoni { flex-grow: 1; width: 48%; margin: 0 1% 10px !important; font-size: 18px; vertical-align: top; background-color: #00784D; }
.related .bottoni a { color: #fff !important; display: block; width: 100%; height: 100%; padding: 35px 25px; text-transform: uppercase; font-size: 18px; letter-spacing: 1px; text-decoration: none !important; }
.related .bottoni a:hover { background-color: #333 !important; }

.bottoni.btn-centrali { background-size: cover; background-position: center; background-repeat: no-repeat; }
.bottoni.btn-centrali a {  background-color: rgba( 0, 120, 76, .5 ); }

/* AMMINISTRAZIONE TRASPARENTE */
.at { background: #eee; padding: 2em; }
.at h3 { margin-bottom: .5em; }
.single-amm-trasparente .entry-meta, .single-amm-trasparente .entry-footer, .single-amm-trasparente .post-navigation { display: none; }
.single-amm-trasparente .entry-header, .single-amm-trasparente .entry-content { background-color: #eee; padding: 2em; }
.single-amm-trasparente h1 { margin-bottom: 0; }
.single-amm-trasparente .entry-content { margin-top: 0; padding-top: 0; }
.single-amm-trasparente .entry-content h3 { margin: 30px 0 10px; }


/* CENTRALI */
.quick-table { list-style-type: none; margin: 1em 0 !important; padding: 0; }
.quick-table li { display: block; overflow: auto; background-color: #e5e5e5; padding: .25em .75em; margin: 0 !important; }
.quick-table li:nth-child(even) { background-color: #fff; }
.quick-table .key, .quick-table .value { float: left; width: 50%; }




@media( max-width: 1400px ) {
    .page-title-slider { left: 5%; width: 35%;  }
}

@media( max-width: 1024px ) {
    .flexslider { width: 100%; left: 0; right: 0; }
    .page-title-slider { width: 100%; left: 0; text-align: left; bottom: 0; }
    .flex-bg { display: none; }
    .flex-caption, .flex-direction-nav {  }
}

@media( max-width: 768px ) {
    .flexslider, .flexslider .slides>li, .slider-page .flexslider, .slider-page .flexslider .slides>li, .slider-page .flexslider .slides li, .page-template-page-idroelettrico .flexslider, .page-template-page-idroelettrico .flexslider .slides>li, .page-template-page-idroelettrico .flexslider .slides li { height: 500px !important; }
    .page-title-slider { position: static; margin-top: 30px; }
    .home.page-template-default .site-header { height: 530px !important; }
}

@media( max-width: 600px ) {
    .flex-caption { text-align: left; padding-left: 30px; left: 0 !important; right: 0; }
    .related .bottoni, .bottoni, .home #primary .widget { width: 100%; } { width: 100%; }
}

@media( max-width: 480px ) {
    .flexslider, .flexslider .slides>li, .slider-page .flexslider, .slider-page .flexslider .slides>li, .slider-page .flexslider .slides li, .page-template-page-idroelettrico .flexslider, .page-template-page-idroelettrico .flexslider .slides>li, .page-template-page-idroelettrico .flexslider .slides li { height: 400px !important; }
    .flex-caption { font-size: 16px; }
    .page-title-slider { margin-top: 0; }
    .home.page-template-default .site-header { height: 430px !important; }
}

/* aside
==================================================*/
#secondary .widget { border: 1px solid #ccc; padding: 25px; font-size: 18px; }
#secondary .widget ul, #secondary .widget li { margin: 0 !important; padding: 0; line-height: 1.25em; }
#secondary .widget ul { list-style-type: none;  }
#secondary .widget li { margin: 0 0 .5em !important; } 
#secondary .widget li::before { content: " \000bb"; } 
#secondary a { text-decoration: none; color: #000 !important; font-weight: 100; }
#secondary a:hover { text-decoration: underline; }
#secondary .bottoni { width: 100%; margin-bottom: 20px; }
#secondary .bottoni a { color: #fff !important; display: block; width: 100%; padding: 35px 25px; text-transform: uppercase; font-size: 18px; letter-spacing: 1px; }
#secondary .bottoni a:hover { text-decoration: none; background-color: #333 !important; }


/* footer
==================================================*/
footer .widget, footer .textwidget, footer iframe { margin: 0 !important; padding: 0; }

.footer-contact { background-color: #333; color: #fff; }
.footer-contact .container { display: table; }
.footer-contact section { display: table-cell; width: 33%; padding: 50px 15px; vertical-align: top; }
.footer-contact a { color: #fff !important; font-weight: 100; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }

.footer-map { height: auto; max-height: 400px; }
.footer-map { height: 100%; }
.footer-map iframe { height: 400px; width: 100%; border: 0; filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='grayscale'><feColorMatrix type='matrix' values='0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0.3333 0.3333 0.3333 0 0 0 0 0 1 0'/></filter></svg>#grayscale"); /* Firefox 10+ */ filter: gray; /* IE6-9 */ -webkit-filter: grayscale(99%); /* Chrome 19+ & Safari 6+ */ -webkit-backface-visibility: hidden; /* Fix for transition flickering */ }

.site-info { text-align: left; background-color: #ccc; padding: 25px 0; font-size: 14px; line-height: 1; overflow: auto; margin: 0 auto !important; }
.site-info a { color: #000 !important; font-weight: 400; text-decoration: none; }
.site-info a:hover { text-decoration: underline; }
.site-info .menu { list-style-type: none; float: right; }
.site-info .menu li, .site-info p  { display: inline; }
.site-info p { float: left; margin: 0 !important; }
.site-info ul { margin: 0 !important; padding: 0; }
.site-info li { margin-left: 10px; }


@media( max-width: 768px ) {
    .footer-contact .container { display: block; padding: 50px 20px; }
    .footer-contact section { display: block; width: 100%; text-align: center; padding: 0; margin: 0 auto 50px !important; }
}

@media( max-width: 480px ) {
    .site-info { text-align: center; }
    .site-info p, .site-info .menu { float: none; margin: 10px auto !important; }
}

.pea_cook_wrapper { padding: 30px !important; font-family: "Gill Sans", "Gill Sans MT", sans-serif !important; }
.pea_cook_wrapper p { font-size: 18px !important; font-weight: 400 !important; line-height: 1.4em; font-family: "Gill Sans", "Gill Sans MT", sans-serif !important; }
.pea_cook_wrapper p a { clear: both; display: block; margin: 30px 0 10px; border: 0 !important; }
.pea_cook_wrapper.pea_cook_bottomcenter { margin: 0 2.5% !important; left: 0 !important; }
button.pea_cook_btn { margin-left: 0 !important; font-family: "Gill Sans", "Gill Sans MT", sans-serif !important; }

.grecaptcha-badge { display: none !important; }

/* ============================================================
   TRASPARENZA — header semplificato (logo + bottone Indietro)
   ============================================================ */

/* Header: height auto — non c'è più hero background */
.site-header,
.blog .site-header,
.standard-page .site-header,
.page-template-default .site-header,
.attachment .site-header,
.archive .site-header,
.single-post .site-header,
.page-template-amm-trasparente .site-header,
.single-amm-trasparente .site-header,
.error404 .site-header,
.search .site-header,
.page-template.page-template-page-cerca .site-header,
.page-template-page-meteo .site-header,
.home.page-template-default .site-header {
    height: auto !important;
    min-height: 0;
    background-image: none;
    padding: 10px 0;
}

/* Nav: annulla position fixed, affianca il logo */
.main-navigation {
    position: relative !important;
    float: right;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    top: auto !important;
    left: auto !important;
    display: flex !important;
    align-items: center;
    margin: 15px 0;
    padding: 0;
}

/* Bottone Indietro */
.btn-indietro {
    color: #fff !important;
    border-color: #333 !important;
    font-size: 14px;
    text-transform: none;
    letter-spacing: 0;
    white-space: nowrap;
    padding: 6px 14px;
}
.btn-indietro:hover {
    color: #fff !important;
    background-color: #00784d !important;
}

/* Logo: ridimensiona su schermi piccoli */
@media (max-width: 600px) {
    .site-branding .custom-logo { width: 160px; }
    .main-navigation { margin: 10px 0; }
    .site-header .container { display: flex; align-items: center; justify-content: space-between; }
}

/* Nav-bg non è più nel DOM, assicura che non lasci spazio */
.nav-bg { display: none !important; }

/* === Fix layout: #primary 63% → 100% (sidebar rimossa) === */
@media (min-width: 769px) {
    .no-sidebar #primary { width: 100% !important; margin-top: 0 !important; }
    .no-sidebar #secondary { display: none !important; }
}

/* === Breadcrumb nascosta === */
.breadcrumbs { display: none !important; }

/* === Ricerca: nasconde icona e form in tutta la pagina === */
li.cerca, .search-toggle, .search-form,
.top li.cerca, #menu-top-menu li.cerca,
input[type="search"], button[type="submit"][value=""] { display: none !important; }

/* === Tabella albo: overflow-wrap + responsive === */
.tabVisalbo, .tabVisResp {
    overflow-wrap: anywhere;
    word-break: break-word;
}
.tabVisalbo td, .tabVisResp td {
    overflow-wrap: anywhere;
    word-break: break-word;
    font-size: 1em !important;
}
div.Visallegato{
	overflow-wrap: anywhere !important;
}

/* === Mobile xs (< 576px): contenuto full-width === */
@media (max-width: 576px) {
    #primary, .site-main, article {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden;
    }
    #content, .site-content { overflow-x: hidden; }
    div.ricerca_col_SX, div.ricerca_col_DX {
        width: 100% !important;
        float: none !important;
    }
    .tabVisalbo, .tabVisResp {
        display: block;
        width: 100%;
    }
    .tabVisalbo tr, .tabVisResp tr {
        display: block;
        margin-bottom: 8px;
    }
    .tabVisalbo th, .tabVisResp th {
        display: block;
        width: 100% !important;
        text-align: left;
        background: #e8e8e8;
        padding: 4px 8px;
        font-size: 0.85em;
    }
    .tabVisalbo td, .tabVisResp td {
        display: block;
        width: 100%;
        padding: 4px 8px;
        font-size: 1em !important;
    }
}