/* Dr. Nicola Venturo — rebuilt stylesheet.
   Fixed 960px content column inside a 980px design, like the original. */

/* Heading faces: the site's own Quicksand Book / Bold, converted to web fonts. */
@font-face {
  font-family: "Quicksand Book";
  src: url(../fonts/quicksand-book.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Quicksand Bold";
  src: url(../fonts/quicksand-bold.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

:root {
  --text: #6b6b6b;
  --link: #0c679c;
  --dark: #474747;
  --band-text: #343434;
  --button-text: #2b2b2b;
  --muted: #919191;
  --field-text: #626262;
  --grey-block: #ebebeb;
  --frame-border: #c1c1c1;
  --rule: #d4d4d4;
  --radius: 5px;
}

* { margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font: 12px/18px Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}
a { color: var(--link); text-decoration: underline; cursor: pointer; margin-top: 0 !important; }
a:hover { text-decoration: none; }
img { border: 0; }
p { margin-bottom: 20px; }
ul, li { list-style: none; }
strong { font-weight: bold; }
input, textarea { font-family: inherit; font-size: inherit; font-weight: inherit; }

/* Headings. The original drew them on canvas, slightly enlarged to whole pixels
   (Bold x1.0084, Book x1.0331); sizes and spacing below reproduce that. */
h1, h3 {
  font-weight: normal;
  margin-bottom: 15px;
  font-kerning: normal;
  font-synthesis: none;
  word-spacing: .5px;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Each word is drawn from its data-t attribute; the real text sits in a zero-size box
   (as the original's text replacement did), so it stays in the page for search and
   screen readers. */
.cw::before { content: attr(data-t); content: attr(data-t) / ""; white-space: pre-wrap; }
.ca { display: inline-block; width: 0; height: 0; overflow: hidden; vertical-align: baseline; }
h1 {
  font-family: "Quicksand Bold", Arial, sans-serif;
  font-size: 36.3px;
  line-height: 36px;
  letter-spacing: -3.025px;
  top: .25px;
}
h3 {
  font-family: "Quicksand Book", Arial, sans-serif;
  font-size: 24.79px;
  line-height: 24px;
  letter-spacing: -3.1px;
  top: .47px;
}
.up { text-transform: uppercase; }
.mb4 { margin-bottom: 4px; }
.mb18 { margin-bottom: 18px; }
.mb25 { margin-bottom: 25px; }
.mb40 { margin-bottom: 40px; }
.mb10 { margin-bottom: 10px; }
.mb63 { margin-bottom: 63px; }
.mr7 { margin-right: 7px !important; }
.no-marg { margin: 0 !important; }
.clear { clear: both; }

/* Layout */
.site { margin: 0 auto; position: relative; }
.container { width: 960px; margin: 0 auto; position: relative; }
.row { overflow: hidden; width: 100%; }
.col { display: inline; float: left; position: relative; margin: 0 10px; }
.col3 { display: inline; float: left; position: relative; margin: 0 15px; width: 300px; }
.first { margin-left: 0; }
.last { margin-right: 0; }
.w4 { width: 225px; }
.w5 { width: 280px; }
.w8 { width: 460px; }
.w11 { width: 640px; }
.w-wide { width: 700px; }
.w1 { width: 40px; } .w2 { width: 100px; } .w3 { width: 160px; } .w6 { width: 340px; } .w7 { width: 400px; }
.w9 { width: 520px; } .w10 { width: 580px; } .w12 { width: 700px; } .w13 { width: 760px; } .w14 { width: 820px; }
.w15 { width: 880px; } .w16 { width: 940px; }
.col2 { display: inline; float: left; position: relative; margin: 0 20px; width: 460px; }
.col3.first, .col2.first { margin-left: 0; }
.col3.last, .col2.last { margin-right: 0; }
.fleft { float: left !important; margin: 3px 30px 0 0; }
.fright { float: right !important; }
.ind-left { float: left; margin: 0 20px 0 0; }
.ind-right { float: right; margin: 0 0 0 20px; }

/* Background tiles that continue the 2100px artwork on very wide screens */
.tile { position: absolute; width: 51%; z-index: 1; background-repeat: repeat-x; background-position: 0 0; }
.tile--l { left: 0; }
.tile--r { right: 0; }
.tile--head { height: 64px; }
.tile--head.tile--l { background-image: url(../images/ambitios_header_tile_left.gif); }
.tile--head.tile--r { background-image: url(../images/ambitios_header_tile_right.gif); }
.tile--hero { height: 409px; top: 64px; }
.tile--hero.tile--l { background-image: url(../images/ambitios_row_tile_left.gif); }
.tile--hero.tile--r { background-image: url(../images/ambitios_row_tile_right.gif); }
.tile--band { height: 122px; top: 64px; }
.tile--band.tile--l { background-image: url(../images/ambitios_row_tile_sub.gif); }
.tile--band.tile--r { background-image: url(../images/ambitios_row_tile_sub_right.gif); }
.tile--foot { height: 48px; bottom: 0; }
.tile--foot.tile--l { background-image: url(../images/ambitios_footer_tile_g_left.gif); }
.tile--foot.tile--r { background-image: url(../images/ambitios_footer_tile_g_right.gif); }

/* Header */
.masthead {
  background: url(../images/ambitios_header_bg.gif) no-repeat 50% 0;
  width: 100%;
  position: relative;
  z-index: 160;
}
.topbar { position: relative; width: 960px; height: 64px; margin: 0 auto; z-index: 160; }
.logo { position: absolute; top: 13px; left: 0; }
.logo img { display: block; }

/* Main menu */
.nav { position: absolute; right: 0; top: 15px; line-height: 1; }
.nav li { float: left; position: relative; font-size: 18px; line-height: 30px; }
.nav > li > a {
  display: block;
  position: relative;
  font-size: 14px;
  line-height: 30px;
  color: #fff;
  text-decoration: none;
}
.nav > li > a > span { display: block; padding: 0 10px; }
.nav > li > a > span > span { display: block; padding: 0; }
.nav > li > a.is-active { background: url(../images/ambitios_menu_bgactive_right.png) no-repeat 100% 0; color: var(--dark); }
.nav > li > a.is-active > span { background: url(../images/ambitios_menu_bgactive_left.png) no-repeat 0 0; }
.nav > li > a.is-active > span > span { background: url(../images/ambitios_menu_bgactive_tile.gif) repeat-x 50% 0; }
.nav > li > a:hover,
.nav > li.open > a { background: url(../images/ambitios_menu_bghover_right.png) no-repeat 100% 0; color: #fff; }
.nav > li > a:hover > span,
.nav > li.open > a > span { background: url(../images/ambitios_menu_bghover_left.png) no-repeat 0 0; }
.nav > li > a:hover > span > span,
.nav > li.open > a > span > span { background: url(../images/ambitios_menu_bghover_tile.png) repeat-x 50% 0; }
.nav a:focus { outline: 0; }
.nav a:focus-visible { outline: 1px dotted currentColor; }

.nav ul {
  display: none;
  position: absolute;
  left: 0;
  top: 32.4px;
  z-index: 99;
  width: 222px;
  padding: 8px 0;
  background: #fafafa;
  border-radius: var(--radius);
}
.nav ul li { width: 100%; }
.nav ul a {
  display: block;
  position: relative;
  height: 35px;
  overflow: hidden;
  margin-left: -5px;
  padding-left: 21px;
  font-size: 14px;
  line-height: 30px;
  color: var(--dark);
  text-decoration: none;
}
.nav ul a:hover { background: url(../images/drop_bg.png) no-repeat 0 0; color: var(--dark); }

/* Home: photo carousel */
.hero {
  background: url(../images/ambitios_first_row_bg.gif) no-repeat 50% 0;
  position: relative;
  height: 409px;
  z-index: 1;
}
.hero__inner { height: 375px; padding-top: 34px; width: 980px; margin: 0 auto; }
.carousel { position: absolute; left: 50%; margin-left: -490px; width: 960px; height: 280px; }
.carousel__stage { position: relative; width: 960px; height: 280px; }
.carousel__item { position: absolute; top: -1000px; left: -1000px; cursor: pointer; }
.carousel__item img { display: block; }

/* Inner pages: grey title band */
.band {
  background: url(../images/ambitios_header_row_sub.gif) no-repeat 50% 0;
  height: 59px;
  padding-top: 63px;
  font-size: 16px;
  color: var(--band-text);
  position: relative;
  z-index: 150;
}

/* Content */
.content { padding: 35px 0 33px; }
.side { padding: 0 15px; }
.grey-box { background: var(--grey-block); padding: 15px; }

.frame {
  display: block;
  position: relative;
  padding: 7px;
  background-color: #fff;
  border: 1px solid var(--frame-border);
  border-radius: var(--radius);
}
.frame img { display: block; }
.frame--news { float: left; margin-right: 8px; }
.frame--post { float: left; margin-right: 15px; }
.frame--thumb { float: left; margin: 0 20px 20px 0; }
.frame--thumb.last { margin-right: 0; }

/* Photo links that open the viewer: the picture dims to show a magnifier */
.zoom { text-decoration: none; }
.zoom img { position: relative; z-index: 2; transition: opacity .4s ease-in-out; }
.zoom::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: url(../images/magnity_plus.png) no-repeat 50% 50%;
}
.zoom--video::after { background-image: url(../images/magnify_video.png); }
.zoom:hover img, .zoom:focus-visible img { opacity: .5; }

.btn {
  display: block;
  width: 100%;
  text-align: center;
  background: url(../images/ambitios_button_bgs2.gif) repeat-x 0 0;
  color: var(--button-text);
  font-size: 14px;
  text-decoration: none;
}
.btn > span { display: block; background: url(../images/ambitios_button_bgs1.gif) no-repeat 0 0; }
.btn > span > span { display: block; padding: 21px 0; background: url(../images/ambitios_button_bgs3.gif) no-repeat 100% 0; }
.btn:hover { background-image: url(../images/ambitios_button_bgs2_hover.gif); }
.btn:hover > span { background-image: url(../images/ambitios_button_bgs1_hover.gif); }
.btn:hover > span > span { background-image: url(../images/ambitios_button_bgs3_hover.gif); }

.pager {
  width: 100%;
  overflow: hidden;
  padding: 23px 0 0 7px;
  border-top: 1px solid var(--rule);
}
.pager a {
  display: block;
  float: left;
  margin-right: 3px;
  padding: 5px 10px 4px;
  background-color: #fff;
  border: 1px solid #fff;
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
}
.pager a:hover { background-color: #ddd; border-color: #ddd; }
.pager a.pager__arrow,
.pager a.pager__arrow:hover { padding: 0; border: 0; background: none; }
.pager__arrow img { display: block; }

.cv { margin-bottom: 20px; }
/* the original rendered in almost-standards mode: a line holding only an embed has no gap below */
.content iframe { vertical-align: top; }
.crumbs a, .crumbs span { color: var(--text); }
.crumbs span { margin: 0 4px; }
.date { color: #959595; }
.content ul li {
  line-height: 30px;
  margin: 0 20px 0 0;
  padding: 0 0 0 23px;
  background: url(../images/ambitios_marker.png) no-repeat 8px 12px;
}
.content ul li:hover { background: #e6e6e6 url(../images/ambitios_marker.png) no-repeat 8px 12px; }

/* Small grey "Approfondisci" / "video" buttons */
.btn-rev, .btn-small {
  display: block;
  margin-right: 3px;
  padding: 5px 10px 4px;
  border: 1px solid #a5a5a5;
  border-radius: var(--radius);
  background-color: #a5a5a5;
  color: #fff;
  text-decoration: none;
}
.btn-small { display: inline-block; color: var(--text); }
.btn-rev:hover { color: var(--text); background-color: #dadada; border-color: #c9c9c9; }
.btn-small:hover { color: #fff; background-color: #dadada; }

/* Contact page form */
.cf-field { position: relative; }
.cf-input input {
  display: block;
  width: 99%;
  padding: 6px 0;
  border: 1px solid #bebebe;
  background: #fff;
}
.cf-textarea textarea {
  display: block;
  width: 99%;
  height: 146px;
  border: 1px solid #bebebe;
  background: #fff;
}
.cf-button {
  float: left;
  height: 63px;
  padding: 0 15px 0 0;
  background: url(../images/ambitios_button3_bgs1.gif) no-repeat 100% 0;
}
.cf-button input {
  display: block;
  padding: 23px 35px 20px 59px;
  border: 0;
  background: url(../images/ambitios_button3_bgs1.gif) no-repeat 0 0;
  color: var(--button-text);
  font-size: 14px;
  text-align: center;
  cursor: pointer;
}
.cf-button:hover { background-position: 100% -63px; }
.cf-button:hover input { background-position: 0 -63px; }
.cf-error-icon {
  position: absolute;
  right: 7px;
  top: 22px;
  width: 20px;
  height: 21px;
  overflow: hidden;
  text-indent: -5000px;
  background: url(../images/error.gif) no-repeat 0 0;
}
.cf-note { margin-bottom: 18px; }

/* "Back to top" strip */
.totop {
  background: url(../images/ambitios_row_top_g.gif) repeat-x 0 0;
  height: 42px;
  text-align: right;
  overflow: hidden;
}
.totop a {
  display: block;
  padding: 11px 27px 0 0;
  color: var(--muted);
  text-decoration: none;
  background: url(../images/ambitios_arrow_top.gif) no-repeat 100% 14px;
}

/* Booking area */
.booking {
  background: url(../images/ambitios_footer_text_tile.gif) repeat-y 50% 0;
  position: relative;
  z-index: 150;
}
.booking__in {
  background: url(../images/ambitios_footer_text.jpg) no-repeat 50% 0;
  padding: 21px 0 100px;
  color: #fff;
}
.booking h3 { margin-bottom: 18px; }
.field {
  position: relative;
  height: 31px;
  padding: 6px 0 0 3px;
  background: url(../images/ambitios_input_bg.gif) no-repeat 100% 0;
}
.field input {
  position: absolute;
  top: 7px;
  right: 5px;
  width: 154px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--field-text);
}
.area {
  width: 225px;
  height: 106px;
  background: url(../images/ambitios_area_bg.gif) no-repeat 0 0;
}
.area textarea {
  width: 217px;
  height: 98px;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--field-text);
  overflow: auto;
}
.send { text-align: left; padding-top: 7px; }
.send a {
  display: block;
  float: right;
  margin-right: -3px;
  width: 53px;
  height: 48px;
  padding: 14px 0 0 45px;
  background: url(../images/ambitios_submit_button.png) no-repeat 0 0;
  color: #424242;
  text-decoration: none;
}
.send a:hover { text-decoration: underline; }

/* Footer */
.foot {
  background: url(../images/ambitios_footer_bg.gif) no-repeat 50% 0;
  height: 48px;
  position: relative;
  z-index: 150;
}
.foot__copy { position: absolute; top: 17px; left: 6px; color: #fff; font-size: 12px; }

/* Photo viewer */
.viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: #000;
  opacity: 0;
  transition: opacity .4s ease-in-out;
}
.viewer-overlay.is-shown { opacity: .8; }
.viewer {
  position: absolute;
  z-index: 10000;
  left: 0;
  top: 0;
  border: 10px solid #191919;
  border-radius: 12px;
  background: #191919;
  color: #000;
  transition: width .4s ease-in-out, height .4s ease-in-out, left .4s ease-in-out, top .4s ease-in-out;
}
.viewer__in {
  position: absolute;
  inset: 0;
  background: #fff;
  border-radius: 5px;
}
.viewer__loader {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  background: url(../images/prettyPhoto/facebook/loader.gif) no-repeat 50% 50%;
}
.viewer__body { position: absolute; left: 10px; top: 10px; right: 10px; bottom: 10px; opacity: 0; transition: opacity .4s ease-in-out; }
.viewer.is-ready .viewer__body { opacity: 1; }
.viewer.is-ready .viewer__loader { display: none; }
.viewer__pic { position: relative; }
.viewer__pic img { display: block; }
.viewer__prev, .viewer__next {
  position: absolute;
  top: 0;
  height: 100%;
  width: 49%;
  background: none;
  border: 0;
  cursor: pointer;
}
.viewer__prev { left: 0; }
.viewer__next { right: 0; }
.viewer__prev:hover { background: url(../images/prettyPhoto/facebook/btnPrevious.png) no-repeat 0 50%; }
.viewer__next:hover { background: url(../images/prettyPhoto/facebook/btnNext.png) no-repeat 100% 50%; }
.viewer__bar { position: relative; height: 22px; margin-top: 10px; }
.viewer__nav { display: flex; align-items: center; height: 22px; }
.viewer__count { font: 15px/22px Arial, Helvetica, sans-serif; color: #000; padding: 0 7px 0 8px; }
.viewer__arrow, .viewer__close {
  display: block;
  width: 22px;
  height: 22px;
  border: 0;
  cursor: pointer;
  background: url(../images/prettyPhoto/facebook/sprite.png) no-repeat;
  font-size: 0;
  color: transparent;
}
.viewer__arrow--prev { background-position: 0 -71px; }
.viewer__arrow--prev:disabled { background-position: 0 -96px; cursor: default; }
.viewer__arrow--next { background-position: -32px -71px; }
.viewer__arrow--next:disabled { background-position: -32px -96px; cursor: default; }
.viewer__close { position: absolute; right: 0; top: 0; background-position: -1px -1px; }
.viewer button:focus { outline: 0; }
.viewer button:focus-visible { outline: 1px dotted #000; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
